The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Setting up a Plugin/Hook to perform this action?
Hey guys,Need a little help with this one.I just upgraded to vBulletin 3.5,one thing i did after rebuilding all my templates was make a custom template using the same code as the normal header template.I want to be able to use this second template on certain area's of the forums.So i was trying to figure out how i can call the new template.The default header uses $header,i would like the new template to use $downloads_header is this possible?thanks
|
#2
|
|||
|
|||
Yes, this is possible. You can use global_start (I believe this is the correct hook name..) to eval the template. And use cache_templates to cache the template using array merge.
|
#3
|
|||
|
|||
Would you mind posting an example for me?I have never created a hook plugin before so i have no idea where to begin as far as proper code to use.Thanks for your reply and help.
I trued building upon this code that someone posted on another forum. PHP Code:
PHP Code:
|
#4
|
|||
|
|||
Just a bump for this,really need a reply on this matter or i'm stuck
|
#5
|
||||
|
||||
I would like to know more about this as well. Thanks
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|