1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Changing Default Usergroup for new Registrations

Discussion in 'Troubleshooting and Problems' started by Ranger375, Nov 14, 2010.

  1. Ranger375

    Ranger375 Well-Known Member

    If I wanted users to automatically be placed into X usergroup rather than "registered users" after they register, how can I make this happen?
  2. Ranger375

    Ranger375 Well-Known Member

    nm, I had the 'genius' idea of just changing the name of the usergroup :rolleyes: lol
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Just be sure to keep track of the default groups. The destination group for new users is hard coded as user_group_id 2. Changing the group name is a superficial change.

    When people want to change the destination group for new users I always advise them to simply treat the Registered group as if it were the new group. Set appropriate permissions for Registered just as you would the new group.

    FYI, the default groups are hard coded into this file:


    	public static $defaultGuestGroupId = 1;
    	public static $defaultRegisteredGroupId = 2;
    	public static $defaultAdminGroupId = 3;
    	public static $defaultModeratorGroupId = 4;
    Black1989 and Ranger375 like this.

Share This Page