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

How to Add the "follow" Option Under Avatar or Posts In Thread?

steel_curtain

Well-known member
#2
If you want to add this to the user details in posts add the code in red below to the message_user_info template.

Code:
<xen:hook name="message_user_info_text" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
        <h3 class="userText">
            <xen:username user="$user" itemprop="name" rich="true" />
            <xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
            <xen:follow user="$user" class="Tooltip" />
            <!-- slot: message_user_info_text -->
        </h3>
    </xen:hook>
That will make it appear like this.

follow.png

If you don't like the positioning you can modify it to your satisfaction inside that template.

If you want to add it somewhere else under the posts let me know more details. I personally wouldn't want it next to the links for report, like, or reply. But... to each their own.
 

kkm323

Well-known member
#3
thanks a lot
in post, i would like it to appear next to the like button. Though, I prefer the one below avatar.