Log in

View Full Version : Vbulletin plugins


echo@
10-09-2008, 09:28 PM
I hope someone could point me in the right direction here, im fairly new to vb so bear with me.

Im trying to to pass a php value from a varible to my navigation menu.

Im using a method from alistapart.com, that uses php to rewrite the current class in css.

What i have to do create a varible, in my case its
$thisPage="Community";

after this i include the navagtion.php menu.

Ok so i know this menu works for the rest of my site but i cant get it to pass the varible.

I have created several plugins,


One to include the header (of my main script)
One to Set the $thisPage
One to include the navagation.php


I have enabled the plugin system and nearly everything works, only problem is that vbulletin justs prints the varible's value instead of storing it .

im calling the plugin $thisPage in my vb header file, and my plugin contains$thisPage="Community"; vb just prints the word "Community" ?

Any ideas

:confused:

Lynne
10-09-2008, 11:32 PM
which hook are you using for your plugin? I'm not really getting the full picture of what you are doing here.