vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   which template holds the <body> tag? (https://vborg.vbsupport.ru/showthread.php?t=118080)

lightnb 06-09-2006 01:39 AM

which template holds the <body> tag?
 
most likely a simple question: I want to ad some JS to the <body> tag. which template is that found in?

thanks,

Nick

Adrian Schneider 06-09-2006 01:47 AM

It varies between scripts...

Can you add the code to the headinclude template instead?

Sean S 06-09-2006 03:28 AM

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?

lightnb 06-09-2006 03:37 AM

the JS is to preload images for roll-overs in the main navbar, so it should be on every single page.

Sean S 06-09-2006 07:00 AM

oh in that case you can just place it in your "headinclude" template as SirAdrian mentioned.

lightnb 06-10-2006 01:36 AM

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') . '";');
But I'm not sure where to hook it to make the template display corectly.

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. :)

Gio~Logist 06-10-2006 01:48 AM

Quote:

Originally Posted by lightnb
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') . '";');
But I'm not sure where to hook it to make the template display corectly.

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. :)


Try putting it in global_start ;)

lightnb 06-10-2006 04:04 PM

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.


All times are GMT. The time now is 01:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01119 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete