The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
CMS Fixed Left and Right Columns GRID
After finding very little information to help CMS novices like me to get fixed width left and right columns, and having to work it out for myself, I thought I'd share with those who are still struggling with the default vB 4.0.6 grid layouts being insufficient for your needs.
The key is to download the default grids.xml to see how they're made: Grid Manager > Download/Upload Grids. I needed both the right and left columns to be of fixed widths (180px & 240px) and with a fluid middle column (100%). See the code below to see how easy it is to accomplish yourself: PHP Code:
I've attached the above grid as an .xml document for your convenience. |
#2
|
|||
|
|||
Do you have time to explain it to me. I don't see where the width parameters are. I am not good with HTML or PHP, I just muddle through it. I'd like to take yours and make a 200-fluid-250 grid.
|
#3
|
||||
|
||||
Quote:
To change my grid to what you require just change the numbers within the brackets. from: (180px, 100%, 240px) to: (200px, 100%, 250px) It really is that simple . The only other edit that needs to be made would be if any of the three columns were being changed from a fixed to fluid or fluid to fixed width. It's not in your case so you don't have to be concerned about it. Fixed width columns need to use: <div class="yui-u first yui-sidebar"> Whereas fluid width columns need to use: <div class="yui-u yui-panel"> Try this. I've only changed the size values within the brackets. PHP Code:
|
#4
|
|||
|
|||
I copied this and it just gives me everything in one big column. I need a 20%, 60%, 20%, so I changed the sidebar to panel, took out the first, but the last one has a b instead of a u. Any ideas?
Chris |
#5
|
||||
|
||||
Quote:
I've attached (removed-didn't work) this new grid for you to try. Hopefully it works . NOTE: I'm unsure whether the name displayed for each grid is derived from the code or the .xml document name and so I've played it safe with the naming of this new .xml document. Before you upload this new grid, download your default grid.xml ... just in case things don't work. |
#6
|
|||
|
|||
Didn't work again...the names of the div class is wrong
|
#7
|
||||
|
||||
Try changing those three div classes to <div class="yui-u yui-panel"> except the first one which you can try with <div class="yui-u first yui-panel"> to see if that works.
IE: PHP Code:
|
#8
|
|||
|
|||
No, unfortunately. Here's what it looks like now. There's one column on the left and the other two or sort of stacked on top of each other.
|
#9
|
||||
|
||||
Hmmmm .... I'll enable my CMS and do some experimenting to see if I can come up with something that definitely does what you want.
|
#10
|
|||
|
|||
I've discovered it's all in the vbcms.css file
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|