View Full Version : How to remove the "Merger Thread" in the moderation tools?
Gripi
01-24-2013, 05:16 PM
Hello..
When i click a member profile -> Find All Thread Started -> under the search result, it have "Moderation Tools" right?
My question is, how to remove the "Merger Thread" option in the moderation tools?
I already open the search_resultbit template, but i found a code refer to somewhere else "{vb:raw mod_options}"
Thanks alot.. really2 need this.
I think what you want is in the file packages/vbforum/search/type/thread.php, so you could edit that file and comment out the line that adds that option.
You might be able to do it with a plugin by using hook template_register_var and code like:
if ($name == 'mod_options' AND is_array($value))
{
global $vbphrase;
unset($value[$vbphrase['merge_threads']]);
}
but I haven't tested that at all.
Gripi
01-25-2013, 04:05 AM
Hi..
the plugin code is not working..
in "packages/vbforum/search/type/thread.php" <- i found it, thx, but this code wont work, could you help please:
if (is_member_of($vbulletin->userinfo, 5, 6))
{
$mod_options[$vbphrase['merge_threads']] = 'mergethread';
}
i want the merge thread only show up for usergroup 5 and 6.
Try adding global $vbulletin; at the start of your code.
Gripi
01-28-2013, 11:03 AM
thanks alot :)
Pakblogger
11-08-2015, 06:43 PM
i did it with
packages/vbforum/search/type/thread.php & post.php
and remove merge thread option from thread.php & post.php
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.