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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2013, 02:37 PM
clayt101's Avatar
clayt101 clayt101 is offline
 
Join Date: Jul 2012
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Layout Option: Wide and Fixed

Probably a stupid question, but how do I get the option of wide vs. fixed layouts on my forum like this site has (lower left corner)?
Thanks
Reply With Quote
  #2  
Old 09-26-2013, 03:09 PM
JohnD5000 JohnD5000 is offline
 
Join Date: Aug 2012
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have same problem, and it is not a stupid question.
Reply With Quote
Благодарность от:
clayt101
  #3  
Old 09-27-2013, 05:04 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No stupid questions here, in the IT world we learn continuously.

This is not a difficult thing to do, but unfortunately it does have to be tailored to a persons unique style.

Give a link to your boards so I can see your style and CSS and I will see what I can do to help you out.
Reply With Quote
  #4  
Old 09-27-2013, 09:16 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To make a fixed version of your style, hat you could do is this. ACP --> Style & Templates --> Style Manager --> Download / Upload Styles

In that screen, in the Download Block, choose your style, it the field, Title, add the word, Fixed to the end. For the select option, Options, chose, Get customizations made in this style and all parent styles. Then click on Download.

While still on that screen, in the block Import Style XML File, click on Browse, find your style you just downloaded, In the field, Parent Style, choose the style name you just downloaded / copied from, then click on Import.

Now you will have a new style on your site called XXXX Fixed. So go to the, ACP --> Style & Templates --> Style Manager --> Find the style you just imported, and select Style Variable Editor.

In that screen scroll down till you see the group called, Global. In that group, find the stylevar, doc_margin, and set the Use the 'top' value for all sides to No, and the Left & Right fields to auto, then click on Save. In that same group, edit the stylevar, doc_maxWidth, and change Units to px and change Size to 980, then click on Save. Yo can always change the 980 later to a different size it you don't like the fit.

So now you have a copy of your style that is selectable by your members, in the style chooser dropdown, and is a copy of your fluid style, and best of all, the way I showed you to do it is that any template changes you make in the style you copied from, will automatically show in this style.
Reply With Quote
  #5  
Old 09-27-2013, 11:53 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting @Ozzy42, I had a entirely different approach prepared. Unfortunately, I tend to go around the stylevar system -- I am sure this is due to the lack of "Mods" I have written for the vbulletin.org public.

For the record I find the stylevar system fairly efficient and I like the fact that you educate them to this approach. My design team decided to use LESS and override the stylevar system due to the very early days of vbulletin 4: So most of my advice / patches tends to be in CSS and Javascript.
Reply With Quote
Благодарность от:
CAG CheechDogg
  #6  
Old 09-27-2013, 07:35 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah back in the vB3 days going the css was was the easiest, but with vb4, the stylevar system is so advanced, it actually helps.
Reply With Quote
  #7  
Old 09-28-2013, 01:34 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good stuff here you guys, I use both ways actually for different things ...
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 09:58 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.04123 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (2)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete