![]() |
Issue pre-registering variable for header
I have created a product and in that product everything works right. The only issue I am having is pre-registering a variable for my header template.
PHP Code:
I have tried many different plugin hook locations. I have tried the globals, the forumdisplays, I also tried parse_templates, but nothing seems to work, and it seems to just be with pre-registering for header, because I changed it to navbar and it worked, so I am a bit confused. |
Try using hook parse_templates, and make sure you have a "global" declaration for any global variables you use.
|
Quote:
|
Quote:
ETA: also, did you double check to make sure you spelled twbr_bits right in the template? I know these seem obvious, but if you're sure the variable is being set then I don't see any reason it shouldn't work. Anyway, maybe someone else will have an idea. |
Thanks for your help, It seems you were right, I needed to global $foruminfo. I think the problem was that when I dumped it was in the forumdisplay hooks, so I didnt need to global the variable, but when I changed to parse_templates, I needed to.
Again, thank you. |
All times are GMT. The time now is 10:38 PM. |
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:
|