• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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.
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:

<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 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>
It seems like these variables isn't used in the options. Why?

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