MyBB Community Forums

Full Version: Ignore lists
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way for me (admin) to see members' ignore list?
Each user's ignore list is stored in the $mybb->user['ignorelist'] variable as a comma-separated list of uid's.

To see a particular user's ignorelist, you could use this snippet:

$uid = 1; // user's UID;

$this_user = get_user($uid);

$ignore_array = explode(",", $this_user['ignorelist']);

echo("{$this_user['username']}'s ignore list:<br /><br />");

foreach($ignore_array as $ig_uid)
{
	$ig_user = get_user($ig_uid);
	echo($sep . $ig_user['username']);
	$sep = ", ";
}
So am I supposed to run that script in the SQL tab in phpmyadmin?
No, no. That is something you could run from a Pagemanager page or in a script with MyBB loaded (global.php)

If you have Page Manager I can make you a little page to enter a UID and see the ignore list of that user.