How to disallow users to swtich styles?

F

Floris

Guest
Set 1 as default
set it as visible

and set the rest to not visible
then you as admin can still switch - but users can't.
 

Jake Bunce

XenForo moderator
Staff member
You can disable styles for user selection:

Admin CP -> Appearance -> Styles -> [click a style] -> Allow user selection

But I don't think there is an option to disable the ability of users to select from those styles which are user selectable.
 
Reactions: D37

D37

Active member
You can disable styles for user selection:

Admin CP -> Appearance -> Styles -> [click a style] -> Allow user selection

But I don't think there is an option to disable the ability of users to select from those styles which are user selectable.
Ok thanks. But the box at the bottom left is still here and is clickable. I know in Beta 1 I could completely make that box dissapear.
 

Jake Bunce

XenForo moderator
Staff member
The chooser is still there but only one style is available.

You can remove the chooser from the templates if you want:

Admin CP -> Appearance -> Templates -> footer

Remove this code:

Code:
            <xen:if is="{$canChangeStyle} OR {$canChangeLanguage}">
            <dl class="choosers">
                <xen:if is="{$canChangeStyle}">
                    <dt>{xen:phrase style}</dt>
                    <dd><a href="{xen:link 'misc/style', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase style_chooser}" data-offsetY="-11">{$visitorStyle.title}</a></dd>
                </xen:if>
                <xen:if is="{$canChangeLanguage}">
                    <dt>{xen:phrase language}</dt>
                    <dd><a href="{xen:link 'misc/language', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase language_chooser}" data-offsetY="-11">{$visitorLanguage.title}</a></dd>
                </xen:if>
            </dl>
            </xen:if>
 
Reactions: D37

CyberAP

Well-known member
The chooser is still there but only one style is available.

You can remove the chooser from the templates if you want:

Admin CP -> Appearance -> Templates -> footer

Remove this code:

Code:
            <xen:if is="{$canChangeStyle} OR {$canChangeLanguage}">
            <dl class="choosers">
                <xen:if is="{$canChangeStyle}">
                    <dt>{xen:phrase style}</dt>
                    <dd><a href="{xen:link 'misc/style', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase style_chooser}" data-offsetY="-11">{$visitorStyle.title}</a></dd>
                </xen:if>
                <xen:if is="{$canChangeLanguage}">
                    <dt>{xen:phrase language}</dt>
                    <dd><a href="{xen:link 'misc/language', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase language_chooser}" data-offsetY="-11">{$visitorLanguage.title}</a></dd>
                </xen:if>
            </dl>
            </xen:if>
Users can still set other styles via /misc/style?style_id=# if you haven't hidden them.
 
Top