• Report Links
    We do not store any files or images on our server. XenPaste only index and link to content provided by other non-affiliated sites. If your copyrighted material has been posted on XenPaste or if hyperlinks to your copyrighted material are returned through our search engine and you want this material removed, you must contact the owners of such sites where the files and images are stored.

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

XMAN

Well-known member
Joined
Jul 12, 2021
Messages
20,446
Reaction score
108
Points
63
667b89780e402.jpg

Step 1

/src/addons/BassMan/ConversationButton/_data

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

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

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

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

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

now rebuild

Continue reading...
 
Top