The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#9
|
|||
|
|||
![]()
I missed your reply before, trying that now. one sec. Will edit this when I am done. Thanks.
Edit: yeah that worked great Code:
$groups = array("Super Mods" => 5, "Admins" => 6, "Mods" => 7); // set this to the group id you want foreach ($groups as $groupname => $groupid) { $users = $vbulletin->db->query_read("SELECT username FROM ".TABLE_PREFIX."user WHERE usergroupid = $groupid"); $str = ''; $sep = ''; while ($user = $vbulletin->db->fetch_array($users)) { $str .= $sep . $user['username']; $sep = ', '; } // $str is comma separated list of users in $groupid $vbulletin->db->free_result($users); echo "$groupname: $str <BR></BR>"; } The only improvement would be to have it work with both primary and secondary. Gotta say tho, you have been really great ![]() If you work out how to get it to work with primary and secondary you will be legendary. Thanks again. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|