![]() |
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? |
PHP Code:
|
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"? |
Quote:
|
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:
|
It doesn't really matter either way.
|
All times are GMT. The time now is 01:50 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:
|