dartho
06-21-2008, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=182692) my mobile style (https://vborg.vbsupport.ru/showthread.php?t=174375), you will not need to do this as it is (soon will be) an option as of version 0.0.3.
See this post (https://vborg.vbsupport.ru/showpost.php?p=1684074&postcount=14) 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 ****
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:
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
and change it to the following:
<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:
<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.
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 (https://vborg.vbsupport.ru/showthread.php?t=182692) my mobile style (https://vborg.vbsupport.ru/showthread.php?t=174375), you will not need to do this as it is (soon will be) an option as of version 0.0.3.
See this post (https://vborg.vbsupport.ru/showpost.php?p=1684074&postcount=14) 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 ****
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:
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
and change it to the following:
<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:
<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.