Log in

View Full Version : How does vB.org allow for user selectable board width?


Quillz
07-31-2008, 02:03 AM
In the Options area of the User CP, the user can choose if they want a fixed or fluid style, and even if they would prefer 80%, 90%, etc. How is this being done? Is there an add-on that will do this? I'm using vB 3.7.

Digital Jedi
07-31-2008, 02:13 AM
My guess is they're using the Custom Profile Field ID number as a variable in the main table width. Something like:

width="<if condition="$userinfo['fieldXX]">$userinfo['fieldXX]<else />800px</if>"

Where XX is the field's ID number.

Opserty
07-31-2008, 08:54 AM
Few errors in above code and using $bbuserinfo not $userinfo. ;)

width="<if condition="$bbuserinfo['fieldXX']">$bbuserinfo[fieldXX]<else />800px</if>"


(That will probably be in the header template or spacer_open. Note: you will probably need to change the "Outer table width" StyleVar to a 'fluid' width such as 100%, in case it crops up somewhere).

Digital Jedi
07-31-2008, 07:46 PM
As a matter of course, I always forget the bb part. At least I'm consistent. :D :(