PDA

View Full Version : Getting variable output to display in header


Alex@Mk3OC
01-20-2010, 07:59 PM
Hi

I've got a {vb:raw xxxxx} variable which will display fine on the FORUMHOME and SHOWTHREAD templates but I can't get it to display in the header template. Can someone help?

Thanks

ForumsMods
01-20-2010, 08:01 PM
You must preregister this to be able to use in header and footer.

Alex@Mk3OC
01-20-2010, 08:12 PM
I've tried that, but it doesn't seem to want to work

This is what I've tried:

vB_Template::preRegister('header', array('xxxxx' => $xxxxxxx));

This works for the FORUMHOME and SHOWTHREAD templates though

ForumsMods
01-20-2010, 08:25 PM
Please, post full code and in which hook are you using it.