use it here - user cp -> edit options -- along with the post bit choice, legacy or modern .
not my idea, just how its' done here.
was originally discovered on vB.org - this is how we did/ do it and are using it : sorry no plug in :
Add a new profile field :
remember the field number :
is the id : or from the User profile fields can get it :
you will need only the number itself : ours is 14 .
Admin-CP : User Profile Fields : Add New User Profile Field :
Single-Selection Radio Buttons
Title :
Default Style Width
Description : we use - can have html in it :
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.
Items Per Line :
0
Options : Enter the options that the user can choose from. Separate each option with a new-line (carriage return).
770px
970px
80%
90%
95%
100%
this can be in any order : the fist option is the default setting! 770px here .
if you dont' wish them all, then dont' put them here - the plug in should be edited also, but is not necessary . Set Default : Will set the first non blank option as the default. :
Yes
Display Order :
your choice
Field Required:
No : as it will use what is the first line or the default set in the plug in code or options .
( we also have it enable to show at registration ) Field Editable by User :
Yes
Private Field :
your choice
Field Searchable on Members List :
your choice
Show on Members List :
your choice
Optional Input : Allow user to input their own value for this option :
No
Max length of allowed user input :
n/a
Field Length :
n/a
Regular Expression :You may require the input field to match a regular expression (PCRE).
n/a
Display Page :
your choice ( options other is where we have it )
-------------------------------------------------------------------------
Add a New Plugin :
Admin-CP : Plugins & Products : Add New Plugin :
Product :
vBulletin
Hook Location : This specifies the location within the vBulletin code of the hook that will fire this plugin function.
golbal_start
Title : Enter a title that describes this plugin.
Style width
Execution Order : Use this field to enter the order in which code at the same hook will be executed.
would leave at what its' at unless you know what your doing .
Plugin PHP Code : Use this field to enter the PHP code that you would like to be run. Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.
Plugin is Active : If this plugin is marked as inactive, it will not be called by vBulletin. Use this to temporarily turn plugins on and off.
On
( or can turn it on later, wont' work unless its on )
change the field number
14 here to what yours is for the User profile Field .
change the
100% to the default width you wish .
do not edit any more than this unless you understand or know what you are doing .
the
' must be there, where they are along with everything else ! formatting is very important.
trouble reading or copying the code : thread options - Print may be easier to read/ copy the code.
for our
upDated styles, and those from
April 06 2007 on.
(members area will be finished no later than monday)
in the header find :
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.
change to :
Guests are not allowed to view code. To enable the
viewing of code, please click 'here' to register.
depend on which style you did this on you may wish to change the code block width in the StyleVars.
we use 480 for fixed and 600 for fluid
if you have an older style ask, will need the style name and a link to see it.