XF 2.1 Staff Online Check


So I'm wanting to change the <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:
<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: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 class="contentRow-main contentRow-main--close">
                                        <xf:username user="$user" rich="true" />
                                        <div class="contentRow-minor">
                                            <xf:usertitle user="$user" />
Last edited:
Top Bottom