Disallow guests from selecting styles?

Vicros

Active member
I am looking for a way to not allow guests to select any other style but the default. Can anyone help me?
 

Cezz

Well-known member
I think currently your only options are

#1 disable all but default style for selection by anyone!
#2 use template conditionals to hide the chooser if guest (though they could still change style with direct link)
 

Cezz

Well-known member
As a direct template edit you can edit the footer template in admincp

FIND
Code:
                <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}">{$visitorStyle.title}</a></dd>
                </xen:if>
REPLACE WITH
Code:
                <xen:if is="{$canChangeStyle} AND {$visitor.user_id}">
                    <dt>{xen:phrase style}</dt>
                    <dd><a href="{xen:link 'misc/style', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase style_chooser}">{$visitorStyle.title}</a></dd>
                </xen:if>
 

Cezz

Well-known member
^this^

That is all that is required:

Admin CP -> Appearance -> Styles -> [click a style] -> Allow user selection
Well they specified to disable style for guests, so I assumed that they didn't want to disable it for all users which this would do!
 
Top