Jump to content

Recommended Posts

  • Moderators
Posted (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:

tp.png

Edited by Parkho
  • Like 2
Posted

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

  • Moderators
Posted

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?

Posted (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 by Morgan
  • Moderators
Posted (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 by parkho
Posted (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

7e2adba89a904ce2a838cfacdc34c0ea.png

Edited by Morgan
  • Moderators
Posted

All functions in class file must be changed from "public static function" to "public function". What version of phpVMS you're using anyway?!?!

  • Moderators
Posted (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

tp1.png

tp2.png

tp3.png

Edited by parkho
  • Moderators
Posted

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?

  • Moderators
Posted (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 by parkho

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...