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

Discussion in 'XenForo Questions and Support' started by Gabby, Sep 30, 2012.

  1. Gabby

    Gabby Well-Known Member

    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 :)

  2. ArnyVee

    ArnyVee Well-Known Member

    Add this to EXTRA.css to remove the staff online

    .sidebar .staffOnline {
      display: none;
    Jake Bunce and vVv like this.
  3. Gabby

    Gabby Well-Known Member

    Hi Arny. For some reason this didn't work. :)
  4. ArnyVee

    ArnyVee Well-Known Member

    That's strange, I just tested it and it worked. Did you apply it to the correct style EXTRA.css template?
  5. Gabby

    Gabby Well-Known Member

    I know very strange. Seems like a simple fix but it's not working on my site. C and P just as you posted too. :)
  6. FredC

    FredC Well-Known Member

    I can confirm that code works..
    Jake Bunce likes this.
  7. Gabby

    Gabby Well-Known Member

    Thank You Adam and VonDoom. Ok here is a pic of my extracss template. What am I doing wrong? :confused:

  8. Russ

    Russ Well-Known Member

    You didn't close the previous CSS :)
    previous needs a }
    Jake Bunce, Shelley and vVv like this.
  9. Gabby

    Gabby Well-Known Member

    Ah. THank you Von and Russ. That did the trick. Sorry I'm so tired I can hardly see. :)
    vVv likes this.
  10. Luxus

    Luxus Well-Known Member

    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:

    <!-- block: sidebar_online_staff -->
    <xen:if hascontent="true">
        <div class="section staffOnline avatarList">
            <div class="secondaryContent">
                <h3>{xen:phrase staff_online_now}</h3>
                        <xen:foreach loop="$onlineUsers.records" value="$user">
                            <xen:if is="{$user.is_moderator} OR {$user.is_admin}">
                                    <xen:avatar user="$user" size="s" img="true" />
                                    <xen:username user="$user" rich="true" />
                                    <div class="userTitle">{xen:helper userTitle, $user}</div>
    <!-- end block: sidebar_online_staff -->
    rafass, gasg, web09 and 3 others like this.

Share This Page