![]() |
User Selectable Forum Width Display
I don't know about you but I hate having to install two styles one for a Fixed Display and one for a Fluid. Anyways this hack gets around that by making the choice of Fixed or Fluid a user choice.
Now I must state that this mod may not work with some styles that are specifically designed to be a fixed width.. it really does depend on the way they've been coded.. If you do have problems with a style and this hack post here and we'll add a list to the first post. New Profile Field In your Admin CP Find the User Profile Fields Menu.. Open it.. Select "Add New User Profile Field" Now you need to add a new Profile Field with the following details. Title: Forum Width Display Description: Do you want the forum display to be Fixed or Fluid? Options: Fixed Fluid Set Default: Yes Field Required: Yes Field Editable by User: Yes Private Field: Yes Field Searchable on Members List: No Show on Members List: No Allow user to input their own value for this option: No (Everything else can be left as default) You now need to select your Display Page, I placed mine on Options: Other Save your new Profile field and now take note of it's field name. (mine was field5) New Plugin Next your need to find the Plugin System Menu.. Open it.. Select "Add New Plugin" Now you need to add a new Plugin with the following details. Product: vBulletin Hook Location: global_start Title: Forum Width Display Plugin PHP Code: Code:
if ($vbulletin->userinfo['field5'] == 'Fixed') first part.. You can also edit the widths to your liking. and that's it.. Users can now select whichever they like and you just need to install one version of a style now. |
first post :)
clicks install can you add screenshots? |
will check it out Thanks :)
|
Screenshots added, not sure if they show what you were looking for.. let me know.
|
can you add the ability to choose or specify the width %age?
|
Should work with my lapsus7 skin...
-b6 |
Quote:
Code:
if ($vbulletin->userinfo['field5'] != '') or you can force then to either using: Code:
if ($vbulletin->userinfo['field5'] != '') Code:
if ($vbulletin->userinfo['field5'] != '') |
Would you please attach the plug-in and a text file for the instructions?
|
Quote:
|
helo..seems interesting..
we ars using a ffixed skin..it will work on it? |
All times are GMT. The time now is 06:55 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|