Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 01-21-2010, 08:30 AM
amjadz4's Avatar
amjadz4 amjadz4 is offline
 
Join Date: Aug 2007
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gnomie View Post
Hi I'm new here and new to VB I like the new version 4 !

Installed

Was trying to find that. However it has given another problem.

The text in each thread now aligns left and not 100% width of the text container.

Which style would i edit to get that 100% width in the text box?

If anyone could point me in the right direction that would be grand!
Can you post a screenshot?
Reply With Quote
  #13  
Old 01-21-2010, 08:36 AM
Gnomie Gnomie is offline
 
Join Date: Jan 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sure no problem. as you can see, the title isnt subject to the same issue. its like the main body text has been placed in a fixed width or less than 100% table.

so many style vars to search, its driving me nuts!

dont suppose anyone has any kind of cheat sheet with screen shots etc indicating the different style vars locations? i might have to make one
Attached Images
File Type: jpg forum1.jpg (78.5 KB, 0 views)
Reply With Quote
  #14  
Old 01-21-2010, 08:49 AM
amjadz4's Avatar
amjadz4 amjadz4 is offline
 
Join Date: Aug 2007
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well you can see which style it is by adding this line to your config.php

PHP Code:
$config['Misc']['debug'] = true
right after the opening <?php line

and then view the source code of that page in your browser. you should see the template tags.
Reply With Quote
  #15  
Old 01-21-2010, 08:53 AM
Gnomie Gnomie is offline
 
Join Date: Jan 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks ill give that a whirl

edit to add: its not this fix causing the issue above, i reset to stock style vars and templating and itt still happens. I have some work to do
Reply With Quote
  #16  
Old 01-21-2010, 09:03 AM
kokotitokoko kokotitokoko is offline
 
Join Date: Sep 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed
Reply With Quote
  #17  
Old 01-21-2010, 12:32 PM
Gnomie Gnomie is offline
 
Join Date: Jan 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now installed and fully functional. my error was a 4.01 bug listed here:

http://www.vbulletin.com/forum/showt...post-body-area

thanks for your input amjadz4
Reply With Quote
  #18  
Old 01-21-2010, 12:38 PM
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gnomie View Post
sure no problem. as you can see, the title isnt subject to the same issue. its like the main body text has been placed in a fixed width or less than 100% table.

so many style vars to search, its driving me nuts!

dont suppose anyone has any kind of cheat sheet with screen shots etc indicating the different style vars locations? i might have to make one
http://www.vbulletin.com/forum/entry...F-Documents%29
Reply With Quote
  #19  
Old 01-21-2010, 03:20 PM
Gnomie Gnomie is offline
 
Join Date: Jan 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mandingo View Post
thanks for that, VERY useful

ill find my way around vb org soon
Reply With Quote
  #20  
Old 02-18-2010, 06:10 AM
rikmac rikmac is offline
 
Join Date: Oct 2008
Location: Italy
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. installed. :up:
Reply With Quote
  #21  
Old 02-22-2010, 11:58 PM
fortuneinternet fortuneinternet is offline
 
Join Date: Feb 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, thanks alut!!!
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 03:35 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.02551 seconds
  • Memory Usage 2,325KB
  • Queries Executed 28 (?)
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)bbcode_php
  • (3)bbcode_quote
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete