MrSwalbert
Member
So I'm wanting to change the
I think making an array of XF group names and checking if the user has any of these groups as a secondary group would work for what I'm wanting. Would someone possibly be able to help me out with the additions I'd need to make?
Applicable Widget Code:
<xf:if is="$user.is_staff">
check in the template widget_members_online
to check if the user has a secondary group instead of checking if the user is marked as staff.I think making an array of XF group names and checking if the user has any of these groups as a secondary group would work for what I'm wanting. Would someone possibly be able to help me out with the additions I'd need to make?
Applicable Widget Code:
HTML:
<xf:if is="$options.staffOnline">
<xf:if contentcheck="true">
<div class="block" data-widget-section="staffMembers"{{ widget_data($widget) }}>
<div class="block-container">
<h3 class="block-minorHeader"><a href="https://paragonmc.net/forums/staff/">{{ phrase('staff_online') }}</a></h3>
<ul class="block-body">
<xf:contentcheck>
<xf:foreach loop="$online.users" value="$user">
<xf:if is="$user.is_staff">
<li class="block-row">
<div class="contentRow">
<div class="contentRow-figure">
<xf:avatar user="$user" size="xs" />
</div>
<div class="contentRow-main contentRow-main--close">
<xf:username user="$user" rich="true" />
<div class="contentRow-minor">
<xf:usertitle user="$user" />
</div>
</div>
</div>
</li>
</xf:if>
</xf:foreach>
</xf:contentcheck>
</ul>
</div>
</div>
</xf:if>
</xf:if>
Last edited: