1
phatjew
How to change default group when user registers
  • 2003/10/17 21:36

  • phatjew

  • Just popping in

  • Posts: 56

  • Since: 2003/10/8


I apologize if this has been answered before -- I searched the forums with "register", "default", and "group" in various permutations for 30 minutes but I could not find it.

I am using v2.0.5, and I can't figure out how to change the default group that users are put in when they register.

Can anyone help?

--Rafi

2
onokazu
Re: How to change default group when user registers
  • 2003/10/17 21:40

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


This cannot be changed, unfortunately. The users are always registered to a group with an ID defined for XOOPS_GROUP_USERS in mainfile.php of your site.

3
Jack404
Re: How to change default group when user registers
  • 2003/10/18 1:52

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


Quote:

onokazu wrote:
This cannot be changed, unfortunately. The users are always registered to a group with an ID defined for XOOPS_GROUP_USERS in mainfile.php of your site.


All you'd have to do is change the XOOPS_GROUP_USERS value to the new default group number, theoretically. I'm not sure if this would mess anything up in the XOOPS core, but I think that should do the trick.

Good luck!

4
phatjew
Re: How to change default group when user registers
  • 2003/10/18 16:30

  • phatjew

  • Just popping in

  • Posts: 56

  • Since: 2003/10/8


I noticed those lines in Mainfile.php before, and they concerned me at that time. If I want to add new groups, should they also get global defines for them, like this:

define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');
define('XOOPS_GROUP_STAFFWRITER', '4');

Do these have to be added manually, or are they unnecessary?

--Rafi

Login

Who's Online

170 user(s) are online (82 user(s) are browsing Support Forums)


Members: 1


Guests: 169


heyula,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits