The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Caching phrasegroups
Is this not possible? Ive been working all night on this, yet I cant for the life of me find out how to do this!
one would assume that since global is merging phrasegroups: $phrasegroups = array_merge($phrasegroups, $actionphrases["$_templatedo"]); You would still have time to add to them, but its not working. The above line is between the fetch_style and cache_template hooks with no function calls between but it doesnt make a difference which one you use - it wont fetch the phrasegroups you are after. :P Help me Calgon. Take me away. |
#2
|
|||
|
|||
I guess you already debuged the value of $phrasegroups after the merge?
|
#3
|
||||
|
||||
er. Thanks Marco. It was one of those situations where you rip the house apart to find your freaking keys only to discover that they are in your pocket :P
Please delete this thread before people discover Im a n00b coding on a comadore64 with FrontPage. Actually, maybe im not a n00b. I was getting a false positive because I merged the phrasegroup array with the fetch_user_info hook as a test. Only problem is that at that stage, I cant consistantly tell which forum im in, so it doesnt really work for me |
#4
|
|||
|
|||
Hmm strange, added the following to Fetch_style:
PHP Code:
Must look more into this tomorrow if i have time, probably something i already solved and forget again once. |
#5
|
|||
|
|||
Lol then i better also delete my reply.
Probably too late to think clear. Nahh will leave it here for some to have a laugh. |
#6
|
||||
|
||||
style_fetch is too late => init_startup
|
#7
|
||||
|
||||
Thanks Andreas - but isnt that too early for $forumid?
|
#8
|
||||
|
||||
Yup. That's the reason why I did not port my "Langage by Forum" Hack, as it requires restructuring global.php
If you look at global.php, you can see that the language is initialized before forumids are available. |
#9
|
||||
|
||||
I know its not totally a bug per say, but clearly there are more phrasegroups added between the style_fetch hook and cace_templates hook however adding those phrasegroups cant really do anything.
Seeing as 'you de man' now, do you think you can petition the hook gods to give us one thats in a slightly better position |
#10
|
||||
|
||||
Hooks won't help in this case, even if every line of global.php had a Hook
Take a look at how the code is sructured - as said above, the forumid is not available before the language is initialized. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|