The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
need help with custom variable in header template
yes i've looked at the register variables article. still couldn't figure it out.
ive tried a few things and cannot get it to render hook location: process_templates_complete PHP Code:
PHP Code:
Not sure what I am doing wrong. |
#2
|
|||
|
|||
Use hook parse_templates - process_templates_complete is too late because the header template has already been rendered.
Try this code: Code:
$menuUrl = $vbulletin->options['bburl'] . "/menu/index.html"; $menuContent = file_get_contents($menuUrl); vB_Template::preRegister('header', array('menuContent' => $menuContent)); |
#3
|
||||
|
||||
yay that worked thanks!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|