1
cydud3
Change default group
  • 2004/10/18 15:51

  • cydud3

  • Just popping in

  • Posts: 50

  • Since: 2004/6/10


When registering, new users are automatically put to the Registered Users group. I created another custom group in addition to this and renamed Registered Users to something else. My question is, is there a way to change the default group? When users register, they should be put into the new custom group instead of Registered Users.

2
Mithrandir
Re: Change default group

line 211 in register.php:
if (!$member_handler->addUserToGroup(XOOPS_GROUP_USERS$newid)) {


change XOOPS_GROUP_USERS to the ID of this custom group

3
cydud3
Re: Change default group
  • 2004/10/28 13:30

  • cydud3

  • Just popping in

  • Posts: 50

  • Since: 2004/6/10


I'm not quite sure how to do this so I hope you can clarify for me. Suppose the groupid of my new group is 4. Am I correct in saying that I should change

if (!$member_handler->addUserToGroup(XOOPS_GROUP_USERS$newid)) {


to

if (!$member_handler->addUserToGroup(4$newid)) {

4
zoullou
Re: Change default group
  • 2004/10/28 13:35

  • zoullou

  • Quite a regular

  • Posts: 250

  • Since: 2004/3/2 0


It's correct

5
ejuden01
Re:Change default group
  • 2004/10/28 14:24

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


You might check out the Registration Keys module. It sounds like it might help you out some. I haven't used it, but I was surfing through the module repository and found it.

6
cydud3
Re:Change default group
  • 2004/10/28 14:56

  • cydud3

  • Just popping in

  • Posts: 50

  • Since: 2004/6/10


Quote:

ejuden01 wrote:
You might check out the Registration Keys module. It sounds like it might help you out some. I haven't used it, but I was surfing through the module repository and found it.


This looks like a great solution but it seems like the module is more complicated than just changing a line on one file. Besides, it looks like the author used version 2.0.6 when making this module. Anybody have success using this module on current version of xoops?

7
m0nty
Re:Change default group
  • 2004/10/28 16:42

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


yes it does work with the latest version :)

Login

Who's Online

124 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 124


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