![]() |
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
|
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.
|
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:
|
Just a bump for this,really need a reply on this matter or i'm stuck :(
|
I would like to know more about this as well. Thanks :)
|
All times are GMT. The time now is 02:16 PM. |
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:
|