
jacobmatthew
Members-
Posts
19 -
Joined
-
Last visited
Profile Information
-
Gender
Male
-
Location
Guam
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
jacobmatthew's Achievements
Newbie (1/14)
0
Reputation
-
Cannot remove bid on mobile due to double click. [SOLVED]
jacobmatthew replied to jacobmatthew's topic in Support Forum
Wow, thank you so much. You are very helpful. I thought this was never going to be solved, lol. -
Cannot remove bid on mobile due to double click. [SOLVED]
jacobmatthew replied to jacobmatthew's topic in Support Forum
Hmm, Its not working. Heres my lib/js/phpvms.js file: /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ // Icons for Google Maps //var url = window.location.href.split("index.php")[0]; var url = window.location.href.split("index.php")[0]; var depicon = url + '/lib/images/towerdeparture.png'; var arricon = url + '/lib/images/towerarrival.png'; // Everything else $(document).ready(function() { $("#form, .ajaxform").ajaxForm({ target: '#scheduleresults', beforeSubmit: function (x,y,z) { $("#scheduleresults").html('<div align="center"><img src="'+url+'/lib/images/loading.gif" /><br />Searching...</div>'); }, success: function() { $('#bodytext').fadeIn('slow'); } }); $(document).on("change", "#code", function() { $("#depairport").load(url+"action.php/pireps/getdeptapts/"+$(this).val()); }); $("#tabcontainer").tabs(); var touchtime = 0; $('.deleteitem').live('click', function() { if(touchtime == 0) { touchtime = new Date().getTime(); } else { if(((new Date().getTime())-touchtime) < 1000) { $.post($(this).attr("href"), {id: $(this).attr("id")}); rmvid= "#bid"+$(this).attr("id"); $(rmvid).slideUp(); touchtime = 0; } else { touchtime = 0; } } return false; }); $(document).on('click', '.addbid', function(){ var id = "#"+$(this).attr("id"); $.get(url+"action.php/schedules/addbid?id="+$(this).attr("id"), function (data) { $(id).html(data); return false; }); return false; }); $("div .metar").each(function(){ icao=$(this).attr("id"); $.getJSON(geourl+"/weatherIcaoJSON?ICAO="+icao+"&callback=?", function(data){ if(data.length == 0) { html = "Could not load METAR information"; } else { data.weatherObservation.observation = data.weatherObservation.observation.replace("$", ""); html = "<strong>METAR: </strong>"+data.weatherObservation.observation+"<br />"; } $("#"+data.weatherObservation.ICAO).html(html); }); }); }); // Simple JavaScript Templating // John Resig - http://ejohn.org/ - MIT Licensed (function(){ var cache = {}; this.tmpl = function tmpl(str, data){ // Figure out if we're getting a template, or if we need to // load the template - and be sure to cache the result. var fn = !/\W/.test(str) ? cache[str] = cache[str] || tmpl(document.getElementById(str).innerHTML) : // Generate a reusable function that will serve as a template // generator (and which will be cached). new Function("obj", "var p=[],print=function(){p.push.apply(p,arguments);};" + // Introduce the data as local variables using with(){} "with(obj){p.push('" + // Convert the template into pure JavaScript str .replace(/[\r\t\n]/g, " ") .split("<%").join("\t") .replace(/((^|%>)[^\t]*)'/g, "$1\r") .replace(/\t=(.*?)%>/g, "',$1,'") .split("\t").join("');") .split("%>").join("p.push('") .split("\r").join("\\'") + "');}return p.join('');"); // Provide some basic currying to the user return data ? fn( data ) : fn; }; })(); And my code in schedules_bid.php <a id="<?php echo $bid->bidid; ?>" class="deleteitem" href="<?php echo url('/schedules/removebid');?>">Remove Bid *</a> It justs redirects me to /schedules/removebid -
Cannot remove bid on mobile due to double click. [SOLVED]
jacobmatthew replied to jacobmatthew's topic in Support Forum
Would this be my code to remove the bid: <a id="<?php echo $bid->bidid; ?>" class="target" href="<?php echo url('/schedules/removebid');?>">Remove Bid *</a> Or do I just use the default one? -
Cannot remove bid on mobile due to double click. [SOLVED]
jacobmatthew replied to jacobmatthew's topic in Support Forum
Thanks for replying, Im using simpilot 5.5.2. -
Hi, the routes map wont show when on mobile, but works fine on desktop. Here is my flown_routes_map.php file: <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <?php /** * * */ ?> <h3>My Routes Map</h3> <div class="mapcenter" align="center"> <div id="routemap" style="width: 800px; height: 600px;"></div> </div> <script type="text/javascript"> var options = { mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("routemap"), options); var flightMarkers = []; <?php $shown = array(); foreach($pirep_list as $pirep) { // Dont show repeated routes if(in_array($pirep->code.$pirep->flightnum, $shown)) continue; else $shown[] = $pirep->code.$pirep->flightnum; if(empty($pirep->arrlat) || empty($pirep->arrlng) || empty($pirep->deplat) || empty($pirep->deplng)) { continue; } ?> dep_location = new google.maps.LatLng(<?php echo $pirep->deplat?>, <?php echo $pirep->deplng?>); arr_location = new google.maps.LatLng(<?php echo $pirep->arrlat?>, <?php echo $pirep->arrlng?>); flightMarkers[flightMarkers.length] = new google.maps.Marker({ position: dep_location, map: map, title: "<?php echo "$pirep->depname ($pirep->depicao)";?>" }); flightMarkers[flightMarkers.length] = new google.maps.Marker({ position: arr_location, map: map, title: "<?php echo "$pirep->arrname ($pirep->arricao)";?>" }); var flightPath = new google.maps.Polyline({ path: [dep_location, arr_location], strokeColor: "#FF0000", strokeOpacity: 1.0, strokeWeight: 2 }).setMap(map); <?php } ?> if(flightMarkers.length > 0) { var bounds = new google.maps.LatLngBounds(); for(var i = 0; i < flightMarkers.length; i++) { bounds.extend(flightMarkers[i].position); } } map.fitBounds(bounds); </script> Any help would be appreciated, thank you!
-
Hi, I recently came across this error. If I set URL_REWRITE to true, it will give this error when you try to bid on a flight. Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'viewaction.php' in /home/u107961649/public_html/core/classes/MainController.class.php on line 218 I have searched the forums, and it seems I'm not the only one experiencing this problem. I haven't find a solution yet, so I'm hoping someone can help me figure this out.
-
Okay I found the problem. For some odd reason, if I edit my local.config.php file, it causes the bidding error. All I did was set URL_REWRITE to true. I want to edit the local.config.php file, but it seems that if I make changes, it will cause the schedules bidding error. Please help.
-
I never touched the schedules module. I just reuploaded it now, and still get the same error.
-
I just tried with the default template, and it gives me the same error.
-
All of a sudden, I am unable to bid on a flight. When I press "Add to Bid" I get this error: Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'viewaction.php' in /home/u107961649/public_html/core/classes/MainController.class.php on line 218 Its so weird as it was working earlier. I completely reinstalled phpVMS, yet I still get the error.
-
It seems the activity feed has no limit, and doesn't hide the very old ones. Is there a way to limit the amount the activity feed can show?
-
How do I evenly space text on sidebar? [SOLVED]
jacobmatthew replied to jacobmatthew's topic in Support Forum
thank you! -
My sidebar currently looks like this, and I'd like to evenly space the text. Id like for my sidebar to be evenly spaced like this. I am clueless, and don't know how to space the text. Any help would be greatly appreciated, thanks! Website here Heres my frontpage_recentpilots.php <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <?php foreach($pilot_list as $pilot) { ?> <p> <a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid).' '.$pilot->firstname.' '.$pilot->lastname ?> <?php echo '<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />'; ?> <?php echo date(DATE_FORMAT, strtotime($pilot->joindate)); ?> </a> </p> <?php } ?>
-
fix for reCAPTCHA key error not working [SOLVED]
jacobmatthew replied to jacobmatthew's topic in Support Forum
ignore this