PDA

View Full Version : Hide Threads from Ignored Users


Jujubee
28 Oct 2002, 07:17
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
28 Oct 2002, 13:16
Nice little hack:)

Satan

WoodiE
28 Oct 2002, 13:55
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
28 Oct 2002, 14:01
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
28 Oct 2002, 14:10
vBulletin as standard hides posts on your Ignore list...

Satan

WoodiE
28 Oct 2002, 15:19
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
28 Oct 2002, 15:24
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
28 Oct 2002, 16:27
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
28 Oct 2002, 16:32
Jujubee,

Your a good man!


-WoodiE

Chris M
28 Oct 2002, 17:30
Very nice:)

Satan