• Your Files, Your Rules – Upgrade Today! Exciting news! With our new ownership, you’re no longer limited—upload files from here to any website without getting Banned. 🚀 Why wait? Upgrade your account now
Making a Simple View and Sticky the Editor in Threads

XF2 Tutorials Making a Simple View and Sticky the Editor in Threads

XFdownloadStore

Virtual Assistant

Administrator
Create a template modification thread_view
Modification key mini_reply_thread
Search type Regular expression

Find
HTML:
/(<xf:macro template="quick_reply_macros" name="body")(.*?)(\/>)/s

Replace
HTML:
<xf:js>
XF.Element.extend('quote',
{
__backup: {
"click": "_clickMiniReply"
},
click: function(e) {
this._clickMiniReply(e);
$(".editorPlaceholder").trigger("click");
}
});
</xf:js>
$1$2
arg-simple="{{ true }}"
arg-deferred="{{ true }}"
$3

In the extra.less template with the desired style, add
Less:
.p-body-pageContent {
position: relative;
height: auto;
.js-quickReply {
position: sticky;
bottom: 0px;
z-index: 10;
}
}

If you need to make the same editor in conversations, then create a similar modification for the template conversation_view
 
Similar threads Most view View more
Back
Top