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

Ludachris

Well-known member
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.
 
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...>
 
Back
Top Bottom