The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
most likely a simple question: I want to ad some JS to the <body> tag. which template is that found in?
thanks, Nick |
#2
|
||||
|
||||
![]()
It varies between scripts...
Can you add the code to the headinclude template instead? |
#3
|
||||
|
||||
![]()
yes like SirAdrian mentioned, it varies. Now do you want this JS script to be used throughout the whole site or within some certain pages only?
|
#4
|
|||
|
|||
![]()
the JS is to preload images for roll-overs in the main navbar, so it should be on every single page.
|
#5
|
||||
|
||||
![]()
oh in that case you can just place it in your "headinclude" template as SirAdrian mentioned.
|
#6
|
|||
|
|||
![]()
I've added the javascript to the head_include template.
I also have the table that contains the actuall buttons. It's in a template called: 'main_navbar'. I have a plugin with the code: HTML Code:
eval('$main_navbar = "' . fetch_template('main_navbar') . '";'); Also, I don't know which template to place '$main_navbar' in, so that the bar apears righ undr the header graphics. Thanks for all of your help. ![]() |
#7
|
||||
|
||||
![]() Quote:
Try putting it in global_start ![]() |
#8
|
|||
|
|||
![]()
I've placed the hook in global start, and added '$main_navbar' to the end of the 'mast_head' template. ('$mast_head' is placed at the end of 'headinclude')
The navbar shows up in IE 6- although the rollovers don't work, and it's not inside the border. It doesn't show up at all in FF. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|