The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
|||
|
|||
Try using hook parse_templates, and make sure you have a "global" declaration for any global variables you use.
|
#3
|
||||
|
||||
As I said before, I tried parse_templates. As for globals, what globals are you talking about? The only thing in that code that doesnt work is the preRegister to the header.
|
#4
|
|||
|
|||
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. |
#5
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|