The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
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. |
#5
|
|||
|
|||
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. |
Благодарность от: | ||
CAG CheechDogg |
#6
|
||||
|
||||
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.
|
#7
|
||||
|
||||
Good stuff here you guys, I use both ways actually for different things ...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|