vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How to modify body tag? (https://vborg.vbsupport.ru/showthread.php?t=199170)

nocturnix 12-18-2008 01:49 PM

How to modify body tag?
 
I know best practice is to add elements to the Body CSS tag provided in the main template editing section. However, I need to add an Onload javascript call for my mouseover code. How can I edit the <BODY> tag for the whole site?

Thanks.

vbplusme 12-18-2008 02:01 PM

The body tag is in the FORUMHOME template, if that helps...

regards,

Lynne 12-18-2008 02:29 PM

You need this for all your pages, or just some? The body tag is in the main templates for most pages. You just need to edit it there (you can do a Search In Templates for "<body")

nocturnix 12-18-2008 02:41 PM

I would need it in all pages. Which templates must i edit then to change all pages?

Lynne 12-18-2008 04:51 PM

Quote:

Originally Posted by nocturnix (Post 1688033)
I would need it in all pages. Which templates must i edit then to change all pages?

You would have to edit the body tag in all of the templates for the pages. Do a Search in Templates for "<body" Alternately, you may be able to use the Replacement Variables to add it in.

manning 12-18-2008 04:56 PM

Style Manager > Main CSS > Additional CSS Definitions

nexialys 12-18-2008 05:25 PM

@manning, the guy is not asking for CSS, please read better.
@vbplusme, please consider learning more of the vBulletin templates before making such false reply.

Lynne's info is right, but also, using an onload in the body tag may corrupt some internal functions inside vBulletin, because of the additions of a lot of ajax and javascripts in the system... you will have to check the pages you really need to insert that onload to, because if you see a $onload in the template, it means vBulletin will add its own script in the <body tag.

nocturnix 12-18-2008 10:12 PM

Quote:

Originally Posted by nexialys (Post 1688127)
@manning, the guy is not asking for CSS, please read better.
@vbplusme, please consider learning more of the vBulletin templates before making such false reply.

Lynne's info is right, but also, using an onload in the body tag may corrupt some internal functions inside vBulletin, because of the additions of a lot of ajax and javascripts in the system... you will have to check the pages you really need to insert that onload to, because if you see a $onload in the template, it means vBulletin will add its own script in the <body tag.

Ok, so maybe I should reconsider using javascript based mouseover code for my menu? I was also wondering if it might have an affect on performance. I think it is checking if the user has the images cached and then does not send them, but im not 100% sure as I didnt write the code and am not a developer myself.

nexialys 12-18-2008 11:20 PM

you can have other .js menu hovering effects that are not using body onload... check for integrated effects like jQuery or Mootools...


All times are GMT. The time now is 08:19 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
  • Page Generation 0.01565 seconds
  • Memory Usage 1,723KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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