- Posts: 5
- Thank you received: 0
Prevent Registration to Default User Group
- Scott
- Topic Author
- Offline
- New Member
Less
More
11 years 10 months ago #24667
by Scott
Prevent Registration to Default User Group was created 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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
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:
After that, please try again.
Tuan
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.
- Scott
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
11 years 10 months ago #24748
by Scott
Replied by Scott on topic Re: Prevent Registration to Default User Group
That did it. Thanks again for your help, Tuan!
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.