Jump to content

kbohme

Members
  • Posts

    136
  • Joined

  • Last visited

Everything posted by kbohme

  1. Wow, that was easier than I thought....thanks.
  2. When I use Template::show I understand that it looks in the skin folder first and then goes to core/templates to find it. Is there a way that I couls add a directory in the middle ? so it would look in the skin directory first, then a secondary directy, THEN move onto core/templates ? Any help would be greatly appreciated (I am running multiple skins and would like to make use of this so that I can only edit one file and affect all templates. I could use the core/templates folder but I think I would loose everything during an upgrade )
  3. I purchased the tour module not long after it came out. My Pilots love it. My problem is trying to come up with new tours before my pilots finish the last one ! I admit that the price at first seemed a bit steep, but the pilots all donated a little money so the per pilot charge was really quite small.
  4. kbohme

    vacentral

    I have been unable to upload flights to vacentral for some time now. Did I miss a code change perhaps ?
  5. Hey I am simply trying to create a list of all flights in a range of numbers. For example all flights with a flight number beginning with 33. I have tried everything and have gone in so many circles now that I am just ULTRA confused. I was basing it on a wildcard search of '33%' I can't figure out how to setup my class, modules, and templates...or even know any more if I need to or if I can just put code directly into the page itself ?? This stuff is very confusing. I would like my finished product to be a scheduled list of all flights with number starting with 33 Any help would be greatly appreciated. To make matters even more frustrating it seems to me like it should be an easy thing to do....
  6. Actually it seems to have self repaired...we are back at 76 again. Thanks !
  7. Today our airline went from ranked 77, right down to the bottom. For some reason I was deducted 556 point today. Could you please advise as to why I was deducted 556 points that took the total to 0 ?? Thanks
  8. Hello, The server I use was just down for days...they ended up having to reload everything from an out of date backup. Unfortunately my pilots have now lost quite a few of their flights. This makes me unhappy.. I was wondering if I could setup a (i think its called cron) command that would automatically backup the database on my server and send the file to another server I use. I use a cron to do daily maintenance on the site tables etc...and was oping I could do the same thing with a backup. I am hoping to automate it as there are times when I can be away from a computer for up to a week at a time because of work, so my manual backups won't be adequate. Any help would be GREATLY appreciated. Thanks in Advance ! Kurt
  9. well actually, the server I am using has been down for the last 3 days and continues to be having problems so I haven't been able to test it. I will let you know. Thanks for the interest.
  10. Thanks I will look into that...perhaps its a permission thing. I will keep you posted.
  11. i can't seem to find the text file on my server, where is it suppost to be ?
  12. i keep getting this error Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Vatsim' does not have a method 'index' in C:\xampp\htdocs\vms\core\classes\MainController.class.php on line 218 (I get nothing using <?php MainController::Run('Vatsim', 'create_vatsim_data', '!CLIENTS:', 'PILOT', 'AAL'); ?> in a .tpl, when I call the included vatsim.tpl directly I get that error)
  13. Well, its up and running and live in its infant stages....(in terms of site coding) Still lots to learn, I cant figure out how to grab the info from whazzup and turn it into an array for the class file....
  14. Thanks, I found their script and it doesn't really do what I want it to. The download on the forum for the code doesn't work. We have our up and running (finally found some sct files). Just need to put some status stuff on the site. Would be interested in linking the two when we are both ready
  15. it is indeed, are you familiar with it ?
  16. need help with code to put up stats from a whazzup.txt file. I have this info...and am not sure what to do with it.... <? $whazzuptxt = "whazzup.txt"; //get file $file = file_get_contents('whazzup.txt'); //get clients preg_match('/!CLIENTS(.*?)!SERVERS/ms', $file, $results); $content = trim($results[1]); //get out \r\n so on $lines = preg_split('/(\015\012)|(\015)|(\012)/', $content); //filter for pilot and atc clients function filter ($value) { if (strpos($value, 'PILOT') !== false){ return true; }elseif(strpos($value, 'ATC') !== false){ return true; }else{ return false; } } $lines = array_filter($lines, 'filter'); $br = "<br>"; /get each line and decode line and give out line foreach ($lines as $index => $line) { list($callsign, $vid, $realname, $clienttype, $frequency, $latitude, $longitude, $altitude, $groundspeed, $planned_aircraft, $planned_tascruise, $planned_depairport, $planned_altitude, $planned_destairport, $server, $protrevision, $rating, $transponder, $facilitytype, $visualrange, $planned_revision, $planned_flighttype, $planned_deptime, $planned_actdeptime, $planned_hrsenroute, $planned_minenroute, $planned_hrsfuel, $planned_minfuel, $planned_altairport, $planned_remarks, $planned_route, $planned_depairport_lat, $planned_depairport_lon, $planned_destairport_lat, $planned_destairport_lon, $atis_message, $time_last_atis_received, $time_connected, $client_software_name, $client_software_version, $adminrating, $atc_or_pilotrating, $planned_altairport2, $planned_typeofflight, $planned_pob,$plane_hdg,$plane_onground) = explode(':', $line, 47); echo "callsign: ".$callsign.$br; echo "vid: ".$vid.$br; echo "realname: ".$realname.$br; echo "clienttype: ".$clienttype.$br; echo "frequency: ".$frequency.$br; echo "latitude: ".$latitude.$br; echo "longitude: ".$longitude.$br; echo "altitude: ".$altitude.$br; echo "groundspeed: ".$groundspeed.$br; echo "planned_aircraft: ".$planned_aircraft.$br; echo "planned_tascruise: ".$planned_tascruise.$br; echo "planned_depairport: ".$planned_depairport.$br; echo "planned_altitude: ".$planned_altitude.$br; echo "planned_destairport: ".$planned_destairport.$br; echo "server: ".$server.$br; echo "protrevision: ".$protrevision.$br; echo "rating: ".$rating.$br; echo "transponder: ".$transponder.$br; echo "facilitytype: ".$facilitytype.$br; echo "visualrange: ".$visualrange.$br; echo "planned_revision: ".$planned_revision.$br; echo "planned_flighttype: ".$planned_flighttype.$br; echo "planned_deptime: ".$planned_deptime.$br; echo "planned_actdeptime: ".$planned_actdeptime.$br; echo "planned_hrsenroute: ".$planned_hrsenroute.$br; echo "planned_minenroute: ".$planned_minenroute.$br; echo "planned_hrsfuel: ".$planned_hrsfuel.$br; echo "planned_minfuel: ".$planned_minfuel.$br; echo "planned_altairport: ".$planned_altairport.$br; echo "planned_remarks: ".$planned_remarks.$br; echo "planned_route: ".$planned_route.$br; echo "planned_depairport_lat: ".$planned_depairport_lat.$br; echo "planned_depairport_lon: ".$planned_depairport_lon.$br; echo "planned_destairport_lat: ".$planned_destairport_lat.$br; echo "planned_destairport_lon: ".$planned_destairport_lon.$br; echo "atis_message: ".$atis_message.$br; echo "time_last_atis_received: ".$time_last_atis_received.$br; echo "time_connected: ".$time_connected.$br; echo "client_software_name: ".$client_software_name.$br; echo "client_software_version: ".$client_software_version.$br; echo "adminrating: ".$adminrating.$br; echo "atc_or_pilotrating: ".$atc_or_pilotrating.$br; echo "planned_altairport2: ".$planned_altairport2.$br; echo "planned_typeofflight: ".$planned_typeofflight.$br; echo "planned_pob: ".$planned_pob.$br; echo "plane_hdg: ".$plane_hdg.$br; echo "plane_onground: ".$plane_onground.$br; echo "<br><br>"; } ?> Do I make this a class ? or a module ? and then call it from a template ? I am a bit lost.
  17. its in pastebin... I appreciate the help http://pastebin.com/8RK9QCYv
  18. I keep getting the error: Invalid argument supplied for foreach() in C:\xampp\htdocs\vms\core\common\TouchdownStatsData.class.php on line 44 When I try to call the average landing rate of the pilot. public function pilot_stats($pilotid) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' AND pilotid = '$pilotid' ORDER BY landingrate DESC"; return DB::get_results($query); } public function pilot_average($pilotid) { $stats = self::pilot_stats($pilotid); $total = 0; $count = 0; foreach ($stats as $stat) { $total = $total + $stat->landingrate; $count++; } $average = $total / $count; return $average; } is the code I have in the TouchdownStatsData.class and <?php echo 'Pilot average landing rate '.round(TouchdownStatsData::pilot_average('$pilotid'), 2); ?> I am using in the template. I can get the average ailine rate fine....just not the pilot rate. I am stumped. (line 44 is the second foreach call
  19. I have the same issue. What was your mistake ?
  20. I am trying to use a planning program called Virtual Dispatch. It calls the information from an XML file. I need to populate that xml file from my sql databases Do i write a module or class first ? (looking for bid information) and can I do it directly in the xml file ? This may be WAY over my head, so before I pull out too much more hair, I'm wondering if it is even possible, or perhaps someone else is using this program and can give me an example that I can reverse engineer ? Thanks
  21. I am looking to get the flight tracking google map to show a line for the actual flight path of the aircraft, much like Vatsim does. (see image) I have been trying to reverse engineer it, but its not working. Every time I think I'm getting close I loose it... any help would be greatly appreciated !
  22. silly question perhaps if I install this , what looks like a GREAT addon, does that mean that pilots not flying on vatsim can no longer use Kacars, or is there still the option ?
  23. Perfect thanks for that And yes a little double dipping but it would only be for select flights (shared routes) and shared pilots. One I get the first part figured I hope to be able only credit half the hours of the flight to each VA (but that is a ways down the road) Its kinda an attempt to better integrate partnering VAs so that pilots don't feel they will loose out on one VA by flying for another (in essence when a pilot flys a route on one VA to position to fly for another the airlines would each credit half the time, or if the two partnered VAs have the same sched the pilot will get half hours on each thereby making the decision aircraft based and not VA based, since we are partners anyways) it may be unrealistic but as a pilot I think I would like it Does that make any sence ?
  24. Sorry perhaps I didn't explain well Let's say I do an kacars flight at VA1 it gets filed and accepted. I would then like to export that flight (and just select flights) and send that info to va2 so that they can import it (As oposed to manual email and entry of details) I realise there would have to be manupulation of pilot I'd etc to match at each va
×
×
  • Create New...