View Full Version : Hide Threads from Ignored Users
Jujubee
10-27-2002, 10:00 PM
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
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:
$postbits .= getpostbit($post);
REPLACE WITH:
//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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.