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

XF 1.1 Remove "People You Follow" ?

Discussion in 'XenForo Questions and Support' started by denisx04, Aug 3, 2013.

  1. denisx04

    denisx04 Active Member

    A the title says, how do I remove the "people you follow" on the sidebar member list?​
     
  2. Jeremy

    Jeremy Well-Known Member

    In template sidebar_online_users, find and remove the following code:
    Code:
                <xen:if is="{$visitor.user_id}">
                    <xen:if hascontent="true">
                    <h4 class="minorHeading"><a href="{xen:link account/following}">{xen:phrase people_you_follow}:</a></h4>
                    <ul class="followedOnline">
                        <xen:contentcheck>
                            <xen:foreach loop="$onlineUsers.records" value="$user">
                                <xen:if is="{$user.followed}">
                                    <li title="{$user.username}" class="Tooltip"><xen:avatar user="$user" size="s" img="true" class="_plainImage" /></li>
                                </xen:if>
                            </xen:foreach>
                        </xen:contentcheck>
                    </ul>
                    <h4 class="minorHeading"><a href="{xen:link members}">{xen:phrase members}:</a></h4>
                    </xen:if>
                </xen:if>
    
     
    Breixo likes this.
  3. denisx04

    denisx04 Active Member


    Thanks a lot, worked.

    One other question I'm facing this problem where there is now random guests on the "members online now" after every username. Here is an image

    http://imgur.com/I4ZwAdf
     
  4. denisx04

    denisx04 Active Member

    anyone?
     
  5. Jeremy

    Jeremy Well-Known Member

    Can you post the full template code that you are using?
     
  6. denisx04

    denisx04 Active Member

    Code:
    <xen:edithint template="sidebar.css" />
    
    <!-- block: sidebar_online_staff -->
    <xen:if hascontent="true">
    <!-- block: sidebar_online_staff -->
    <div class="section staffOnline avatarListInline">
    <div class="secondaryContent">
    <h3>{xen:phrase staff_online_now}</h3>
    <ul>
    <xen:contentcheck>
    <xen:foreach loop="$onlineUsers.records" value="$user">
    <xen:if is="{$user.is_moderator} OR {$user.is_admin}">
    <li>
    <xen:avatar user="$user" size="s" text="{$user.username} ({xen:helper userTitle, $user})" class="Tooltip" title="{$user.username}, {xen:helper userTitle, $user}" />
    </li>
    </xen:if>
    </xen:foreach>
    </xen:contentcheck>
    </ul>
    <div style="clear:both;"></div>
    </div>
    </div>
    <!-- end block: sidebar_online_staff -->
    </xen:if>
    
    <!-- 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 is="{$onlineUsers.records}">
           
               
               
                <ol class="listInline">
                    <xen:foreach loop="$onlineUsers.records" value="$user" i="$i">
                        <xen:if is="{$i} <= {$onlineUsers.limit}">
                            <li>
                            <xen:if is="{$user.user_id}">
                                <a href="{xen:link members, $user}"
                                    class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{xen:helper richUserName, $user}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                                {xen:phrase guest}<xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                            </xen:if>
                            </li>
                        </xen:if>
                    </xen:foreach>
                    <xen:if is="{$onlineUsers.recordsUnseen}">
                        <li class="moreLink">... <a href="{xen:link online}" title="{xen:phrase see_all_visitors}">{xen:phrase and_x_more, 'count={xen:number $onlineUsers.recordsUnseen}'}</a></li>
                    </xen:if>
                </ol>
            </xen:if>
           
            <div class="footnote">
                {xen:phrase online_now_x_members_y_guests_z, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}'}
            </div>
        </div>
    </div>
    <!-- end block: sidebar_online_users -->
     
  7. Mike

    Mike XenForo Developer Staff Member

    Code:
                            <xen:if is="{$user.user_id}">
                                <a href="{xen:link members, $user}"
                                    class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{xen:helper richUserName, $user}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                                {xen:phrase guest}<xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                            </xen:if>
    You're printing out the word "Guest" after every name.
     
  8. denisx04

    denisx04 Active Member

    How did I not notice >_> you're the best @Mike
     

Share This Page