Moderators Parkho Posted November 12, 2016 Moderators Report Share Posted November 12, 2016 (edited) TopPilot_V2.0 Install: Download the repository at Github and unzip in a desired location. Upload files into coresponding folders on your website in the oreder. 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! Support: Visit www.parkho.ir and fill out "Contact Me" form. I will get back to you as soon as possible[/font][/color][/color] Demo: At my website www.parkho.ir Screenshot: Edited December 1, 2016 by Parkho 2 Quote Link to comment Share on other sites More sharing options...
gio1961 Posted November 13, 2016 Report Share Posted November 13, 2016 Hello, I installed the addon, but I have the following error and I do not know what can depend on. Parse error: syntax error, unexpected '=' in /membri/italianichevolano/core/common/TopPilots.class.php on line 27 Use the phpvms_5.5.x version of simpilot. php running on 5.4 servers thanks to a possible reply. Yours sincerely Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 13, 2016 Author Moderators Report Share Posted November 13, 2016 Hello, I installed the addon, but I have the following error and I do not know what can depend on. Parse error: syntax error, unexpected '=' in /membri/italianichevolano/core/common/TopPilots.class.php on line 27 Use the phpvms_5.5.x version of simpilot. php running on 5.4 servers thanks to a possible reply. Yours sincerely Is that the only error you get? Quote Link to comment Share on other sites More sharing options...
gio1961 Posted November 13, 2016 Report Share Posted November 13, 2016 Thank you for responding ... this is the only error that I receive Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 13, 2016 Author Moderators Report Share Posted November 13, 2016 I checked the codes on my website everything seems to be working fine. What's you website? Quote Link to comment Share on other sites More sharing options...
Morgan Posted November 13, 2016 Report Share Posted November 13, 2016 (edited) i have tried to turn it into a .tpl but then i get this error [13-Nov-2016 17:02:24 UTC] PHP Notice: The template file "/home/theairline/public_html/crew.virtualmonarch.com//core/templates/toppilot/toppilotalltimebl.php.tpl" doesn't exist in /home/theairline/public_html/crew.virtualmonarch.com/core/classes/TemplateSet.class.php on line 248 for every single template file Edited November 13, 2016 by Morgan Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 13, 2016 Author Moderators Report Share Posted November 13, 2016 (edited) i have tried to turn it into a .tpl but then i get this error [13-Nov-2016 17:02:24 UTC] PHP Notice: The template file "/home/theairline/public_html/crew.virtualmonarch.com//core/templates/toppilot/toppilotalltimebl.php.tpl" doesn't exist in /home/theairline/public_html/crew.virtualmonarch.com/core/classes/TemplateSet.class.php on line 248 for every single template file That's because it is written to match phpVMS 5.5x which means host's php version 5.x. If you want to revert it back to TPL, you'll have to change multiple files not just their extensions. Edited November 13, 2016 by parkho Quote Link to comment Share on other sites More sharing options...
Morgan Posted November 13, 2016 Report Share Posted November 13, 2016 (edited) well i changed the module file to use .tpl - i changed all template file extensions and inside toppilot.tpl i changed the 4 urls to .tpl, and i checked the common. i didnt find anything to change in there or anywhere else update: i found them but now the look is a bit different to your photo, and it has disbled my animations e.g. dropdown menu Edited November 13, 2016 by Morgan Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 13, 2016 Author Moderators Report Share Posted November 13, 2016 All functions in class file must be changed from "public static function" to "public function". What version of phpVMS you're using anyway?!?! Quote Link to comment Share on other sites More sharing options...
Morgan Posted November 13, 2016 Report Share Posted November 13, 2016 i found them but now the look is a bit different to your photo, and it has disbled my animations e.g. dropdown menu Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 13, 2016 Author Moderators Report Share Posted November 13, 2016 (edited) Give me the link to your page. Maybe the javascript has a conflict with your website Edited November 13, 2016 by parkho Quote Link to comment Share on other sites More sharing options...
Morgan Posted November 13, 2016 Report Share Posted November 13, 2016 http://crew.virtualmonarch.com/index.php/Toppilot Quote Link to comment Share on other sites More sharing options...
Morgan Posted November 13, 2016 Report Share Posted November 13, 2016 you will see this but when loged in you see Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 13, 2016 Author Moderators Report Share Posted November 13, 2016 I think it's the rank image. Try disabling the image to see if it's fixed. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 13, 2016 Author Moderators Report Share Posted November 13, 2016 Also, remove all the styles from the TPL files. Quote Link to comment Share on other sites More sharing options...
Morgan Posted November 13, 2016 Report Share Posted November 13, 2016 nope Quote Link to comment Share on other sites More sharing options...
Morgan Posted November 13, 2016 Report Share Posted November 13, 2016 when you say remove all styleing do you mean the <link type="text/css" rel="stylesheet" href="http://onlinehtmltools.com/tab-generator/skins/skin6/top.css"></script> stuff or if any <style></style> tags Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 13, 2016 Author Moderators Report Share Posted November 13, 2016 when you say remove all styleing do you mean the <link type="text/css" rel="stylesheet" href="http://onlinehtmltoo....css"></script> stuff or if any <style></style> tags No! I mean inside the TPL files. The reason is that maybe your skin uses some kind of a CSS that conflicts with the styling of the TPLs. Quote Link to comment Share on other sites More sharing options...
Morgan Posted November 13, 2016 Report Share Posted November 13, 2016 yes i know and i mean do you want me to remove <link type="text/css" rel="stylesheet" href="http://onlinehtmltoo....css"></script> lines because theres no other css in the .tpl files Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 13, 2016 Author Moderators Report Share Posted November 13, 2016 Okay. Open all TPLs and change the <table> tags to the following: <table width="100%"> Quote Link to comment Share on other sites More sharing options...
Moderators shakamonkey88 Posted November 13, 2016 Moderators Report Share Posted November 13, 2016 (edited) Great addon but it seems to have disabled my top banner... http://www.alaskairv...ex.php/toppilot using 2.9.something Edited November 13, 2016 by shakamonkey88 Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 14, 2016 Author Moderators Report Share Posted November 14, 2016 Great addon but it seems to have disabled my top banner... http://www.alaskairv...ex.php/toppilot using 2.9.something I think its javascript has a conflict with your website. Are you using Bootstrap? Quote Link to comment Share on other sites More sharing options...
Moderators shakamonkey88 Posted November 14, 2016 Moderators Report Share Posted November 14, 2016 I think its javascript has a conflict with your website. Are you using Bootstrap? Not that I know of - I'm using Ocean_blue theme Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 14, 2016 Author Moderators Report Share Posted November 14, 2016 Okay! I'm working on the CSS to make it as simple as possible. Quote Link to comment Share on other sites More sharing options...
Moderators shakamonkey88 Posted November 15, 2016 Moderators Report Share Posted November 15, 2016 Ah great - looking forward to it! Thanks! Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 15, 2016 Author Moderators Report Share Posted November 15, 2016 (edited) I have created a new tab version for Toppilot itself. Please download and replace the template files and download and add JS, CSS files. Don't forget to add the following to your layout.php <script type="text/javascript" src="<?php echo fileurl('lib/js/toppilot.js');?>"></script> <link rel="stylesheet" href="<?php echo fileurl('lib/css/toppilot.css');?>" /> between <head></head> tags. Cheers Screenshots Edited November 15, 2016 by parkho Quote Link to comment Share on other sites More sharing options...
Moderators shakamonkey88 Posted November 15, 2016 Moderators Report Share Posted November 15, 2016 Ah, fantastic! Thank you very much. Is there any way to have it open as default? When you go on the page, it shows as per your first image above. Could we sepcifiy how it shows when you first go on the "toppilot" web page? Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 16, 2016 Author Moderators Report Share Posted November 16, 2016 (edited) Open "templates/toppilot.php" and change the following line: <li><a href="javascript:void(0)" class="toppilotdet" onclick="toppilottabs(event, 'br')">Best Revenues</a></li> To this: <li><a id="defaultOpen" href="javascript:void(0)" class="toppilotdet" onclick="toppilottabs(event, 'br')">Best Revenues</a></li> Now add the following at the end <script> document.getElementById("defaultOpen").click(); </script> If you want to open the next vertical tab you can do the above in "toppilotdetailbr.php" just remember the link id must be unique. Edited November 16, 2016 by parkho Quote Link to comment Share on other sites More sharing options...
Moderators shakamonkey88 Posted November 16, 2016 Moderators Report Share Posted November 16, 2016 I love you Parkho. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 16, 2016 Author Moderators Report Share Posted November 16, 2016 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.