XF 2.2 Beta test styles

AndrewSimm

Well-known member
I am working on a major change to styling on my site and would like to be able to select users for testing. I currently have the style switched off and I am able to test as admin. What is the best way to allow some regular users to test the style without exposing to all users?
 
Solution
Add-on for that: https://xenforo.com/community/resources/tl-style-permissions.6229/

Or you could always edit your main style, remove the style chooser from both the following templates:

PAGE_CONTAINER
account_preferences

You're looking for the following line:

Code:
<xf:if is="$xf.visitor.canChangeStyle()">

Remove the entire code for the style switcher link. You could also wrap this in a conditional to target a specific usergroup https://xenforo.com/community/resources/conditional-statements-for-xenforo-2.5795/ point 13a

From there you could just edit their accounts to force the new style.
I am working on a major change to styling on my site and would like to be able to select users for testing. I currently have the style switched off and I am able to test as admin. What is the best way to allow some regular users to test the style without exposing to all users?
I think this will require an addon.

Alternatively, you can always set up a private test forum and give the select individuals access to it.
 
I think this will require an addon.

Alternatively, you can always set up a private test forum and give the select individuals access to it.
Which, really, is the best way to do a test like this. I have a dev site and give my moderators and selected other users access to check out changes I make in it before I implement in live.
 
I run a test site on my local machine. Creating a test site online and asking users to browse creates extra work for the testers. I much rather allow some users to select the new style and browse as they normally would.
 
Add-on for that: https://xenforo.com/community/resources/tl-style-permissions.6229/

Or you could always edit your main style, remove the style chooser from both the following templates:

PAGE_CONTAINER
account_preferences

You're looking for the following line:

Code:
<xf:if is="$xf.visitor.canChangeStyle()">

Remove the entire code for the style switcher link. You could also wrap this in a conditional to target a specific usergroup https://xenforo.com/community/resources/conditional-statements-for-xenforo-2.5795/ point 13a

From there you could just edit their accounts to force the new style.
 
Solution
Add-on for that: https://xenforo.com/community/resources/tl-style-permissions.6229/

Or you could always edit your main style, remove the style chooser from both the following templates:

PAGE_CONTAINER
account_preferences

You're looking for the following line:

Code:
<xf:if is="$xf.visitor.canChangeStyle()">

Remove the entire code for the style switcher link. You could also wrap this in a conditional to target a specific usergroup https://xenforo.com/community/resources/conditional-statements-for-xenforo-2.5795/ point 13a

From there you could just edit their accounts to force the new style.
Perfect, thank you!
 
Top Bottom