Show Secondary Groups?

I don't know if this is the right place, but if its not, I'm sorry and please move it accordingly.

I was wondering if there is any way to show a users secondary group in their profile? We're using the upgrade system, and it's in conjunction with a video game VIP system, so we'd like to be able to see who is who without having to give out forum admin to all the game admins. Is this possible?


Well-known member
<xen:if is="{xen:helper ismemberof, $user, 3}">
user is member of group 3!
that would display if the user were a member of usergroup 3


Well-known member
you could create a template and call it 'secondary_groups' and even go further and include something like this:
<xen:if hascontent="true">
            <xen:if is="{xen:helper ismemberof, $user, 3} AND {xen:helper ismemberof, $user, 5}">
                    is member of both groups 3 and 5
            <xen:if is="{xen:helper ismemberof, $user, 3} AND !{xen:helper ismemberof, $user, 6}">
                    is both a member of group 3 and not a member of group 6
            <xen:if is="{xen:helper ismemberof, $user, 7}">
                    is member of group 7
            <xen:if is="{xen:helper ismemberof, $user, 8}">
                    is member of group 8
the above would output whichever conditions were met.
then in member_card or member_view or wherever you want the code to work, include this template by:
<xen:include template="secondary_groups" />