1. 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?

Discussion in 'XenForo Questions and Support' started by fredrikse, Sep 26, 2012.

  1. fredrikse

    fredrikse Active Member

    Hi. I want to hide the user settings for language and style. Is that possible in some way?

    style_language.png
     
    erich37 likes this.
  2. Jake Bunce

    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.
     
  3. fredrikse

    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}">
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Those are special container params. They are not configurable options.
     
  5. fredrikse

    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 :)
     
  6. Jake Bunce

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

Share This Page