wajones, this can be achieved quite easily:
Open memberlist.php
find:
PHP Code:
if ($postsupper!="") {
$condition.=" AND posts<'$postsupper'";
}
Below it add:
PHP Code:
if ($usergroup!="") {
$condition.=" AND usergroupid='$usergroup'";
}
Now, if you view the Members List via url memberlist.php?usergroup=xx
you will see only the users in usergroup whose id is xx
example:
http://www.atlasf1.com/bb/memberlist.php?usergroup=6 -- you will see all the members of the Administrator usergroup.
***
Now here's another twist you can add.
If you want a logged in user to see only members of his group, do the following instead:
PHP Code:
if ($usergroup!="") {
$condition.=" AND usergroupid='$usergroup'";
} elseif ($bbuserinfo[usergroupid]!="") {
$condition.=" AND usergroupid='$bbuserinfo[usergroupid]'";
}
This means that a user viewing memberlist.php will see only members of his own usergroup listed. A user not logged in or unregistered will see ALL members (unless you excluded a certain group using the previously posted hack).