The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Style Chooser & usergroups?
I would like to make the style chooser option available to certain user groups (some user groups allowed to change the style and the other user groups should only have the "standard" style with no options.
I probably could do this with a conditional in the footer template? How would the conditional have to be coded? THX for any help. This is the code from the footer: Code:
<vb:if condition="$show['quickchooser']"> <select name="styleid" onchange="switch_id(this, 'style')"> <optgroup label="{vb:rawphrase quick_style_chooser}"><option class="hidden"></option></optgroup> <vb:if condition="$quickchooserbits1"> <vb:if condition="$quickchooserbits2"> <optgroup label=" {vb:rawphrase standard_styles}"> </vb:if> {vb:raw quickchooserbits1} <vb:if condition="$quickchooserbits2"> </optgroup> </vb:if> </vb:if> |
#2
|
|||
|
|||
I think you could just change the first line like this:
Code:
<vb:if condition="$show['quickchooser'] AND is_member_of($bbuserinfo, 1, 2, 3)"> where you'd change 1, 2, 3 to the list of group IDs that can see the chooser. If you'd rather list the groups that can't see it, you can change it to Code:
<vb:if condition="$show['quickchooser'] AND !is_member_of($bbuserinfo, 1, 2, 3)"> This doesn't actually stop a user from using a style, it just takes away the control. I believe any user could still put &styleid=X on the url, if they know the styleid. |
#3
|
|||
|
|||
WOW. That was a quick reply. thx so much.
Works perfect this way. It is OK if they would know the style ID and using it. Don't think that many users on our forum will be that smart...lol |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|