Jump to content

flyalaska

Members
  • Posts

    1941
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by flyalaska

  1. I know about the group awards. I want a box to display the last award givin to the pilot. Like in the pic I made here
  2. I been trying to show the Last Award(image) on the pilots profile for private and public. All my attempts have failed. Does anyone have any ideas?
  3. I am working on a points system now. We will use the points to purchase Payware skins.
  4. The average VA owner won't spill out $149 for IPB, it is well worth it. I have IPB as a few others here. Best board that I ever had.
  5. TY
  6. Yes, I need to to show real time.
  7. Has nothing to do with kACARS, I don't even use kACARS. Both list are people who are actaully on the website. By default the phpVMS users are static. I want it to be real time like the chat.
  8. Can anyone tell me how to make the user's online show in real time. I have a chat the is in real time and looks funny when its not matching the users online.
  9. I was looking through the manual. I saw a pic, there's an option to choose the schedule, with the plane. What I think happened was me or someone on my side uploaded an old version of the Tour Mod. I reuploaded a fresh copy and now I have the option. Unfortunately already have started the tour and have a few flights. A good feature to have would be able to update/edit after you have saved. Is there a way to edit through the sql? The big below is after you have added all the routes.
  10. I get this when I approve a pirep. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2930 bytes) in /home/caspsh1/public_html/fly/core/classes/ezdb/ezdb_mysql.class.php on line 273 The pirep gets approved, I have go back to pending everytime. Any ideas what this means?
  11. <?php echo $userinfo->hub ?>
  12. Auto Awards, It blows having to manually add awards for pilots. Especially if you have alot of pilots. Some get left behind.
  13. In a future update can you have an option to chose your flight numbers? Seems if you have the same route, but with a different aircraft it will pick the smaller flight number. Giving me no way to use the plane I need too.
  14. Unreleased, think its going to be payware. http://www.simpilotgroup.com/charter/
  15. Not sure if this has been mentioned. Automatic awards.
  16. Got it without any errors now. Shouldn't this show the top 10 for the month? <?php MainController::Run('TouchdownStats', 'top_landing_this_month', '10'); ?>
  17. Line 23 is the closing bracket for the month section. Here is the whole code. I looked and everything seems to match with the others. <?php //simpilotgroup addon module for phpVMS virtual airline system // //simpilotgroup addon modules are licenced under the following license: //Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) //To view full license text visit http://creativecommons.org/licenses/by-nc-sa/3.0/ // //@author David Clark (simpilot) //@copyright Copyright (c) 2009-2010, David Clark //@license http://creativecommons.org/licenses/by-nc-sa/3.0/ class TouchdownStatsData extends CodonData { public function get_all_stats($month) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' AND MONTH(submitdate) = '$month' ORDER BY landingrate DESC"; return DB::get_results($query); } public function get_all_stats() { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' ORDER BY landingrate DESC"; return DB::get_results($query); } public function get_stats($howmany) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' ORDER BY landingrate DESC LIMIT $howmany"; return DB::get_results($query); } public function get_pilot_landingstats($pilotid, $howmany) { $query = "SELECT * FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' AND pilotid = '$pilotid' ORDER BY landingrate DESC LIMIT $howmany;"; return DB::get_results($query); } 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; } public function airline_average() { $stats = self::get_all_stats(); $total = 0; $count = 0; foreach ($stats as $stat) { $total = $total + $stat->landingrate; $count++; } $average = $total / $count; return $average; } } Fatal error: Cannot redeclare TouchdownStatsData::get_all_stats() in /home/caspsh1/public_html/fly/core/common/TouchdownStatsData.class.php on line 25
  18. Tried that really screwed up my page. Here is the section of the code of TouchdownStatsData.class. The month section is at the bottom public function get_all_stats() { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' ORDER BY landingrate DESC"; return DB::get_results($query); } public function get_stats($howmany) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' ORDER BY landingrate DESC LIMIT $howmany"; return DB::get_results($query); } public function get_pilot_landingstats($pilotid, $howmany) { $query = "SELECT * FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' AND pilotid = '$pilotid' ORDER BY landingrate DESC LIMIT $howmany;"; return DB::get_results($query); } 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 get_all_stats($month) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' AND MONTH(submitdate) = '$month' ORDER BY landingrate DESC"; return DB::get_results($query); }
  19. Looking at my Top Landing, the top 10 which is displayed on the index page. It has a few -1 and the rest are -2's. Is there a way to display the top 10 for the currant month rather than overall?
  20. You can move all your files to the new domain. Cpanel is set with your host.
  21. http://getcu3er.com/
  22. Got it working, with the IP Content Module.
  23. http://forum.phpvms.net/page/index.html?record=24
  24. Good Luck Roger!!
  25. TY That worked!
×
×
  • Create New...