Read beginning from words
Now in order for vBulletin to know about that specific row, you need to add it to the $specialtemplates array. Try parse_templates hook. |
LOL
I'd already added it to $specialtemplates, as stated in my original post :) Thank you very much for your help, the parse_templates hook worked a treat. The problem I have now, is having to manually add 'cachestats' to the special templates array of every single page. Is there a way to maybe add to this array from within global.php or something? Thanks again Simon aah.. answered my own question (wonders will never cease!) I've added : $specialtemplates[] = 'cachestats'; to the top of the global.php file which works. So will play around to find the right hook to put it in. -- additional : It seems that there isn't a hook early enough in global.php I'm really playing around in the dark here, so if anyone knows of a hook which runs early enough, could you please let me know? Cheers Simon |
Hook global_start for $specialtempates[] .=
and parse_templates (and later called specific hooks) for unserialize and other jobs |
LOL
what a muppet.. thanks mate :) correction.. global_start appears to be way too late. There are two that seem to run earlier than this, and neither of those are early enough either. ok.. I've whacked the $specialtemplates[] = ... into global_start.. but the variable is empty when the header template is built. when I had identical set-up, but instead of global_start, I hacked the line into the start of the global.php file it worked fine. |
Sorry, this my tip was for custom stand-alone scripts like this :
PHP Code:
|
ok.
Thanks a lot for your help netwind, it got me working anyway, with only one file edit. If anyone else knows a hook I can use, it would be great. Thanks Simon |
I have another related problem: build html in admincp/ not work,
since style not selected. I need example code which build all special vars for function fetch_template() in default style. |
I must say this is a GREAT article, but I need a little help building the forumcache. If I do as this article says, it just f*cks up my forum and its unable to load correctly :(
|
Quote:
Like build_options(), build_datastore(), build_birthdays(), build_maxloggedin(), perhaps build_forumcache() ? I think this thread only applies to datastore objects you have created yourself. |
I can't find any similar functions that work for the forumcache. Actually build_datastore() works fine saving the data, but I think the input is wrong :(
|
All times are GMT. The time now is 11:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|