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?
 
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)
 
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>
 
Top Bottom