vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to hide Tachy (Global Ignore) threads from mods in forumdisplay? (https://vborg.vbsupport.ru/showthread.php?t=220226)

mme42 08-05-2009 09:20 AM

How to hide Tachy (Global Ignore) threads from mods in forumdisplay?
 
Does anybody have any idea how I would go about hiding thread titles for globally ignored threads (tachy goes to coventry) from moderators in the forumdisplay? We've been using the coventry for a few users who we don't want to deal with anymore (because banning usually causes them to just create another account). However, the moderators are getting sick of clicking these threads only to see the message about the user being on the ignore list.

It would be nice to have these threads hidden in the forumdisplay from everybody but admins, or even everybody but the ignored user.

I believe I'd need to modify the forumdisplay.php around line 574. I tried a couple things, but nothing has worked so far (I'm not very familiar with PHP). Does anybody have an idea as to exactly what I should change? I'm using vB 3.8.x btw.

Thanks :D

Dismounted 08-06-2009 06:04 AM

Plugin @ Hook: forumdisplay_query_threadscount
PHP Code:

if (!is_member_of($vbulletin->userinfo6))
{
    
$globalignore '';


No need to edit files at all. :)

mme42 08-06-2009 06:42 AM

Thanks! However, it's not working for me. I added that as a new plug-in at the hook that you mentioned. But, all it seems to do is make globally ignored threads show up (in the forum display thread list) for moderators in sections that they are not assigned to. Then, when you click on the thread, it gives an invalid thread error. But, the globally ignored threads in the moderators assigned section still show up as normal (which is where i'm trying to hide them so moderators don't have to bother with them.)

So it's actually making it worse. Unless I'm missing something? Was I supposed to do something else?

Thanks Dismounted :D

Dismounted 08-06-2009 07:30 AM

Sorry, screwed up the code (forgot the most important part!), try this instead:
PHP Code:

if (!is_member_of($vbulletin->userinfo6) AND $Coventry fetch_coventry('string'))
{
    
$globalignore "AND postuserid NOT IN ($Coventry) ";



mme42 08-06-2009 07:45 AM

Thanks! That seems to have worked perfectly :D The first one did seem a bit light on code, but then I don't know PHP....yet :p

vijayninel 12-06-2011 08:00 AM

Sorry about bumping an old thread, but how can this be modified to hide even posts from non admins? The plugin by Dismounted hides only thread titles not whole posts in showthread. I want to hide even posts by ignored users in showthread.

Thanks.


All times are GMT. The time now is 05:04 PM.

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.00961 seconds
  • Memory Usage 1,721KB
  • 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_php_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