_dodger opened this issue on Jul 30, 2003 ยท 19 posts
_dodger posted Thu, 31 July 2003 at 12:12 PM
nods I'm just saying that it would be relatively easy. 1) Add a table called 'ignored_users' or something. Two columns, like so:
[ignored_users]
member_id VARCHAR(32) NOT NULL,
ignore_id VARCHAR(32) NOT NULL,
PRIMARY KEY (member_id, ignore_id)
...and execute it with the quoted member_id in place of the '?', reading it into a session array. You can cache it, too, because until the user ignores someone else the contents will remain the same. Update the cache when they add someone. 3) Whenever you display a thread (either the listing in the forum or the guts of the thread in ShowMessage mode), you check to see if the poster is in the ignored array and, if so, don't link the member's name (or even hide it with 'Ignored Member' instead) and don't display the message, replacing it with '[Ignored Message]' and ignoreing the attachments. 4) filter out the gallery posts by skipping ignored users with a simple 'AND userid NOT IN ({{list of comma seperated quoted users from ignored array}})' appended to the query right before the ORDER BY statement. 5) If an ignored user goes to send an IM, the IM fails and prints an error message saying that the member is ignoring them. 6) Put an 'ignore user' link next to the name in the threads, galleries, and read messages display. Don't put the link there for when it's an admin, and don't let admins be ignored (or, for forum-only admins, bypass the ignore mechanism and display the message anyway, perhaps with a message indicating the message could not be ignored because the poster is an admin in this forum)