XF 1.3 If Conditional to display code to guests and members of usergroup X

Ludachris

Well-known member
#1
Can someone post the correct conditional code to check if the person browsing is a guest OR is part of usergroup 23? I don't think what I have is correct.
 

Ludachris

Well-known member
#3
So this should work:
Code:
<xen:if is="{$visitor.user_id} OR {xen:helper ismemberof, $visitor, x}">
And to make sure a member is not part of several usergroups, I'd have to do this:

Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 23} AND !{xen:helper ismemberof, $visitor, 24} AND...>
 
Top