Website Sale Banner

🏷️ This Website is For Sale

Available Now

ℹ️ Reason for Sale: Due to limited availability, I am unable to continue maintaining the site at this time.

đź’° Pricing

$300

Flexible for negotiation

đź’ł Payment Method

PayPal (Friends & Family Only)

Secure transaction required

📦 What's Included

âś… All related files
âś… Complete database
❌ User data excluded
❌ Current theme excluded
❌ Domain excluded
❌ Hosting excluded

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

JowLix

XenForo Expert

Staff member
LIFETIME ELITE
Coin Coins
22,316
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