XF 1.5 Secondary Usergroup


Is there a command like above for secondary usergroup? or one that would apply to a secondary usergroup?
I wanted to do something similar to this:

<xen:if is="in_array({$user.user_id}, array(1,2))">
 <div class="groupimage"><img src="superadmin.png" alt="Super Admin" /></div>
<xen:elseif is="{$user.user_group_id} == 3 AND !in_array({$user.user_group_id}, array(1,2,4)) AND !{user.is_banned}">
 <div class="groupimage"><img src="admin.png"  alt="Admin" /></div>
<xen:elseif is="{$user.user_group_id} == 4 AND !in_array({$user.user_group_id}, array(1,2,3)) AND !{user.is_banned}">
 <div class="groupimage"><img src="mod.png"  alt="Mod" /></div>
<xen:elseif is="{$user.is_banned} AND !in_array({$user.user_group_id}, array(1,2,3,4))">
 <div class="groupimage"><img src="banned.png"  alt="Banned" /></div>
<xen:elseif is="{$user.user_group_id} == 2 AND !in_array({$user.user_group_id}, array(1,3,4)) AND !{user.is_banned}">
 <div class="groupimage"><img src="members.png"  alt="Regular Member" /></div>
<xen:else />
   //No Image
I want the two people that have super admin to have a different usergroup image than other administrators, and the administrators and all lower membergroup to all be different

I do not want overlapping or multiple images.

I have every member on the forums, set as "Registered" as the primary usergroup
Moderators and Administrators are checked inside the Secondary Usergroup

How would I do this?
Last edited: