Prevent Registration to Default User Group

More
11 years 10 months ago #24667 by Scott
Hello again,

I have my subscriptions mapped to different Joomla user groups. My problem is that no matter what group the subscription is mapped to, the user who signs up also gets added to the Joomla default user registration group. Is there any way to prevent that in the extension's code, or is that something Joomla does? I've looked through the OSMembership Pro Joomla Groups plugin and don't see where I could affect that change. Do you have any alternative suggestions? Thank you.

-Scott

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #24713 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Prevent Registration to Default User Group
Hi Scott

You can try the solution below:

1. Open the file components/com_osmembership/helper/helper.php

2. Save function saveRegistration

3. Find the line of code function below and remove it:
Code:
$data['groups'][] = $params->get('new_usertype', 2);

After that, please try again.

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #24748 by Scott
That did it. Thanks again for your help, Tuan!

Please Log in or Create an account to join the conversation.