hathway
Member
I am trying to display different content depending on what user group the user (not visitor) is a member of.
I came up with this:
<xen:if is="{xen:helper ismemberof, $user, 3}">
<p class="userGroupTitle">Administrator</p>
</xen:if>
<xen:if is="{xen:helper ismemberof, $user, 4}">
<p class="userGroupTitle">Moderator</p>
</xen:if>
<xen:if is="{xen:helper ismemberof, $user, 10}">
<p class="userGroupTitle">10</p>
</xen:if>
<xen:if is="{xen:helper ismemberof, $user, 11}">
<p class="userGroupTitle">11</p>
</xen:if>
and noticed it would not work for the Moderator or Administrator user groups. So I checked the user permissions and found it is due to the moderators and administrators not being added to the usergroups in question on their personal user permission page, yet through the moderator and administrator pages. I thought this was the correct way of doing it? Is this a bug?
I came up with this:
<xen:if is="{xen:helper ismemberof, $user, 3}">
<p class="userGroupTitle">Administrator</p>
</xen:if>
<xen:if is="{xen:helper ismemberof, $user, 4}">
<p class="userGroupTitle">Moderator</p>
</xen:if>
<xen:if is="{xen:helper ismemberof, $user, 10}">
<p class="userGroupTitle">10</p>
</xen:if>
<xen:if is="{xen:helper ismemberof, $user, 11}">
<p class="userGroupTitle">11</p>
</xen:if>
and noticed it would not work for the Moderator or Administrator user groups. So I checked the user permissions and found it is due to the moderators and administrators not being added to the usergroups in question on their personal user permission page, yet through the moderator and administrator pages. I thought this was the correct way of doing it? Is this a bug?