![]() |
Why can't I preregister a template variable in a function?
I got started on a project to make the What's Going On box available on pages other than the home page. The way I wanted to do it is shown schematically below:
Code:
Code:
|
I tested it out and for me it seems to work either way.
|
What hook location were you using?
|
Well, forumhome_start, because I originally got confused between forumdisplay and forumhome and couldn't get it to work either way. Then when I figured that out I just decided to change everything to FORUMHOME. So I suppose I could try with FORUMDISPLAY in case that makes a difference.
Edit: no, it still works both ways, using FORUMDISPLAY and hook forumdisplay_start. |
If it's a Works-for-Peter-but-not-for-Paul situation I guess I better use what I have. I'm just tossing this product out for whoever wants to play with it and I don't want to have to help people write special code to get it going.
Thanks for testing it. |
All times are GMT. The time now is 02:28 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:
|