vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to remove the "Merger Thread" in the moderation tools? (https://vborg.vbsupport.ru/showthread.php?t=294337)

Gripi 01-24-2013 04:16 PM

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.

kh99 01-24-2013 05:52 PM

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.

Gripi 01-25-2013 03: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:

Code:

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.

kh99 01-25-2013 11:19 AM

Try adding global $vbulletin; at the start of your code.

Gripi 01-28-2013 10: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


All times are GMT. The time now is 06:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01856 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete