The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi!
I've run into a head-scratcher here. I run a 3.6.5 forum (licence renewal and update imminent) here, and it has two skins - one dark, set to default, and one (mostly broken) test skin. Users cannot select skins, so everyone is using the default. Can I set specific users to use the other "test" skin? In the admin CP, if I find a user and edit their settings, there is a drop down for style, which gives me the options of default, the dark skin, and the broken test skin. However, if I select the test skin, the user still sees the dark one. Logging out, clearing cookies etc doesn't work, the default is the default, despite their profile saying they are using the test skin. I need a handful of members to use the test skin, but not everybody. Have I missed a setting? Do I need to rebuild a database or something to force the change? Or, despite the user-specific setting change via the admin CP, does the disallowing user selection override everything? Is there a way around this? Many thanks! Gef |
#2
|
|||
|
|||
![]()
Make sure in your vbulletin settings under Style & Language Settings you have "Allow Users To Change Styles" set to yes otherwise users will only be able to use the style set as "Default"
|
#3
|
|||
|
|||
![]()
Ah.
That's actually what I want to avoid, as I only want about 6 people to use the test skin, and everyone else to use the default. Is there a way around it? |
#4
|
|||
|
|||
![]()
Unless you make them admins you can't really avoid it.
What I would do it put these users into a new usergroup, allow the "Allow Users To Change Styles" option and in your footer template, wrap the style chooser drop down in a conditional to only let the new usergroup see it. |
#5
|
|||
|
|||
![]()
Sounds great, thanks. Can you give me some more info on what I need to edit in the footer template (and where)? I'm a bit new to this!
|
#6
|
|||
|
|||
![]()
Sure,
Go to: Styles & Templates -> Style Manager -> Your Style -> Edit Templates in your footer template find: Code:
<if condition="$show['quickchooser']"> <td class="tfoot"> <select name="styleid" onchange="switch_id(this, 'style')"> <optgroup label="$vbphrase[quick_style_chooser]"> $quickchooserbits </optgroup> </select> </td> </if> Code:
<if condition="is_member_of($vbulletin->userinfo, x)"> <if condition="$show['quickchooser']"> <td class="tfoot"> <select name="styleid" onchange="switch_id(this, 'style')"> <optgroup label="$vbphrase[quick_style_chooser]"> $quickchooserbits </optgroup> </select> </td> </if> </if> |
#7
|
||||
|
||||
![]()
That won't stop users from using the style - if just hides the chooser.
Check my profile for Restrict Style to Usergroup - that might do what you want. |
#8
|
|||
|
|||
![]()
True, members can use the style if they know the style id (most users won't). You might need to use the same conditional to hide the style switch in the UserCP.
Quote:
|
#9
|
|||
|
|||
![]()
Hiding the chooser will do me - if someone manages to work out the style ID (if they even know there is more than one style), good on them!
However, the conditional does need to be used in the UserCP as well - it's hidden on the main forum with the footer template edit but now appears in the UserCP. I'll see if I can find the template myself this time! Brilliant job though - thanks very much indeed! Very useful! Ah hang on, I'm lost in the UserCP templates. By making the edit suggested by MaestroX, or by using Andreas's Restrict Styles product, the style selector is still viewable in all UserCPs. So...where in the template can I snip it out? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|