XF 2 Tip Remove Quick Thread Per Forum

Warfare

[Your Welcoming Staff Member]
Staff member
Administrator
Moderator
+Lifetime VIP+
V.I.P Member
Collaborate
Registered
Joined
Apr 29, 2020
Messages
344
Points
103

Reputation:

Code:
[data-container-key="node-18"] .structItem[data-xf-init^="quick-thread"]
{
display: none;
}

Change the 18 for the ID of the node you want to hide it from. To hide it in multiple nodes you'd repeat the first line like this:

Code:
[data-container-key="node-18"] .structItem[data-xf-init^="quick-thread"] ,
[data-container-key="node-19"] .structItem[data-xf-init^="quick-thread"]

Saying that, it's likely better to do in the thread_list_macros template as it prevents a double border. Pretty sure you'd just change:

Code:
<xf:if is="$forum.canCreateThread()">

to

Code:
<xf:if is="$forum.canCreateThread() AND !in_array($forum.node_id, [18, 19])">

With 18 and 19 being 2 example forums you don't want it in. Haven't tested that though.

Written by Mike, A Xenforo Staff Member/Xenforo Developer.

Source: https://xenforo.com/community/threads/disable-quick-thread-per-forum.174215/post-1403709

or...

You can use Bassmans' Add-on: https://enxf.net/resources/cxf-quick-thread-per-forum.2062/
 
Top