The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
So how do you use template hooks?
So there's this hook under the navbar:
$template_hook[navbar_quick_links_menu_pos1] I want to be able to use a plugin to add more to the menu, so I have less template modifications (that way I don't have to keep redoing templates every vBulletin update) How can I manage that? Can I just have a plugin hooked on global_start, and then do $template_hook[navbar_quick_links_menu_pos1] .= "<tr>etc</tr>"; ? |
#2
|
|||
|
|||
Really easy. Just create a plugin that will run when you have what you need in memory but before it is output to the template.
Here is one you can try to see how it works, yea it is spam so delete it when you are done New plugin: Hook Location: member_complete Title: Quarterbore's Spam Plugin PHP Code: PHP Code:
|
#3
|
||||
|
||||
There are two methods. One as shown above, and the other using another template. See this article - Template Hook
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|