PDA

View Full Version : Adding Users to Usergroup


besuchov
05-15-2008, 06:56 AM
If I wanted to enter a user to a usergroup (or rather adding the usergroup to the user), what would be the most efficient way to do it?

Currently I get the list of groups from user, add the groupid to the list and update the database. Unsurprisingly this tends to lag the forum to death (have over 1000 users online at any given time).

Lynne
05-15-2008, 02:17 PM
I go to the admin cp, search for the user, and then select the usergroups in that form and save.

besuchov
05-22-2008, 12:25 PM
I go to the admin cp, search for the user, and then select the usergroups in that form and save.

ehm, thanks for the reply but what I really wanted to know was how to do it from code. That was my reason for posting in the Programming forum and not some other place...