-
Posts
1941 -
Joined
-
Last visited
-
Days Won
17
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by flyalaska
-
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
-
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?
-
I am working on a points system now. We will use the points to purchase Payware skins.
-
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.
-
Yes, I need to to show real time.
-
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.
-
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.
-
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.
-
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?
-
<?php echo $userinfo->hub ?>
-
Auto Awards, It blows having to manually add awards for pilots. Especially if you have alot of pilots. Some get left behind.
-
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.
-
Unreleased, think its going to be payware. http://www.simpilotgroup.com/charter/
-
Not sure if this has been mentioned. Automatic awards.
-
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'); ?>
-
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
-
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); }
-
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?
-
You can move all your files to the new domain. Cpanel is set with your host.
-
http://getcu3er.com/
-
Got it working, with the IP Content Module.
-
http://forum.phpvms.net/page/index.html?record=24
-
Good Luck Roger!!