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

XF 1.5 Move Profile Following Status

Discussion in 'Styling and Customization Questions' started by Amaury, Jul 14, 2016.

  1. Amaury

    Amaury Well-Known Member

    I am trying to move the "is following you"/"is not following you" text to the left of my custom Available Actions dropdown menu, but I can't figure out where exactly to put it. I've already tried playing around with it to no avail. One result had it in the top left corner (with the text slightly bigger) of that area, though I of course don't want it there.

    I know what code I need to move, I just don't know where. This is the code I need to move:

    Code:
    <xen:if is="{$visitor.user_id} AND {$user.user_id} != {$visitor.user_id}">
                            <div class="muted">
                                <xen:if is="{$user.isFollowingVisitor}">
                                    {xen:phrase user_is_following_you, 'user={$user.username}'}
                                <xen:else />
                                    {xen:phrase user_is_not_following_you, 'user={$user.username}'}
                                </xen:if>
                            </div>
                        </xen:if>
    Here's my whole code for that area:

    Code:
    <div class="section primaryUserBlock">
                <div class="mainText secondaryContent">
                    <div class="followBlock">
                        <xen:if hascontent="true">
                        <ul>
                            <xen:contentcheck>
                            <xen:if hascontent="true">
                                <li><div class="Popup moderatorToolsPopup">
                                    <a rel="Menu">{xen:phrase moderator_tools}</a>
                                    <div class="Menu">
                                        <div class="primaryContent menuHeader"><h3>{xen:phrase moderator_tools}</h3></div>
                                        <ul class="secondaryContent blockLinksList">
                                        <xen:contentcheck>
                                            <xen:if is="{$canWarn}">
                                                <li><a href="{xen:link members/warn, $user}">{xen:phrase warn}</a></li>
                                            </xen:if>
                                            <xen:if is="{$canCleanSpam}">
                                                <li><a href="{xen:link spam-cleaner, $user, 'noredirect=1'}" class="deleteSpam OverlayTrigger">{xen:phrase spam}</a></li>
                                            </xen:if>
                                            <xen:if is="{$canViewIps}">
                                                <li><a href="{xen:link members/shared-ips, $user}" class="OverlayTrigger">{xen:phrase shared_ips}</a></li>
                                            </xen:if>
                                            <xen:if is="{$canBanUsers}">
                                                <xen:if is="{$user.is_banned}">
                                                    <li><a href="{xen:adminlink banning/users/lift, $user}">{xen:phrase lift_ban}</a></li>
                                                <xen:else />
                                                    <li><a href="{xen:adminlink banning/users/add, $user}">{xen:phrase ban}</a></li>
                                                </xen:if>
                                            </xen:if>
                                            <xen:if is="{$canEditUser}">
                                                <li><a href="{xen:link members/edit, $user}">{xen:phrase edit}</a></li>
                                            </xen:if>
                                        </xen:contentcheck>
                                        </ul>
                                    </div>
                                </div></li>
                            </xen:if>
                           
                            <xen:if hascontent="true">
                                <li><div class="Popup moderatorToolsPopup">
                                    <a rel="Menu">{xen:phrase khflare_available_actions}</a>
                                    <div class="Menu">
                                        <div class="primaryContent menuHeader"><h3>{xen:phrase khflare_available_actions}</h3></div>
                                        <ul class="secondaryContent blockLinksList">
                                        <xen:contentcheck>
                                            <xen:if is="{$canReport}">
                                                <li><a href="{xen:link members/report, $user}" class="OverlayTrigger">{xen:phrase report}</a></li>
                                            </xen:if>
                                            <xen:if is="{xen:helper isIgnored, $user.user_id}">
                                                <li><a href="{xen:link members/unignore, $user}" class="FollowLink">{xen:phrase unignore}</a></li>
                                            <xen:elseif is="{$canIgnore}" />
                                                <li><a href="{xen:link members/ignore, $user}" class="FollowLink">{xen:phrase ignore}</a></li>
                                            </xen:if>
                                            <xen:follow user="$user" title="" tag="li" />
                                            <xen:if is="{$canStartConversation}">
                                                <li><a href="{xen:link conversations/add, '', 'to={$user.username}'}">{xen:phrase start_conversation}</a></li>
                                            </xen:if>
                                        </xen:contentcheck>
                                        </ul>
                                    </div>
                                </div></li>
                            </xen:if>                       
                            </xen:contentcheck>
                        </ul>
                        </xen:if>
                        <xen:if is="{$visitor.user_id} AND {$user.user_id} != {$visitor.user_id}">
                            <div class="muted">
                                <xen:if is="{$user.isFollowingVisitor}">
                                    {xen:phrase user_is_following_you, 'user={$user.username}'}
                                <xen:else />
                                    {xen:phrase user_is_not_following_you, 'user={$user.username}'}
                                </xen:if>
                            </div>
                        </xen:if>
                    </div>
    And here's a screenshot of what I want to accomplish:

    Following You.PNG

    Thanks!
     

Share This Page