The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
How to add to the header template?
M'kay, I need to register a variable with the 'header' template, but I'm not quite sure just where to do it. Could someone gimme a heads up?
I just need to know whereabouts I'd be putting $theTemplateObj->register('myvar', $myvar); for the header template. Doing searches for it kind of lead me to a bunch of unrelated stuff. :< --------------- Added [DATE]1264423069[/DATE] at [TIME]1264423069[/TIME] --------------- Update: A little more searching tells me that I am supposed to "preRegister" variables for existing/stock templates. That's good, I'm getting somewhere, heh. So, here's what I have: PHP Code:
--------------- Added [DATE]1264429257[/DATE] at [TIME]1264429257[/TIME] --------------- Apparently, the answer seems to be to put such things on the parse_templates hook. Maybe that's only with the header template, but that's the only way I could get it to work. :/ |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|