2013-04-27, 07:26 PM
2013-04-27, 08:31 PM
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:
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 = ", ";
}
2013-04-27, 09:52 PM
So am I supposed to run that script in the SQL tab in phpmyadmin?
2013-04-27, 10:11 PM
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.
If you have Page Manager I can make you a little page to enter a UID and see the ignore list of that user.