Link to ModRate this ModThis Mod Adds to your SSI.php a function that allows you to get all members from a membergroup. This is great for people who run Clan, Guild sites or just need a roster of members..
This was Created to Search Regular Groups and Not Post based Groups.
Features:
+ Get Users From a Membergroup
+ Search Additional Groups..
+ Search and Array of Groups (IE Search Groups 1 and 2 at once)
+ Sort by ID_MEMBER or realname
+ Sort by Ascending (ASC) or Descending (DESC)
+ output echo or into an array for customization..
+ ID and class tags set to allow CSS style sheets to customize easily.
Usage:
ssi_membergroup($groupid = 1, $additional = 0, $sort = 1, $sortorder = 1, $output_method = 'echo')
Additional:
0 = Do Not Search (Default)
1 = Search Additional
Sort:
1 = Sort by realname (Default)
2 = Sort by ID_Member
Sortorder:
1 = Sort by ASC (Default)
2 = Sort by DESC
Oputput:
Leave blank Unless you are wanting to output as an array.
if so the following 2 values are used in the array: id, name
foreach is best used..
Notes:
Group ID 0 Can not be selected, It will default to 1 (admins)..
Examples:
ssi_membergroup(2, 1);
$groups = array (1,2);
ssi_membergroup($groups, 1);
$groups = array (1,2);
$mygroup = ssi_membergroup($groups, 1, 1, 1, 'array');
foreach($mygroup as $mem)
echo '<a href="'.$scripturl.'?action=profile;u='.$mem['id'].'" class="ssi_membergroup" id="ssi_member_'.$mem['id'].'">'.$mem['name'].'</a><br/>';