![]() |
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. :/ |
That sounds about right, its the hook called just before the header is rendered.
|
All times are GMT. The time now is 04:46 AM. |
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:
|