
llju1
Members-
Posts
190 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by llju1
-
Thanks I have a look and see what I may need to change.
-
Funny that, I had had the problem a few years back and looked up an old support ticket with my server and they told me how to expand the memory. I had do change the memory in the PHP ini file. It was your help that jogged my memory. Thanks for the help. It sucks getting old and forgetting stuff like this . Thanks again.
-
Ok is there a line of script to set it higher or do I set it on the server?
-
I have been getting this error for sometime now. I get it every time I approve a pirep. I even did a clean install and rebuild when we were cyber attacked. The pireps get approve but we get this at the top of the page anyways. Fatal error: Allowed memory size of 73400320 bytes exhausted (tried to allocate 6710 bytes) in /hermes/waloraweb095/b338/pow.llju1/htdocs/core/classes/ezdb/ezdb_mysql.class.php on line 273 any Ideas. it is just annoying. Thanks Lloyd Mendenhall
-
I posted this earlier and did it in the wrong place. Sorry to be a bother. Here is what I put up. Thanks. <solved>
-
Ok got hacked big time on the 29 Sep 2013. It is important to check you emails. Had I then I would have known about this on friday and been able to prevent it. Oh well needed a new look for the site anyways. I may need some help from a few of you as it has been a long while since I built the original site lol.
-
I am a bit confused. How do you add a xml feed to you site? Silly question I am sure but it has been a while since I have done much it he way of coding. Well a few months anyways Thanks Lloyd Got it fixed duh so simple Thanks
-
I can not get this to show the full flight Number. As we have 5 Wings(Airlines) it only show the letters of the Wings(Airlines) but not the actual flight number. EX. VMC1001 just will show as VMC or 57V0401-1 will only show 57V. any Ideas? thanks
-
Another Great Simpilot addon. Thanks so much for this
-
no what it does is when I look at all pireps in admin, it has given the wrong PID. It also show the wrong PID on my front page under recent Pireps.It is assigning the airline id to the beginning of the PID. In Other words. IF I fly another airlines(wing) schedule it will show the Wing Id in front of my id number. exp. my pilot id is VMC0001, but if I fly a scheduel that is listed with the 1956thVMAW (56V) it will put the put my PID as 56V0001 not VMC0001. It still give me credit for the flight though.
-
Ok I just noticed something really weird. We gave 6 airlines(wings). Our pilots can fly any flights even from other wings. when a pilot flies a flight another airline(wing) it tacks on the airline(wing)Id to the pilots pirep. I.E. my pilot Id is VMC0001, If I fly flight 56V1001 it will show the pirep with the pilot ID as 56V0001. It still gives me the hours under my VMC0001 id. and it shows in my list of pireps on my pilot center. Any Ideas?
-
here is mine.my web address is:Virtual Military Airlift Command Lloyd
-
Thanks lorathon and simpilot. I have tried your code with every combination I can think of I even changed the$sql to $query. nothing works. so I will give up for a bit.
-
Ok here is what I now have on the TopPilotData.class.php. <?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() { $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_stats($month,$year) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' ORDER BY landingrate DESC LIMIT $month,$year"; return DB::get_results($query); } } And on the TouchdownStats.php I have this. <?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 TouchdownStats extends CodonModule { public function index() { $this->set('stats', TouchdownStatsData::get_all_stats()); $this->show('touchdownstats/touchdownstats_index.tpl'); } public function top_landings($howmany) { $this->set('stats', TouchdownStatsData::get_stats($howmany)); $this->show('touchdownstats/touchdownstats_index.tpl'); } public function top_landings($month,$year) { $this->set('stats', TouchdownStatsData::get_stats($month,$year)); $this->show('touchdownstats/touchdownstats_index.tpl'); } } and I get this error. Fatal error: Cannot redeclare TouchdownStats::top_landings() in /hermes/web06b/b338/pow.llju1/htdocs/core/modules/TouchdownStats/TouchdownStats.php on line 24 so what am I doing wrong? thanks in advance Lloyd
-
one Last(I hope ) silly question. How do I sort by month or can I? I am sure that it must be a mod of these lines in the core/TouchdownStats.php public function top_landings($howmany) { $this->set('stats', TouchdownStatsData::get_stats($howmany)); $this->show('touchdownstats/touchdownstats_index.tpl'); } I am sure it must be by changing the ($howmany ) to month or something. Thanks in advance Lloyd
-
I have been running VMAC since 1997 and this sounds like some of my old members from 97. and I am sad to say they were adults(started to say grownups ) LOL
-
I have tried it on the view my pireps detail page and nothing happened.. I think it is because on the view my pireps page it get the info from the flightnumber id not the schedule id . hope this helps
-
The Code is still functional.
-
Thanks I knew it was something simple like that. I had some of it worked out but could not get it all worked out. Again thanks
-
I have found this link http://forum.phpvms....chdownstats-10/ in the earlier thread and it works for a separate Landing stats page What do I need to display it in a box on my fronpage.i.e. just to show the PID the Airport and the landing rate. I am sure some it must be simple to do but I am old and confused I guess is how do I show in on my front page tpl like you have at Westjets?
-
I have <?php MainController::Run('Landingstats', 'display_landingstats', '8'); ?> on my frontpage.tpl But it just shows Top Ten Landings Pilot ID Arrival Field Touchdown Rate 0000 ft/min so what am I missing?
-
Ok thanks. do I just need to add <?php MainController::Run('Landingstats', 'display_landingstats', '8'); ?> To my frontpagetpl?
-
Will this work with Kacars? Because all my Pilots use Kacars for their Pireps