The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to remove the "Merger Thread" in the moderation tools?
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. |
#2
|
|||
|
|||
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: Code:
if ($name == 'mod_options' AND is_array($value)) { global $vbphrase; unset($value[$vbphrase['merge_threads']]); } but I haven't tested that at all. |
#3
|
|||
|
|||
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: Code:
if (is_member_of($vbulletin->userinfo, 5, 6)) { $mod_options[$vbphrase['merge_threads']] = 'mergethread'; } |
#4
|
|||
|
|||
Try adding global $vbulletin; at the start of your code.
|
#5
|
|||
|
|||
thanks alot
|
#6
|
|||
|
|||
i did it with
packages/vbforum/search/type/thread.php & post.php and remove merge thread option from thread.php & post.php |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|