XF 1.1 Defference style for guests and logged in users

Veer

Well-known member
#1
I have two styles, and i am looking for a way to force difference style for guest visitors and registered users. i.e

Style 1 : for guests
Style 2 : for registered users
 
F

Floris

Guest
#5
Just thinking outloud here.

but you can try wrapping the page_container line:
Code:
<link rel="stylesheet" href="css.php?css=xenforo,form,public&amp;style={xen:urlencode $_styleId}&amp;dir={$visitorLanguage.text_direction}&amp;d={$visitorStyle.last_modified_date}" />
around a conditional
force it to be 1 thing for guests, so it's something else for members.
Rich (BB code):
<xen:if is="{$visitor.user_id}"><xen:comment>logged in user style id</xen:comment>
<link rel="stylesheet" href="css.php?css=xenforo,form,public&amp;style=1&amp;dir={$visitorLanguage.text_direction}&amp;d={$visitorStyle.last_modified_date}" />
<xen:else /><xen:comment>guest style id</xen:comment>
<link rel="stylesheet" href="css.php?css=xenforo,form,public&amp;style=8&amp;dir={$visitorLanguage.text_direction}&amp;d={$visitorStyle.last_modified_date}" />
</xen:if>
 
Top