• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Staff Online Admins/Mods/etc. Aren't showing up.

#1
Hello,

I'm not to sure what happened, but the Staff Online doesn't show the staff, at all.

Even on the default style.



admin.png

admin.png

I've set the number to 3, corresponding to the code in sidebar_online_users...

admin.png

Code:
<!-- block: sidebar_online_staff -->
<xen:if hascontent="true">
    <div class="section staffOnline avatarList">
        <div class="secondaryContent">
            <h3>{xen:phrase staff_online_now}</h3>
            <ul>
                <xen:contentcheck>
                    <xen:foreach loop="$onlineUsers.records" value="$user">
                        <xen:if is="{$user.is_moderator} OR {$user.is_admin}">
                                                 <xen:if is="{$user.user_id} != 3">
                            <li>
                                <xen:avatar user="$user" size="s" img="true" />
                                <xen:username user="$user" rich="true" />
                                <div class="userTitle">{xen:helper userTitle, $user}</div>
                            </li>
                                                </xen:if>
                        </xen:if>
                    </xen:foreach>
                </xen:contentcheck>
            </ul>
        </div>
    </div>
</xen:if>
<!-- end block: sidebar_online_staff -->
Anyone have a clue?

Thanks.
 

Jake Bunce

XenForo moderator
Staff member
#2
Maybe those staff members aren't online. Or maybe you are using an addon that overrides the sidebar. Do you have this problem on the default style with all of your addons disabled?
 

dieketzer

Well-known member
#4
your code is stuffed up for one.
what are you trying to accomplish? are you trying to hide user 3 from showing up in staff online?
 

dieketzer

Well-known member
#6
that is not default code for either the portal or xf sidebar.
somebody has altered it. it looks like they tried to make member #3 not show up in the staff list.
revert whichever template that is.