XF 1.5 Show Online Member of a Group on Sidebar or Memberlist.


Active member
Hello, I'm searching a way to display member of my "Premium" group. One time on the sidebar on the forum index, secound time on the member list. Like the Staff Online. In my way Premium Users Online.

Like I have one more catergory:

Also I think someone can simply modify this, it is the staff online. Just set the "Stuff Ids" to the Premium group IDs ? Or how can I do this?
<!-- block: sidebar_online_staff -->
<xen:if hascontent="true">
    <div class="section staffOnline avatarList">
        <div class="secondaryContent">
            <h3><a href="{xen:link members, '', 'type=staff'}">{xen:phrase staff_online_now}</a></h3>
                    <xen:foreach loop="$onlineUsers.records" value="$user">
                        <xen:if is="{$user.is_staff}">
                                <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 -->

Thank you,
Your @CabCon.
Top Bottom