XF 2.2 Change "post reply" to "send" in Private Conversations

thunderup

Active member
is there a good way to change the phrase used from post_reply to send with a template edit somewhere in XF to change the "post reply" button to say "send" ONLY in private conversations, not on forum posts etc.?

thanks!
 
Solution
Untested.

Edit the quick_reply_macros template.

HTML:
<xf:button type="submit" class="button--primary" icon="reply">
    <xf:if is="$xf.reply.template == 'conversation_view'">
        {{ $submitText ?: "Send" }}
    <xf:else />
        {{ $submitText ?: phrase('post_reply') }}
    </xf:if>
</xf:button>
Probably best to modify the relevant templates directly as otherwise changing the phrase would affect other usages.
Do you have any idea which template this would be in for the conversation_view? The button is tied to the quick reply layout I believe, so I don't see anywhere to change the button off the initial skim through everything
 
Untested.

Edit the quick_reply_macros template.

HTML:
<xf:button type="submit" class="button--primary" icon="reply">
    <xf:if is="$xf.reply.template == 'conversation_view'">
        {{ $submitText ?: "Send" }}
    <xf:else />
        {{ $submitText ?: phrase('post_reply') }}
    </xf:if>
</xf:button>
 
Solution
Back
Top Bottom