Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
vB 4 Details »»
vB 4
Version: 1.00, by amjadz4 amjadz4 is offline
Developer Last Online: Feb 2015 Show Printable Version Email this Page

Category: End-User Options - Version: 4.0.2 Rating:
Released: 12-29-2009 Last Update: Never Installs: 144
Auto-Templates
Re-useable Code Translations  
No support by the author.

Okay so some (most - so far) of the vb 4 themes come only with one width i.e 100% which fills up the screen. Like me, many want to match their website and want the width of the main table to be fixed. So how can we adjust the width of the CMS, Blog and Forum all together?

vBulletin 3 had an easy way to do it, under Main CSS of the template. But in vB 4 its a bit different. Follow these steps to adjust the width of your vbulletin.

1. Log into AdminCP
2. Navigate to Styles & Templates > Your style > StyleVars
3. In the search field type in doc_width (under Common).
4. Now set the Units and Size as per your requirement, and Save. (default: auto)

That's it!

Now if at all for some reason your theme is not center aligned after adjusting the width do this:
  • Type doc_margin in the search field.
  • Set Left & Right to auto
Now you have your CMS, Blog and Forum center aligned to the width of your choice!

If you did this to your forum, please click MARK AS INSTALLED.

Thank you!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 09-12-2011, 11:23 PM
chrayres chrayres is offline
 
Join Date: Sep 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much! installed!
Reply With Quote
  #33  
Old 09-14-2011, 08:04 AM
hivitro hivitro is offline
 
Join Date: Jun 2011
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Modify the settings many times and never pay attention. worked perfectly!
Reply With Quote
  #34  
Old 07-09-2012, 02:44 PM
vBDesignerz vBDesignerz is offline
 
Join Date: Jan 2006
Location: Canada, Ottawa
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks how do you centre it after you fix the width up though??

edit: nvm saw the rest of your post, good details! installed
Reply With Quote
  #35  
Old 11-21-2013, 02:19 PM
rosikquit rosikquit is offline
 
Join Date: Nov 2013
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very useful! Thanks
Reply With Quote
Reply

Thread Tools

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 12:22 AM.


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.04251 seconds
  • Memory Usage 2,247KB
  • Queries Executed 20 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete