MyBB Community Forums

Full Version: How to set a default user group
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This shows you how to make members that register on your forum automatically be placed in the group of your choosing.

If you have email verification enabled, this edit is pointless.


Open ./member.php

Find:
// Set up user handler.

Replace with:
if ($usergroup == 2)
$usergroup = 10;

// Set up user handler.

Replace the 10 with the group ID that you want to place new users in.
(2011-09-14, 09:09 PM)Masayoshi Wrote: [ -> ]This shows you how to make members that register on your forum automatically be placed in the group of your choosing.

If you have email verification enabled, this edit is pointless.


Open ./member.php

Find:
// Set up user handler.

Replace with:
if ($usergroup == 2)
$usergroup = 10;

// Set up user handler.

Replace the 10 with the group ID that you want to place new users in.

hi thanks for this post, but can you please tell me where is usergroup id written? i don't know what is the id of the user group i want new user to go in, as soon as they register
So this is just a script to skip over applicant or member to another group? Wouldn't it be more efficient to make the actual default group do whatever you want it to?
yes right! thanks Smile