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

Staff Online (sidebar)

Discussion in 'Styling and Customization Questions' started by Rho Delta, Feb 29, 2012.

  1. Rho Delta

    Rho Delta Well-Known Member

    How do I hide the Staff Online sidebar block?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Edit the sidebar_online_users template and wrap the staff block in xen:comment tags.

    Code:
    <xen:comment>
    <!-- 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}">
                                <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:foreach>
                    </xen:contentcheck>
                </ul>
            </div>
        </div>
    </xen:if>
    <!-- end block: sidebar_online_staff -->
    </xen:comment>

    Or add this to EXTRA.css:
    Code:
    .section.staffOnline.avatarList {
    display: none;
    }
     
  3. Rho Delta

    Rho Delta Well-Known Member

    gotta love extra.css haha
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Just remember using EXTRA.css will still allow the source code to be viewed and see a list of staff.

    Using xen:comment tags the content isn't rendered at all.
     
  5. Rho Delta

    Rho Delta Well-Known Member

    I just needed it removed to make more space for ads without cluttering everything up. It wasn't a security issue. Thanks!
     

Share This Page