MyBB Community Forums

Full Version: Memberlist - certain groups?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So our memberlist is set to show 50 results per page, however it's not doing that.

On page 1, 6 user accounts are shown; page 2, 4 accounts; page 3, 5 accounts, etc.

I'm not sure what caused this but I also have no idea how to fix it. Some help please?


So I figured out what was causing the issue. I used this tutorial to remove certain groups from the member list, and instead of removing them, it simply hid them and showed the remaining accounts.

Is there a way to truly remove a group from the memberlist and not just hide it?

Updated
Remove the code specified in tutorial from the file. Then in the same file find:
	if(trim($mybb->input['yahoo']))
	{
		$search_query .= " AND u.yahoo LIKE '%".$db->escape_string_like($mybb->input['yahoo'])."%'";
		$search_url .= "&yahoo=".urlencode($mybb->input['yahoo']);
	}
replace with:
	if(trim($mybb->input['yahoo']))
	{
		$search_query .= " AND u.yahoo LIKE '%".$db->escape_string_like($mybb->input['yahoo'])."%'";
		$search_url .= "&yahoo=".urlencode($mybb->input['yahoo']);
	}
	$search_query .= " AND u.usergroup NOT IN (1,2,3)";

Change 1,2,3 to groups which should be completely removed.
Perfect!!! Thanks so much!