Moderators Parkho Posted November 20, 2016 Author Moderators Report Share Posted November 20, 2016 I have made some changes to TopPilot V2.0. If you wish you can download again and replace it. Change Log: For tabbings, some free net version was used which is now removed and coded from scratch CSS was changed to a new look (Screenshots below). Install: download and replace "templates" and "lib" folders. Screenshots: Cheers! :D Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted November 30, 2016 Report Share Posted November 30, 2016 Hi, I download the module and thanks a lot. But please look at the pic, http://prntscr.com/ddrfq8 Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 30, 2016 Author Moderators Report Share Posted November 30, 2016 I can't open it. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted December 1, 2016 Author Moderators Report Share Posted December 1, 2016 (edited) Hi, I download the module and thanks a lot. But please look at the pic, http://prntscr.com/ddrfq8 You need to link "toppilot.css" and "toppilot.js" in your "layout.php" file between <head> section. Install: Download the repository at Github and unzip in a desired location. Upload files into corresponding folders on your website in the order. Include the following codes into your "layout.php" between <head></head> section. <script type="text/javascript" src="<?php echo fileurl('lib/js/toppilot.js');?>"></script> <link rel="stylesheet" href="<?php echo fileurl('lib/css/toppilot.css');?>" /> Access it using <?php echo url('/toppilot') ;?> Enjoy! Edited December 1, 2016 by Parkho Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted December 1, 2016 Report Share Posted December 1, 2016 (edited) Hi Parkho, Thanks for your quick answer and now better. If you can look this pic and tell me why what did i do wrong? It shows result at the bottom not on the right side... Thanks and sorry about the problem. http://prntscr.com/ddynht also you can see it from here : http://s.swissval.com/index.php/toppilot Edited December 1, 2016 by OmerAslan Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted December 1, 2016 Author Moderators Report Share Posted December 1, 2016 (edited) Hi Parkho, Thanks for your quick answer and now better. If you can look this pic and tell me why what did i do wrong? It shows result at the bottom not on the right side... Thanks and sorry about the problem. http://prntscr.com/ddynht also you can see it from here : http://s.swissval.co...ex.php/toppilot Open "toppilot.css" and go down to line 68 and change the following: ul.toppilot li { float: left; padding: 5px; width: 25%;<-----This text-align: center; } To: ul.toppilot li { float: left; padding: 5px; width: 20%;<-----To this text-align: center; } Edited December 1, 2016 by Parkho Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted December 1, 2016 Report Share Posted December 1, 2016 Open "toppilot.css" and go down to line 68 and change the following: ul.toppilot li { float: left; padding: 5px; width: 25%;<-----This text-align: center; } To: ul.toppilot li { float: left; padding: 5px; width: 20%;<-----To this text-align: center; } I did and it's perfect my friend. Thanks a lot. Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted May 1, 2017 Report Share Posted May 1, 2017 Hi My Friend, I have one more problem. Can you check for me? http://image.prntscr.com/image/328759e8b6e646c6ad840674c91c07ee.png http://prnt.sc/f2u4r0 Thanks. Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted May 2, 2017 Report Share Posted May 2, 2017 23 hours ago, OmerAslan said: Hi My Friend, I have one more problem. Can you check for me? http://image.prntscr.com/image/328759e8b6e646c6ad840674c91c07ee.png http://prnt.sc/f2u4r0 Thanks. On 11/13/2016 at 9:34 PM, Parkho said: Okay. Open all TPLs and change the <table> tags to the following: <table width="100%"> Now Working Thanks. Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted May 2, 2017 Report Share Posted May 2, 2017 Hi Parkho, I have two more problems. Please see the picture. Thanks Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted May 14, 2017 Report Share Posted May 14, 2017 On 5/2/2017 at 7:38 PM, OmerAslan said: Hi Parkho, I have two more problems. Please see the picture. Thanks Interesting, I have this module in my crew center and don't have this problem also in regular phpvms 5.5.2 and i have this problem and i couldn't fix it. Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted May 21, 2017 Report Share Posted May 21, 2017 On 5/15/2017 at 0:05 AM, OmerAslan said: Interesting, I have this module in my crew center and don't have this problem also in regular phpvms 5.5.2 and i have this problem and i couldn't fix it. To fix top empty place go to lib/css/toppilot.css and find all %85 make %84 and done... But still i don't know how to fix numbers... Quote Link to comment Share on other sites More sharing options...
bpruett72 Posted June 17, 2017 Report Share Posted June 17, 2017 (edited) Delete. Edited June 17, 2017 by bpruett72 Quote Link to comment Share on other sites More sharing options...
bpruett72 Posted June 17, 2017 Report Share Posted June 17, 2017 On 5/21/2017 at 10:48 AM, OmerAslan said: To fix top empty place go to lib/css/toppilot.css and find all %85 make %84 and done... But still i don't know how to fix numbers... I have the issue in the picture. I have already tried what Omer stated and the problem remains. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted June 29, 2017 Author Moderators Report Share Posted June 29, 2017 Some changes were made to "toppilot.css" for adjustment. Please download and replace it to resolve the CSS issues. Regards 1 Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted July 1, 2017 Report Share Posted July 1, 2017 On 6/29/2017 at 5:44 PM, Parkho said: Some changes were made to "toppilot.css" for adjustment. Please download and replace it to resolve the CSS issues. Regards Thanks my friend... Quote Link to comment Share on other sites More sharing options...
Tummi Posted August 1, 2017 Report Share Posted August 1, 2017 thank you very much fpr this addon! one Question, if a pilot submitted a pirep manualy and have than a Landingrate of 0, it shows up in the best landigrate as best landing, is there anyway to exclude manual pireps or landigrates with 0? Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted August 6, 2017 Author Moderators Report Share Posted August 6, 2017 On 8/2/2017 at 1:08 AM, Tummi said: thank you very much fpr this addon! one Question, if a pilot submitted a pirep manualy and have than a Landingrate of 0, it shows up in the best landigrate as best landing, is there anyway to exclude manual pireps or landigrates with 0? The landing rate is calculated in average, so if a pilot submits only 1 PIREP and the landing rate is 0, the system shows it as best landing rate. It could, however, be changed to exclude landing rate of 0 in calculation. Quote Link to comment Share on other sites More sharing options...
Tummi Posted August 6, 2017 Report Share Posted August 6, 2017 1 minute ago, Parkho said: The landing rate is calculated in average, so if a pilot submits only 1 PIREP and the landing rate is 0, the system shows it as best landing rate. It could, however, be changed to exclude landing rate of 0 in calculation. Is it possible to not show the average landigrates and instead the best landingrate? Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted August 6, 2017 Author Moderators Report Share Posted August 6, 2017 1 minute ago, Tummi said: Is it possible to not show the average landigrates and instead the best landingrate? Sorry! I misunderstood TP with another one of my modules. TP is showing the best smallest landing rate that is submitted. I'll have to change the code to ignore 0 landing rate. Thanks for noticing. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted August 6, 2017 Author Moderators Report Share Posted August 6, 2017 Code update: @Tummi has mentioned that the landing rate of 0 will be shown as the best once the pilot submits PIREPS manually with landing rate of 0 (thanks), so I changed the code to ignore 0 in calculation. Please download "toppilot.class.php" from Github and replace with the one on your website. Cheers Quote Link to comment Share on other sites More sharing options...
Tummi Posted August 6, 2017 Report Share Posted August 6, 2017 @Parkho Your welcome, but i have then still an issue.. i had landingrates below -53 in the Pirepdatabase, with the earlyer Toppilotmodule (i think from simpilot) they where shown, but they are not anymore in the Years landigrate statisitic. What can the reason be? Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted August 6, 2017 Author Moderators Report Share Posted August 6, 2017 2 minutes ago, Tummi said: @Parkho Your welcome, but i have then still an issue.. i had landingrates below -53 in the Pirepdatabase, with the earlyer Toppilotmodule (i think from simpilot) they where shown, but they are not anymore in the Years landigrate statisitic. What can the reason be? Please check the landing rate column to be in negative numbers as I checked the code with landing rate of (-53) and it shows correctly in the Years. Quote Link to comment Share on other sites More sharing options...
Tummi Posted August 6, 2017 Report Share Posted August 6, 2017 @Parkho Your welcome, but i have then still an issue.. i had landingrates below -53 in the Pirepdatabase, with the earlyer Toppilotmodule (i think from simpilot) they where shown, but they are not anymore in the Years landigrate statisitic. What can the reason be? Have checked.. The Top 10 are from -1 up to -53, they are all missing The LR of 0 is gone, Thank you very much for that! Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted August 6, 2017 Author Moderators Report Share Posted August 6, 2017 @Tummi I'm surprised! I just double checked and it's working correctly. Would u like to give access to your cpanel to find out where the problem is? Also, check the year for those pireps to be 2017 in your DB. Quote Link to comment Share on other sites More sharing options...
Tummi Posted August 8, 2017 Report Share Posted August 8, 2017 working fine now =) thanks alot again Quote Link to comment Share on other sites More sharing options...
parthprakash1 Posted December 8, 2017 Report Share Posted December 8, 2017 Getting an error Warning: Invalid argument supplied for foreach() in /storage/ssd4/917/3864917/public_html/core/templates/toppilot/bestflighttime.php on line 4 PILOT ID NAME RANK HOUR(S) Same for revenue and distance Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted December 10, 2017 Author Moderators Report Share Posted December 10, 2017 On 12/8/2017 at 2:13 PM, parthprakash1 said: Getting an error Warning: Invalid argument supplied for foreach() in /storage/ssd4/917/3864917/public_html/core/templates/toppilot/bestflighttime.php on line 4 PILOT ID NAME RANK HOUR(S) Same for revenue and distance It seems you have no pireps submitted yet or you have installation problem. Quote Link to comment Share on other sites More sharing options...
thefiercepilot Posted December 17, 2017 Report Share Posted December 17, 2017 (edited) @Parkho Warning: Invalid argument supplied for foreach() in /storage/ssd3/285/3946285/public_html/core/templates/toppilot/bestrevenue.php on line 4 PILOT ID NAME RANK AMOUNT I saw @parthprakash1 Error above too. Could it be because all the pireps that r in are manual or because there is no user other than me? Edited December 17, 2017 by thefiercepilot Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted December 17, 2017 Author Moderators Report Share Posted December 17, 2017 11 hours ago, thefiercepilot said: @Parkho Warning: Invalid argument supplied for foreach() in /storage/ssd3/285/3946285/public_html/core/templates/toppilot/bestrevenue.php on line 4 PILOT ID NAME RANK AMOUNT I saw @parthprakash1 Error above too. Could it be because all the pireps that r in are manual or because there is no user other than me? @thefiercepilot Same issue for you, no pirpes have been submitted yet or installation problem. Try submitting a manual PIREP. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.