Back to vBulletin 3.7 Template Modifications

Hide a style from style chooser
Mod Version: 1.0.1, by dartho

This modification is in the archives.
vB Version: 3.7.1 Rating: (3 votes - 4.67 average) Installs: 50
Released: 22 Jun 2008 Last Update: 24 Jun 2008 Downloads: 313
Not Supported Uses Plugins  

A simple plugin which will allow you to hide a specified user selectable style from the Quick Style Chooser which appears at the bottom of every page in vBulletin whilst still allowing the style to be used.

Instructions:
0. If you made modifications to your 'options' template as per previous instructions, you will need to revert the template
1. Import attached plugin via "Products and Plugins"," Download/Upload Plugin"
2. Go into the plugin manager and edit the "Hide Style From Style Chooser" plugin
3. Change the 'x' in '$mo37_hidden_styleid = x' to be the StyleID of the style you wish to hide
4. Set the plugin status to be active
5. Save
The style is now hidden, but still usable by you users.

To disable/uninstall, set the plugin status to not be active or delete the plugin.

If you use the add-on that extends my mobile style, you will not need to do this as it is (soon will be) an option as of version 0.0.3.

See this post

Spoiler (click to open)


Quote by sung
Is there anyway so that the style is also hidden from the Forum Skin drop down list in the User CP and not just the Quick Style Chooser?
Made a plugin that does just this. It uses the same variable ($mo37_hidden_styleid) to hide the style, and is inactive by default.

So assuming you're already using dartho's plugin and it is working just upload this one and set it active and the same style will be hidden in the User CP as well.
Attached Files
File Type: xml vbulletin-plugin-hidestyle-usercp.xml (519 Bytes, 41 views)

Close
for a plugin which hides the chooser in usercp options.

All posts in this thread up to post #9 were in reference to the original way I thought of doing this. I have kept the original contents of this template modification below for reference

**** FOLLOWING INFORMATION KEPT FOR REFERENCE ONLY ****
Quote by dartho
If you have multiple styles installed but wish to 'hide' some from users while still be able to use them you can use this template modification to hide particular styles form the quick chooser:

Edit your 'options' template - the original should look like this:
Code:
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
and change it to the following:
Code:
<if condition="($optionvalue!=x) && ($optiontitle!='yyyyyy')">
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
</if>
where x is the styleid of your mobile style and yyyyyy is the name of your mobile style. The name is case sensative!

This should stop it being added to the drop down list.

If you wish to hide multiple styles , you could extend the conditional as follows:

Code:
<if condition="(($optionvalue!=x1) && ($optiontitle!='yyyyyy1')) || (($optionvalue!=x2) && ($optiontitle!='yyyyyy2'))">
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
</if>
where x2 is the 2nd styleid and yyyyyy2 is the 2nd style name.

Download

This modification is archived, downloads are still allowed.

File Type: %1$s vbulletin-plugin-hidestyle.xml (569 Bytes, 303 downloads)

Similar Mods

Nonselectable style on Quick Style Chooser for admin vBulletin 3.0 Full Releases
Create Style Groups for Style Chooser vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024