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

How to disallow users to swtich styles?

Discussion in 'XenForo Questions and Support' started by D37, Oct 24, 2010.

  1. D37

    D37 Active Member

    How do you do this?
  2. Floris

    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.
    CyberAP and D37 like this.
  3. Jake Bunce

    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.
    D37 likes this.
  4. D37

    D37 Active Member

    How do make the others not visible?
  5. D37

    D37 Active Member

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

    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:

                <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 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>
    D37 likes this.
  7. D37

    D37 Active Member

    Ends up I just deleted the "default" style. Then the selection went away..
  8. motowebmaster

    motowebmaster Active Member

    where does one set a style as visible and not visible?
  9. Russ

    Russ Well-Known Member

    Appearance - > STYLES -> Click on the style name directly - > Little check box at the bottom
  10. CyberAP

    CyberAP Well-Known Member

    Users can still set other styles via /misc/style?style_id=# if you haven't hidden them.

Share This Page