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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2010, 01:07 AM
lrshelby lrshelby is offline
 
Join Date: Jun 2002
Location: TX
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 100% Forum Width up to Maximum Width

Adjustable Forum Width with Maximum
I know that I can adjust the forum width in the Style Manager where it says "Main Table Width" but I am not sure what to enter to achieve the look described below.

I would like the width to be variable up to 1000 pixels (or maybe up to 1200). However, I do not want it to be fixed at 1000 all of the time because I do not want members to have to scroll the width of the forum when they have a screen resolution less than 1000. I would like the forum to automatically adjust the size (shrink) when resolution is less than 1000, but maintain a maximum of 1000 pixels.

I have had the forum set to 100% so that it can adjust to differnt resolutions but I do not want it to be 100% on monitors that are widescreen and/or have a high resolution exceeding 1000 pixels. I would like the forum to stop expanding at 1000 pixels. Can anyone tell me how I can achieve this setup?

I am running 3.8.4 PL2

I know this requires some sort of code modification and I know some sites that have done this, but I have no idea how to get it done. It seems that with the wide variety of monitors/resolutions these days that this would be a popular setup. Any help would be greatly appreciated.
Reply With Quote
  #2  
Old 12-23-2010, 02:55 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In Style Manger -> Your Style -> All Style Options

Scroll down to the "Body" box

In the "Extra CSS Attributes" field put in:
Code:
margin: 5px auto 10px auto;
padding: 0px;
max-width:1000px;
the 1000px controls the maximum width... the two auto's in the margin: line make sure it's centered.
Reply With Quote
  #3  
Old 12-23-2010, 04:20 PM
lrshelby lrshelby is offline
 
Join Date: Jun 2002
Location: TX
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!!!

This works great!
Reply With Quote
  #4  
Old 01-23-2011, 04:34 AM
frankw frankw is offline
 
Join Date: Jan 2011
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its strange but i dont have a save button on that page were I /you edit the code?
Reply With Quote
  #5  
Old 01-23-2011, 11:47 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by frankw View Post
Its strange but i dont have a save button on that page were I /you edit the code?
vBulletin 4 (which i assume you have) is different. I believe there is a stylevar you need to edit but I'm not 100% sure. Best to ask this question in the VB4 section.
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 08:36 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.04048 seconds
  • Memory Usage 2,200KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)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_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