The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to add a plugin for use on the forumhome page??
I created a template that includes a banner rotator script which I incorporate in my vBulletin ad templates via plugin. I obtained the plugin code here: |
#2
|
|||
|
|||
Try making a plugin using hook location forumbit_display. You may not have to duplicate all the code, you might just be able to declare your variables as global in the new plugin. (Since the forumhome templates are eval'd in a function, they won't be able to access variables from elsewhere unless there's a global statement).
|
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
I can't tell you exactly since it depends on what your plugin does and what your template changes are. But I think whatever variables you are trying to put in the template should be declared as global. For instance if you're trying to display an ad by putting $ad in the template somewhere, then you'd put
Code:
global $ad; ETA: if you haven't created a plugin before: Go to "Plugins and Products" in the admin comtrol panel, choose "Add New Plugin". Choose the hook location and make up a title (so you'll remember what it is later). Put the code in the big text area, select "Yes" to make it active, and save. |
#5
|
|||
|
|||
Here is what I have.
I have banner code in a custom template I want that template to be incorporated in this template (via a plugin): forumhome_forumbit_level2_post I am trying to figure out how that plugin needs to be written in this thread. --------------- Added [DATE]1294702744[/DATE] at [TIME]1294702744[/TIME] --------------- Thank you very much. I added the ';' that you added and everything works now! Thank you!!! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|