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

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

Discussion in 'Styling and Customization Questions' started by CabCon, Jan 24, 2016.

  1. CabCon

    CabCon 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:
    [​IMG]


    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?
    PHP:
    <!-- blocksidebar_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>
                <
    ul>
                    <
    xen:contentcheck>
                        <
    xen:foreach loop="$onlineUsers.records" value="$user">
                            <
    xen:if is="{$user.is_staff}">
                                <
    li>
                                    <
    xen:avatar user="$usersize="s" img="true" />
                                    <
    xen:username user="$userrich="true" />
                                    <
    div class="userTitle">{xen:helper userTitle$user}</div>
                                </
    li>
                            </
    xen:if>
                        </
    xen:foreach>
                    </
    xen:contentcheck>
                </
    ul>
            </
    div>
        </
    div>
    </
    xen:if>
    <!-- 
    end blocksidebar_online_staff -->

    Thank you,
    Your @CabCon.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It would require an add-on or custom development to achieve that.
     
  3. CabCon

    CabCon Member

    mhm ok. And this add-on isn't developed or? :D
     

Share This Page