PDA

View Full Version : How do I create a new usergroup using the api?


bradsears
05-09-2006, 03:12 PM
I'm building an application and I would like to be able to create a new usergroup from code.

I can register new users, create threads and posts, but I want to be able to create new user groups as well. I hate to admit that even though I am a php developer by trade I can't figure out much from tech api documentation.

Thanks very much for your time.
Brad

Alan @ CIT
05-14-2006, 09:33 AM
Take a look at the code in admincp/usergroup.php - line ~435 - That's where vB adds new usergroups from the AdminCP.

Should get you started.

Thanks,
Alan.

bradsears
05-14-2006, 12:31 PM
Thanks very much. I'll check it out today.