1. 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.

Discussion in 'XenForo Questions and Support' started by BioRage, Apr 19, 2012.

  1. BioRage

    BioRage Member

    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.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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?
     
  3. BioRage

    BioRage Member

    It's XenPorta, but I have no clue why it's causing issues with my forum....
     
  4. dieketzer

    dieketzer Well-Known Member

    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?
     
  5. BioRage

    BioRage Member

    No, that's just how it was.. I just want the Staff to show up..
     
  6. dieketzer

    dieketzer Well-Known Member

    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.
     
  7. BioRage

    BioRage Member

    Hmm, reinstalled it.

    Worked!
     
    dieketzer likes this.

Share This Page