MyBB Community Forums

Full Version: Filter certain members from memberlist by user or group id
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2013-01-11, 03:42 PM)Mei Chan Wrote: [ -> ]Be careful with multipage.

You are absolutely right. Pagination becomes messed up. It hides members but pages remain intact. Can anyone sort out what needs to be done?
I know this thread is a bit dated but is there a way to filter out more than one group at a time?
(2013-02-12, 07:03 AM)Sector Wrote: [ -> ]
(2013-01-11, 03:42 PM)Mei Chan Wrote: [ -> ]Be careful with multipage.

You are absolutely right. Pagination becomes messed up. It hides members but pages remain intact. Can anyone sort out what needs to be done?

It's a simple fix. Find in memberlist.php (about line 201):

$query = $db->simple_select("users u", "COUNT(*) AS users", "{$search_query}");

and add just above it:

$search_query .= " AND u.usergroup NOT IN (4)";

Change 4 to whatever usergroup ID you want filtered from the member list.
I just attempted this and happened upon a problem: it seems groups hidden in the board's Member List are also hidden from the Admin Control Panel's Member List.

Does anyone know if there's a way to remedy this?
You can find the member iD's in phpMyAdmin - mbb_users
Pages: 1 2