XF 2.2 Need help with hiding the Following/followers from the Members_view profile page.

oO5 Dynasty

Well-known member
I already have the following and followers in my sidebar, and would like to hide it from the center of profile pages.

hide.webp
 
Solution
In member_about template, put this part of code betwen <!-- and --> tags
Less:
            <xf:if is="$followingCount">
                <xf:if contentcheck="true">
                    <div class="block-row block-row--separated">
                        <h4 class="block-textHeader">{{ phrase('member_is_following') }}</h4>
                        <ul class="listHeap">
                            <xf:contentcheck>
                                <xf:foreach loop="$following" value="$followingUser" if="!$xf.visitor.isIgnoring($followingUser.user_id)">
                                    <li>
                                        <xf:avatar user="$followingUser" size="s" />
                                    </li>...
In member_about template, put this part of code betwen <!-- and --> tags
Less:
            <xf:if is="$followingCount">
                <xf:if contentcheck="true">
                    <div class="block-row block-row--separated">
                        <h4 class="block-textHeader">{{ phrase('member_is_following') }}</h4>
                        <ul class="listHeap">
                            <xf:contentcheck>
                                <xf:foreach loop="$following" value="$followingUser" if="!$xf.visitor.isIgnoring($followingUser.user_id)">
                                    <li>
                                        <xf:avatar user="$followingUser" size="s" />
                                    </li>
                                </xf:foreach>
                            </xf:contentcheck>
                        </ul>
                        <xf:if is="$followingCount > count($following)">
                            <a href="{{ link('members/following', $user) }}" data-xf-click="overlay">{{ phrase('ellipsis_and_x_more', {'count': $followingCount - count($following)}) }}</a>
                        </xf:if>
                    </div>
                </xf:if>
            </xf:if>

            <xf:if is="$followersCount">
                <xf:if contentcheck="true">
                    <div class="block-row block-row--separated">
                        <h4 class="block-textHeader">{{ phrase('followers') }}</h4>
                        <ul class="listHeap">
                            <xf:contentcheck>
                                <xf:foreach loop="$followers" value="$followerUser" if="!$xf.visitor.isIgnoring($followerUser.user_id)">
                                    <li>
                                        <xf:avatar user="$followerUser" size="s" />
                                    </li>
                                </xf:foreach>
                            </xf:contentcheck>
                        </ul>
                        <xf:if is="$followersCount > count($followers)">
                            <a href="{{ link('members/followers', $user) }}" data-xf-click="overlay">{{ phrase('ellipsis_and_x_more', {'count': $followersCount - count($followers)}) }}</a>
                        </xf:if>
                    </div>
                </xf:if>
            </xf:if>
 
Solution
Top Bottom