The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Yep, just change the variable like you've got it there.
Using this plugin at hook location global_start enables the $random_banner variable to be used anywhere on the forum. |
#12
|
||||
|
||||
acidburn - thanks for the tip about using global_start as the hook location. When I followed the instructions from the .com post, the hook location that was automatically selected was ajax_start ... probably because that is the first of the hooks in the drop down menu.
global_start clearly works well for this MOD, but what other hook locations would also be appropriate to select? Thanks again, twobob |
#13
|
||||
|
||||
It all depends on what template you're trying to add the variable to.
For example, if you wanted to place the ads on your Forumhome (Index), you'd place the variable in the forumhome template and set the hook location to forumhome_start. But like I said, using global_start let's you use it anywhere. |
#14
|
|||
|
|||
Hey acidburn, pray tell, how can I do this:
$random_banner[1] = '<a href="http://www.link1.com/"><img src="path/to/banner1.gif" alt="" border="0" /></a>'; and have different images appear for random_banner[1]? For instance, I want to rotate /images/banners/banner[1-20].jpg but use the same link each time. Do I have to place them all in different $random_banner lines or is there a shortcut? |
#15
|
||||
|
||||
In your case, it's simpler just to set them all on seperate lines.
|
#16
|
|||
|
|||
Hi guys,
One Question is How do i get it to display on the VB CMPS? you might wanna check this page out for future reference: Rotating Banners in NavBar https://vborg.vbsupport.ru/showthread.php?t=120707 |
#17
|
|||
|
|||
What would the Plugin Hook Location for the footer be?
|
#18
|
||||
|
||||
Just use global_start.
|
#19
|
|||
|
|||
Does this work for the new vb 3.6?
|
#20
|
||||
|
||||
It will work on any version of vBulletin that supports the Plugin System. At the moment, anything 3.5.x and up.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|