The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Adding Javascript with a product,
Hey, I'm making a pretty extensible mod for vb, and need to put some JS in the headerinclude template. It needs to be pulled from a database for each page too.
I know its probably well documented somewhere but I just can't search for it as the terms are pretty common. I'm guessing its a hook of some sort? |
#2
|
||||
|
||||
PHP Code:
|
#3
|
|||
|
|||
No joy.
Put the following code at the "style_fetch" hook and nothing was included in the header. PHP Code:
Also, could you elaborate on "something similiar"? |
#4
|
||||
|
||||
Meaning check the hook location - as you found out, I was wrong. Use global_setup_complete.
|
#5
|
|||
|
|||
ok thanks for the quick response + help
Another method I cam across used in an existing plugin was a hook at 'global_start' using the code: PHP Code:
|
#6
|
||||
|
||||
It doesn't really matter either way.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|