The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
global_* not woriking in CMS!
hi,
I'm trying to register variables for header template, but they are not working in CMS pages? navbits hook is working great but my problem is that I want to register them for header not navbar template? because all global hooks are not working in CMS, any idea what hook should i use to do this? thanks |
#2
|
||||
|
||||
If you look up the global_start template in the files, you will see this:
PHP Code:
|
#3
|
||||
|
||||
refactoring stuff huh .. thanks Lynne, you are very helpful person. :up:
|
#4
|
||||
|
||||
ok I got something wrong! the $vbphrase doesn't work in global_bootstrap_init_start, any idea?
|
#5
|
||||
|
||||
You may need to make it global:
PHP Code:
|
#6
|
||||
|
||||
The language is not loaded at that point. What are you trying to do ?
|
#7
|
|||
|
|||
This. You can probably move it to another hook that has the language initialized already.
|
#8
|
||||
|
||||
Lynne, I tried to global it but I thought why I should do so I am already using a global hook! .. anyway it's not work.
Paul, I',m trying to add something like this shown in header in all pages: PHP Code:
Lancerforhire, give me the hook name where I can register variables in header template & work in all vb pages & load language |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|