Log in

View Full Version : Mini Mods - hide a style from style chooser


hazem_aliraqi
06-09-2015, 09:00 PM
hello


this plugin is hide one of your style




this plugin Hide a style from style chooser (https://vborg.vbsupport.ru/showthread.php?t=183185) is for vb3


i just edit it to work with vb4




install the plugin



1- Go your admin cp >> plugin and product >> add new plugin




Product: vBulletin

Hook Location : parse_templates

Title : hide a style from style chooser

Execution order: leave default value



Plugin PHP Code :


$mo37_hidden_styleid = x;
$mo37start = strpos($quickchooserbits1, '<option value="'.$mo37_hidden_styleid.'"');
if ($mo37start !== FALSE) {
$quickchooserbits1 = substr($quickchooserbits1, 0, $mo37start).substr($quickchooserbits1, strpos($quickchooserbits1, '</option>', $mo37start) + strlen('</option>'));
}




- Change the 'x' in '$mo37_hidden_styleid = x' to be the StyleID of the style you wish to hide
- Set the plugin status to be active
- Save
The style is now hidden, but still usable by you users.