The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]()
try this
hook forumhome_complete PHP Code:
Code:
{vb:raw randombanner} |
#3
|
|||
|
|||
![]() Quote:
![]() |
#4
|
||||
|
||||
![]()
What template are you trying to use this in?
HTML Code:
{vb:raw bannerphp} PHP Code:
|
#5
|
|||
|
|||
![]() Quote:
8WR_media_details ad_navbar_below i was testing on the FORUMHOME one tho Thanks |
#6
|
||||
|
||||
![]()
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:
|
#7
|
|||
|
|||
![]()
i got that from the vBulletin Manual that was an example i did add that above before and it still dont show on my pages
|
#8
|
||||
|
||||
![]()
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.)
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|