# TopPilot V2.0

**URL:** <https://forum.phpvms.net/t/toppilot-v2-0/11442>\
**Category:** Parkho's Addons\
**Created:** [November 12, 2016, 8:20pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442 "2016-11-12T20:20:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parkho](https://forum.phpvms.net/user_avatar/forum.phpvms.net/parkho/32/3273_2.png) [@Parkho](https://forum.phpvms.net/u/Parkho)\
**Post date:** [November 12, 2016, 8:20pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/1 "2016-11-12T20:20:06Z")

</div>

**TopPilot\_V2.0**

Install:

- Download the repository at [Github](https://github.com/parkho/TopPilots_V1.0) 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.

- Access it using \<?php echo url(‘/toppilot’) ;?\>

- Enjoy!

Support:

Visit [www.parkho.ir](http://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](http://www.parkho.ir/)

Screenshot:

---

<div class="post-metadata">

**Author:** ![gio1961](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/g/ea666f/32.png) [@gio1961](https://forum.phpvms.net/u/gio1961)\
**Post date:** [November 13, 2016, 12:59pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/2 "2016-11-13T12:59:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Parkho](https://forum.phpvms.net/user_avatar/forum.phpvms.net/parkho/32/3273_2.png) [@Parkho](https://forum.phpvms.net/u/Parkho)\
**Post date:** [November 13, 2016, 1:23pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/3 "2016-11-13T13:23:10Z")

</div>

> 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?

---

<div class="post-metadata">

**Author:** ![gio1961](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/g/ea666f/32.png) [@gio1961](https://forum.phpvms.net/u/gio1961)\
**Post date:** [November 13, 2016, 1:32pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/4 "2016-11-13T13:32:27Z")

</div>

Thank you for responding … this is the only error that I receive

---

<div class="post-metadata">

**Author:** ![Parkho](https://forum.phpvms.net/user_avatar/forum.phpvms.net/parkho/32/3273_2.png) [@Parkho](https://forum.phpvms.net/u/Parkho)\
**Post date:** [November 13, 2016, 1:33pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/5 "2016-11-13T13:33:33Z")

</div>

I checked the codes on my website everything seems to be working fine.

What’s you website?

---

<div class="post-metadata">

**Author:** ![Morgan](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Morgan](https://forum.phpvms.net/u/Morgan)\
**Post date:** [November 13, 2016, 4:31pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/6 "2016-11-13T16:31:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Parkho](https://forum.phpvms.net/user_avatar/forum.phpvms.net/parkho/32/3273_2.png) [@Parkho](https://forum.phpvms.net/u/Parkho)\
**Post date:** [November 13, 2016, 5:08pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/7 "2016-11-13T17:08:47Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![Morgan](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Morgan](https://forum.phpvms.net/u/Morgan)\
**Post date:** [November 13, 2016, 5:12pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/8 "2016-11-13T17:12:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Parkho](https://forum.phpvms.net/user_avatar/forum.phpvms.net/parkho/32/3273_2.png) [@Parkho](https://forum.phpvms.net/u/Parkho)\
**Post date:** [November 13, 2016, 5:16pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/9 "2016-11-13T17:16:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Morgan](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Morgan](https://forum.phpvms.net/u/Morgan)\
**Post date:** [November 13, 2016, 5:17pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/10 "2016-11-13T17:17:29Z")

</div>

i found them but now the look is a bit different to your photo, and it has disbled my animations e.g. dropdown menu

---

<div class="post-metadata">

**Author:** ![Parkho](https://forum.phpvms.net/user_avatar/forum.phpvms.net/parkho/32/3273_2.png) [@Parkho](https://forum.phpvms.net/u/Parkho)\
**Post date:** [November 13, 2016, 5:18pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/11 "2016-11-13T17:18:43Z")

</div>

Give me the link to your page. Maybe the javascript has a conflict with your website

---

<div class="post-metadata">

**Author:** ![Morgan](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Morgan](https://forum.phpvms.net/u/Morgan)\
**Post date:** [November 13, 2016, 5:18pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/12 "2016-11-13T17:18:52Z")

</div>

[http://crew.virtualmonarch.com/index.php/Toppilot](http://crew.virtualmonarch.com/index.php/Toppilot)

---

<div class="post-metadata">

**Author:** ![Morgan](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Morgan](https://forum.phpvms.net/u/Morgan)\
**Post date:** [November 13, 2016, 5:20pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/13 "2016-11-13T17:20:58Z")

</div>

you will see this

but when loged in you see

---

<div class="post-metadata">

**Author:** ![Parkho](https://forum.phpvms.net/user_avatar/forum.phpvms.net/parkho/32/3273_2.png) [@Parkho](https://forum.phpvms.net/u/Parkho)\
**Post date:** [November 13, 2016, 5:22pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/14 "2016-11-13T17:22:16Z")

</div>

I think it’s the rank image. Try disabling the image to see if it’s fixed.

---

<div class="post-metadata">

**Author:** ![Parkho](https://forum.phpvms.net/user_avatar/forum.phpvms.net/parkho/32/3273_2.png) [@Parkho](https://forum.phpvms.net/u/Parkho)\
**Post date:** [November 13, 2016, 5:24pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/15 "2016-11-13T17:24:58Z")

</div>

Also, remove all the styles from the TPL files.

---

<div class="post-metadata">

**Author:** ![Morgan](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Morgan](https://forum.phpvms.net/u/Morgan)\
**Post date:** [November 13, 2016, 5:27pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/16 "2016-11-13T17:27:46Z")

</div>

nope

---

<div class="post-metadata">

**Author:** ![Morgan](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Morgan](https://forum.phpvms.net/u/Morgan)\
**Post date:** [November 13, 2016, 5:28pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/17 "2016-11-13T17:28:58Z")

</div>

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\>](http://onlinehtmltools.com/tab-generator/skins/skin6/top.css) stuff or if any \<style\>\</style\> tags

---

<div class="post-metadata">

**Author:** ![Parkho](https://forum.phpvms.net/user_avatar/forum.phpvms.net/parkho/32/3273_2.png) [@Parkho](https://forum.phpvms.net/u/Parkho)\
**Post date:** [November 13, 2016, 5:36pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/18 "2016-11-13T17:36:08Z")

</div>

> when you say remove all styleing do you mean the
> 
> \<link type=“text/css” rel=“stylesheet” href="[http://onlinehtmltoo…css"\>\</script\>](http://onlinehtmltools.com/tab-generator/skins/skin6/top.css%22) 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.

---

<div class="post-metadata">

**Author:** ![Morgan](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Morgan](https://forum.phpvms.net/u/Morgan)\
**Post date:** [November 13, 2016, 5:55pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/19 "2016-11-13T17:55:40Z")

</div>

yes i know and i mean do you want me to remove \<link type=“text/css” rel=“stylesheet” href="[http://onlinehtmltoo…css"\>\</script\>](http://onlinehtmltools.com/tab-generator/skins/skin6/top.css%22%3E%3C/script%3E) lines because theres no other css in the .tpl files

---

<div class="post-metadata">

**Author:** ![Parkho](https://forum.phpvms.net/user_avatar/forum.phpvms.net/parkho/32/3273_2.png) [@Parkho](https://forum.phpvms.net/u/Parkho)\
**Post date:** [November 13, 2016, 7:34pm UTC](https://forum.phpvms.net/t/toppilot-v2-0/11442/20 "2016-11-13T19:34:23Z")

</div>

Okay. Open all TPLs and change the \<table\> tags to the following:

```
<table width="100%">

```

[Next page](https://forum.phpvms.net/t/toppilot-v2-0/11442.md?page=2)
