vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Hide Threads from Ignored Users (https://vborg.vbsupport.ru/showthread.php?t=45097)

Jujubee 10-27-2002 10:00 PM

Hide Threads from Ignored Users
 
This little hack will completely hide threads started by users that are on the viewer's ignore list.

What it doesn't do:

- ignored usernames still show up in the "Last post by:" column on the home page
- ignored threads still show up in searches (including "View posts since last visit")

Chris M 10-28-2002 12:16 PM

Nice little hack:)

Satan

WoodiE 10-28-2002 12:55 PM

Sweet hack, I have been searching around here for about a week now looking for something to do this.

Thanks!

-WoodiE

/me clicks install

WoodiE 10-28-2002 01:01 PM

Do you know of a way I can hide posts from members on my ignore list, not just threads created by the member?

-WoodiE

Chris M 10-28-2002 01:10 PM

vBulletin as standard hides posts on your Ignore list...

Satan

WoodiE 10-28-2002 02:19 PM

No what i want is to hide the post 100% in a way you dont even know that, that member has posted there.

vBulletin at default will hide the TEXT of the member and give back a message of "This member is on your ignore list. Click Here to view the post" or something along those lines.

I dont even want to see that, hide it in the way you dont even see his name come up.

-WoodiE

NTLDR 10-28-2002 02:24 PM

WoodiE, you need to edit functions.php or change the code in the postbit_ignore template if you want to hide posts for people who are on your ignore list.

Jujubee 10-28-2002 03:27 PM

Quote:

Originally posted by WoodiE
No what i want is to hide the post 100% in a way you dont even know that, that member has posted there.

vBulletin at default will hide the TEXT of the member and give back a message of "This member is on your ignore list. Click Here to view the post" or something along those lines.

I dont even want to see that, hide it in the way you dont even see his name come up.

-WoodiE


Here ya go:

in SHOWTHREAD.PHP


FIND:
PHP Code:

$postbits .= getpostbit($post); 

REPLACE WITH:
PHP Code:

//don't get postbit if ignored post
if ($ignore[$post[userid]] AND $post['userid'] != 0) {
    
// do nothing
} else {
      
$postbits .= getpostbit($post);


Ok, so the if statement is kinda silly with the "do nothing" block, but it's more logical to me this way. :)

WoodiE 10-28-2002 03:32 PM

Jujubee,

Your a good man!

-WoodiE

Chris M 10-28-2002 04:30 PM

Very nice:)

Satan


All times are GMT. The time now is 12:34 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.01040 seconds
  • Memory Usage 1,730KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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