Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-18-2008, 01:49 PM
nocturnix nocturnix is offline
 
Join Date: Jul 2002
Location: USofA
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 12-18-2008, 02:01 PM
vbplusme vbplusme is offline
 
Join Date: Sep 2008
Location: CyberSpace
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

regards,
Reply With Quote
  #3  
Old 12-18-2008, 02:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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")
Reply With Quote
  #4  
Old 12-18-2008, 02:41 PM
nocturnix nocturnix is offline
 
Join Date: Jul 2002
Location: USofA
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would need it in all pages. Which templates must i edit then to change all pages?
Reply With Quote
  #5  
Old 12-18-2008, 04:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nocturnix View Post
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.
Reply With Quote
  #6  
Old 12-18-2008, 04:56 PM
manning manning is offline
 
Join Date: Apr 2007
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Style Manager > Main CSS > Additional CSS Definitions
Reply With Quote
  #7  
Old 12-18-2008, 05:25 PM
nexialys
Guest
 
Posts: n/a
Default

@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.
Reply With Quote
  #8  
Old 12-18-2008, 10:12 PM
nocturnix nocturnix is offline
 
Join Date: Jul 2002
Location: USofA
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys View Post
@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.
Reply With Quote
  #9  
Old 12-18-2008, 11:20 PM
nexialys
Guest
 
Posts: n/a
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04629 seconds
  • Memory Usage 2,234KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (7)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete