- add-on renamed to [cXF] Direct Message Button (note: in the file name you will still see
ConversationButton
)- fixed phrases for XF 2.3
- other minor edits related to changing the name of the add-on
I can't see it. Only registered members that can send direct messages can see it.I installed it, can you see if it works?
Check the style properties for this add-on.You just install the addon and it works, right?
where do I set it up?Check the style properties for this add-on.
- new position for icon: below* username in message user info (for XF 2.3+). The icon on mobile will still show next to username.
View attachment 315256
*note: don't use this position if you use https://xenforo.com/community/resources/cxf-horizontal-message-user-info.7033/
class="cxf-button button--link" data-xf-click="overlay">
class="cxf-icon button--link" data-xf-click="overlay">
<?xml version="1.0" encoding="utf-8"?>
<template_modifications>
<modification type="public" template="extra.less" modification_key="cb_extra_less" execution_order="10" enabled="1" action="preg_replace">
<find><![CDATA[/^.*$/s]]></find>
<replace><![CDATA[$0
{{ include('cxf_conversation_button.less') }}]]></replace>
</modification>
<modification type="public" template="message_macros" modification_key="cb_2" description="Add conversation button above message user extra (user details)" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[ <xf:if is="$user.user_id">]]></find>
<replace><![CDATA[<xf:if is="property('cb_thread_title') == 'enabled'">
<xf:if is="$__globals.thread AND $user.user_id AND $xf.visitor.canStartConversationWith($user)">
<xf:if is="property('cb_bud') == 'above'">
<xf:button href="{{ link('conversations/add', '', {'to': $user.username, 'title': $__globals.thread.title}) }}" class="cxf-button button--link">
{{ phrase('start_conversation') }}
</xf:button>
</xf:if>
</xf:if>
<xf:else />
<xf:if is="$user.user_id AND $xf.visitor.canStartConversationWith($user)">
<xf:if is="property('cb_bud') == 'above'">
<xf:button href="{{ link('conversations/add', '', {'to': $user.username}) }}" class="cxf-button button--link">
{{ phrase('start_conversation') }}
</xf:button>
</xf:if>
</xf:if>
</xf:if>
$0]]></replace>
</modification>
<modification type="public" template="message_macros" modification_key="cb_2_below" description="Add conversation button below message user extra (user details)" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[ <span class="message-userArrow"></span>
</section>]]></find>
<replace><![CDATA[<xf:if is="property('cb_thread_title') == 'enabled'">
<xf:if is="$__globals.thread AND $user.user_id AND $xf.visitor.canStartConversationWith($user)">
<xf:if is="property('cb_bud') == 'below'">
<xf:button href="{{ link('conversations/add', '', {'to': $user.username, 'title': $__globals.thread.title}) }}" class="cxf-button button--link">
{{ phrase('start_conversation') }}
</xf:button>
</xf:if>
</xf:if>
<xf:else />
<xf:if is="$user.user_id AND $xf.visitor.canStartConversationWith($user)">
<xf:if is="property('cb_bud') == 'below'">
<xf:button href="{{ link('conversations/add', '', {'to': $user.username}) }}" class="cxf-button button--link">
{{ phrase('start_conversation') }}
</xf:button>
</xf:if>
</xf:if>
</xf:if>
$0]]></replace>
</modification>
<modification type="public" template="message_macros" modification_key="cb_icon" description="Conversation icon beside username in message" execution_order="10" enabled="1" action="preg_replace">
<find><![CDATA[/<h4 class="message-name(.*)\/>/isU]]></find>
<replace><![CDATA[$0
<xf:if is="property('cb_thread_title') == 'enabled'">
<xf:if is="$__globals.thread AND $user.user_id AND $xf.visitor.canStartConversationWith($user)">
<xf:if is="property('cb_ibu') == 'enabled'">
<span class="cxf-cb-icon"><a href="{{ link('conversations/add', '', {'to': $user.username, 'title': $__globals.thread.title}) }}" class="cxf-icon button--link" data-xf-click="overlay"><xf:fa icon="{{ property('cb_icon') }}" data-xf-init="tooltip" title="{{ phrase('start_conversation')}}" /></a></span>
</xf:if>
</xf:if>
<xf:else />
<xf:if is="$user.user_id AND $xf.visitor.canStartConversationWith($user)">
<xf:if is="property('cb_ibu') == 'enabled'">
<span class="cxf-cb-icon"><a href="{{ link('conversations/add', '', {'to': $user.username}) }}" class="cxf-icon button--link" data-xf-click="overlay"><xf:fa icon="{{ property('cb_icon') }}" data-xf-init="tooltip" title="{{ phrase('start_conversation')}}" /></a></span>
</xf:if>
</xf:if>
</xf:if>]]></replace>
</modification>
</template_modifications>
It seems to be working stable now. I added an attachment and sent a message but there seems to be no error. If I understand you correctly.I don't remember now why I removed that option, but something was not working right when using the overlay option. I think something with attachments.
We use essential cookies to make this site work, and optional cookies to enhance your experience.