Merge the staff block with the members block [Deleted]

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

Final Result:

View attachment 41555



Open sidebar_online_users:

Replace entire code with:

Code:
<xen:edithint template="sidebar.css" />
 
<!-- block: sidebar_online_staff -->
<!-- block: sidebar_online_users -->
<div class="section membersOnline userList">
    <div class="secondaryContent">
        <h3><a href="{xen:link online}" title="{xen:phrase see_all_online_users}">{xen:phrase members_online_now}</a></h3>
 
<xen:if hascontent="true">
                <h4...

Read more about this resource...
 
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:

HTML:
        <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}'}
        </div>
 
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:
@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 :)

We will definitely add the option for avatars, just not positive it will be in the next update for the framework.
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 :)
 
Hm, I really don't know what happened, just double checked the code, copied, pasted again, and this is how it looks now:

Members-Online-Now.webp

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:

members-online-now-png.54488
 
Back
Top Bottom