View Full Version : disable theme for guest
LuisManson
06-17-2010, 09:30 PM
is there any option to disable the skin selector for guest??
im not able to find any setting!
Reeve of shinra
06-17-2010, 09:33 PM
You can edit the style and wrap an if conditional around it. There's an article on conditionals around here somewhere that you can reference
LuisManson
06-17-2010, 09:41 PM
thanks, that the only way i figured out....
im interested on that post i will try to fnd it
Reeve of shinra
06-17-2010, 10:01 PM
https://vborg.vbsupport.ru/showthread.php?t=231525
and maybe this could help you
Hide Style in Style Chooser (3.7) (https://vborg.vbsupport.ru/showthread.php?t=183185)
ChopSuey
06-18-2010, 09:46 AM
and maybe this could help you
Hide Style in Style Chooser (3.7) (https://vborg.vbsupport.ru/showthread.php?t=183185)
This is vB4 General Discussions ;) That mod won't work.
Reeve of shinra
06-18-2010, 03:59 PM
This is vB4 General Discussions ;) That mod won't work.
Actually, the mod does work but you have to copy the contents into a new plugin.
Create a new plugin:
Hook Location: Parse Templates
Update x with the style id you want to hide and copy the contents into the box. Hit save and your good to go.
$mo37_hidden_styleid = x;
$mo37start = strpos($quickchooserbits, '<option value="'.$mo37_hidden_styleid.'"');
if ($mo37start !== FALSE) {
$quickchooserbits = substr($quickchooserbits , 0, $mo37start).substr($quickchooserbits , strpos($quickchooserbits, '</option>', $mo37start) + strlen('</option>'));
}
LuisManson
06-18-2010, 04:07 PM
really great mod, i already fixed this with "if its not guest" -> show themes dropdown in the footer template, i just had to add less than a line of code
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.