XF 2.3 “Send Message” button under the username in thread posts

indicator

Member
Licensed customer
I want to add “Send Message” button under the username in thread posts so that button can take to the send private message area.
 
FYI

i used gemini and worked fine. here are the code if anyone find it useful

Go to message_macros template
After the line
Code:
<xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />
Paste the following
Code:
<xf:if is="$user.user_id AND $user.user_id != $xf.visitor.user_id AND $xf.visitor.canStartConversationWith($user)">
    <div class="message-userExtras">
        <a href="{{ link('conversations/add', null, {'to': $user.username}) }}"
           class="button button--small button--link button--fullWidth"
           data-xf-click="overlay">
            Message
        </a>
    </div>
</xf:if>
 
Back
Top Bottom