Hide user settings for language and style?

Jake Bunce

XenForo moderator
Staff member
You can edit the template:

Admin CP -> Appearance -> Templates -> account_preferences

Note that you can force a single style and hide the choice by marking only one style as user-selectable.

Screen shot 2011-12-13 at 9.09.39 PM.png

Note that admins are exempt from this. Admins can see all styles regardless.

As for languages... there is no option to mark languages as user-selectable. You have to delete the languages you don't want people to use.
 

fredrikse

Active member
I've been doing som custom work in some templates with help of TMS, to hide the language and style selector. When I was doing that I discovered this in the footer template:

PHP:
<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}" rel="nofollow">{$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}" rel="nofollow">{$visitorLanguage.title}</a></dd>
                </xen:if>
            </dl>
            </xen:if>
It seems like these variables isn't used in the options. Why?

<xen:if is="{$canChangeStyle}">
<xen:if is="{$canChangeLanguage}">
 

fredrikse

Active member
Aha. So, what are they used for apart from being just hidden? I'm using TMS anyway so I'm not really in need of these now :)
 

Jake Bunce

XenForo moderator
Staff member
They are used to show the style and language choosers when there is a choice (more than one selectable).
 
Top