XenForo [cXF] Conversation Button - Opening Custom Message in Overlay Window

CR LEAKS

Administrators
Joined
Mar 25, 2022
Messages
1,485
Credits
28,051
Step 1

Code:
/src/addons/BassMan/ConversationButton/_data

We go to this directory and open the template_modifications.xml file located here in an editor.


Code:
<xf:button href="{{ link('conversations/add', '', {'to': $user.username, 'title': $__globals.thread.title}) }}" class="cxf-button button--link">

Code:
<xf:button href="{{ link('conversations/add', '', {'to': $user.username}) }}" class="cxf-button button--link">
We add data-xf-click="overlay" to the end of these codes.
  • So like this


Code:
<xf:button href="{{ link('conversations/add', '', {'to': $user.username, 'title': $__globals.thread.title}) }}" class="cxf-button button--link" data-xf-click="overlay">

Code:
<xf:button href="{{ link('conversations/add', '', {'to': $user.username}) }}" class="cxf-button button--link" data-xf-click="overlay" >
Then we save the file.
  • Then we go to lines 36 and 42. These lines have the following code (on both lines separately):


Code:
class="cxf-icon button--link">
Similar to these two codes, we add data-xf-click="overlay" to make them like this:


Code:
class="cxf-icon button--link" data-xf-click="overlay">

now rebuild

Please, Log in or Register to view URLs content!
 
Back
Top Bottom