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

Remove Staff Online Box and how do I move....

Gabby

Well-known member
#1
Hello,
How do I remove staff online box from forum list

and how do I move or add the "highest posting members" to forum list page?

Thank you :)

Gabby
 

Luxus

Well-known member
#10
Hiding the staff online box with CSS is a bad idea. People can still see what staff is online simply by editing the CSS themselves. It's better to remove it from the html output.

Just add the red code to the sidebar_online_users template:

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>