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

Merge the staff block with the members block

Save some space on the sidebar

  1. Russ

    Russ Well-Known Member

    Russ submitted a new resource:

    Merge the staff block with the members block (version 1.0) - Save some space on the sidebar

    Read more about this resource...
    Alien and Shelley like this.
  2. Shelley

    Shelley Well-Known Member

    I did this about a year or so ago and it's truly a space saver. Another excellent and useful resource. Excellent work yet again. :)

    Edit: Thinking back it might not have been staff I think i merged the who visited in the last 24 hours into the members online block.
    Russ likes this.
  3. Alien

    Alien Well-Known Member

    Just one small update to this for 1.2, which I'm sure Russ will compare/fix...

    There is a changed phrase, so be sure it looks like this in the proper place:

            <div class="footnote">
    {xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}', 'robots={xen:number $onlineUsers.robots}'}
    xIsabel38, Shelley, Steve F and 2 others like this.
  4. QenTox

    QenTox Well-Known Member

    Hi @Russ solved this problem thanks to @Alien :)


    But here is another one:

    Robots are not defined in your code. Where can I change it, so they will not display at all in the Members Online Now? So I will only have there members and guests.
  5. QenTox

    QenTox Well-Known Member

    Also is there a tweak, which will display in Members: instead of their usernames their avatars, as it is for Staff Online Now and People You Follow?

    I guess it would make more sense to rename Staff Online Now to only Staff: :)
  6. Steve F

    Steve F Well-Known Member

    You need to make sure there is not a syntax error or outdated phrase, seems to work fine for me with @Alien's fix.

    As for avatars for members online, look in: Style Properties -> [XB] Sidebar -> Enable Avatars in Sidebar Online List

  7. Steve F

    Steve F Well-Known Member

    Just a note, if you replaced the entire template as this guide suggest, the above option will not work.

    We can add this to the framework for one of the upcoming releases though.
  8. QenTox

    QenTox Well-Known Member

    Yeah, I applied @Alien 's fix as it can be seen on second picture :) Now I am upgrading from 1.2. RC 2 to 1.2. Will try it again, hopefully I won't have robots there anymore.

    Ah, it is a shame, that can not display avatars with this modification, anyway Core for 1.2 with bug fixes should be released soon, so hopefully there will be an option then to turn avatars for members on :)
    Last edited: Jul 31, 2013
  9. Steve F

    Steve F Well-Known Member

    We will definitely add the option for avatars, just not positive it will be in the next update for the framework.
    Alien, QenTox and Shelley like this.
  10. QenTox

    QenTox Well-Known Member

    @Russ if you will have time, don't forget to update this resources description. For XenForo 1.2 you need to use the update from @Alien and it is still not changed in your Overview description :)

    Is it a lot of work to display avatars for members too? I mean if I could do that with Core myself or should I just rather wait for that framework update?

    Also, how can I disable (turn off) robots? I don't see any point showing this info for users :)
  11. Steve F

    Steve F Well-Known Member

    You want to show user avatars in the online list?
  12. QenTox

    QenTox Well-Known Member

    Yes, I want to have all members (admin, Tomas) with avatars instead of usernames (they will display on hover) and I don't want to have there robots: 0.

  13. Steve F

    Steve F Well-Known Member

    [XB] - Sidebar -> Enable Avatars in Sidebar Online List

    I think I misunderstood your original request, this has been in the framework for a while, sorry :(
  14. QenTox

    QenTox Well-Known Member

    That is not working for me. You mentioned in this thread it will not work after this change, that you will need to add this to the framework.

  15. Steve F

    Steve F Well-Known Member

    Ah! That is why - We need to add this template mod to the framework. Will put it to the top of the list of things to add.
  16. QenTox

    QenTox Well-Known Member

    @Qwk86gn ok, thanks, I will wait for that :)

    Do you know how to disable robots from members online? I don't want to show this info to my members, I find it really useless for them.
  17. Steve F

    Steve F Well-Known Member

    Go into phrases - online_now_x_members_y_guests_z_robots_a

    , robots: {robots}
    QenTox likes this.
  18. QenTox

    QenTox Well-Known Member

    Thanks a lot, that did it for me! :)
    Steve F likes this.
  19. QenTox

    QenTox Well-Known Member

    Anyone knows if anything changed with XenForo 1.2.1?

    I upgraded both the XenForo and Core to the newest versions, but staff avatars are twice as big as people you follow. I really prefered the same small size for both groups. I didn't do any additional changes as far as I know.

  20. QenTox

    QenTox Well-Known Member

    Hm, I really don't know what happened, just double checked the code, copied, pasted again, and this is how it looks now:


    I have XenForo 1.2.1 and before the upgrade everything was fine. Can someone please help me, how to achieve the result as it was before? Smaller avatars and they are next to each other and one below other as it is now. This is how I had it before:


Share This Page