Back to vBulletin 3.8 Add-ons

Remove Staff Reply (Closed Threads)
Mod Version: 1.00, by AdamDV

vB Version: 3.8.7 Rating: (1 vote - 5.00 average) Installs: 6
Released: 15 May 2012 Last Update: Never Downloads: 24
Not Supported Uses Plugins Template Edits Re-usable Code Translations  

Description
This modification will be able to stop anyone from being able to reply to closed threads, including staff. I will also post the additional code needed to add on if you are wanting to only disable it for certain staff user groups.

Info:
Products to Add: 1
Hooks to Edit: 1 (only if you are disabling for certain staff user groups)
Templates to Edit: 2

Install:
1. Import Product via Manage Product. ACP >> Plugins & Products >> Manage Products >> [Add/Import Product]
2. Click Mark as Installed
3. Go to edit your Postbit/Postbit_Legacy and search for:
Code:
<if condition="$post['replylink']">
Before this code you need to add:
Code:
<if condition="$show['closethread']">
Now search for:
Code:
<img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
		</if>
And add after that:
Code:
</if>
4. Click Save
5. Go to edit the SHOWTHREAD template, and search for:
Code:
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
And replace it with:
Code:
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /></a><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></td>
Now search for:
Code:
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
And replace it with:
Code:
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /></a><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></td>

Note: The next part is only for if you are going to disable it for certain usergroups.

1. Open the following hook ready to edit. ACP >> Plugins & Products >> Plugins >> Remove Quick Reply For Staff (Closed Threads)
2. At the beginning add:
Code:
if (is_member_of($vbulletin->userinfo, 5, 6, 7))
3. Edit the 5, 6, 7 with the staff usergroup ID's that you do not want to be able to reply.

Modification originally created for the members at http://dirvine.com

Enjoy

Download

File Type: %1$s product-closedquickreply.xml.zip (1.1 KB, 28 downloads)

Screenshots

Click image for larger version
Name:	@1.png
Views:	83
Size:	13.0 KB
ID:	138453   Click image for larger version
Name:	@2.png
Views:	127
Size:	47.9 KB
ID:	138454   Click image for larger version
Name:	@3.png
Views:	111
Size:	60.8 KB
ID:	138455  

Similar Mods

Moderators Functions Nexia's Alert on Closed Threads for Staff Modification Graveyard
Hide Quick Reply to Staff in Closed Threads vBulletin 3.5 Add-ons
Remove the Reply link when the thread is closed vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024