Log in

View Full Version : Listing members of certain groups


SilentK
01-26-2005, 03:04 AM
I want to use showgroups.php to list a individual group not all the public ones. So basicly I want to be able to add something like groupid=x and than that group gets displayed. Is there any modification like this for vb3? If not how would I do this?

Carnage
01-26-2005, 10:55 AM
probably somethign for modifications requests but anyway; heres a starter:


SELECT username FROM user WHERE $groupid IN(membergroupids) OR usergroupid = $groupid


should do it... that will select all members of a certain group and give you the names, obvioulsy you still need to output them.

Alternativly one way i can think of doing it is by setting all groups to display on showgroups.php then somewhere in the code check that $groupid = $usergroup thats being displayed.

Without the code at hand i can't give more than vague pointers atm