User Ranks in CSS

User Ranks in CSS 1.0

No permission to download
<xen:if is="{xen:helper ismemberof, $user, 1}"></xen:if>

That will apply to all members in user group 1, primary or secondary.

I ended up having to use this conditional statement rather than the one that was in the instructions to add a usergroup other than admin or mod. Not sure why, but the one in the instructions simply wouldn't work for me.
 
Code:
<!-- Start User Ranks -->
<xen:if is="{$user.is_admin}">
<span class="userrank">Administrator</span>
</xen:if>

<xen:if is="{$user.is_moderator} AND !{$user.is_admin}">
<span class="userrank">Moderator</span>
</xen:if>

<xen:if is="{$user.user_group_id} == 5">
<span class="userrank">Your_custom_usergroup_name</span>
</xen:if>
<!-- End User Ranks -->
How would one go about making this work in XF2.1+?
 
Top Bottom