![]() |
Registering Variables Help
Hey all i have a php script for random ads
PHP Code:
i than added a plugin in vbulletin PHP Code:
i than added Code:
{vb:raw bannerphp} i read the vb manual some more and found that in vb 4 you need to Registering Variables PHP Code:
Thanks alot |
try this
hook forumhome_complete PHP Code:
Code:
{vb:raw randombanner} |
Quote:
|
What template are you trying to use this in?
HTML Code:
{vb:raw bannerphp} PHP Code:
|
Quote:
8WR_media_details ad_navbar_below i was testing on the FORUMHOME one tho Thanks |
Well, if you want to test your originally posted code in the FORUMHOME template, the correct way to preregister the variable $bannerphp would be (where did $includedphp come from?):
PHP Code:
|
Quote:
|
That code won't register the variable on any page except the forumhome page so that would be the only page it would show on assuming your other code is correct. (And you shouldn't include with a full path, you need to chdir to the directory and then include it.... and if you are in the directory, then you shouldn't have to chdir anyway.)
|
All times are GMT. The time now is 01:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|