3

Joomla 3.9.14

I have a URL example.com/training/register, this displays a default Joomla user registration form.

Within Joomla I have various user groups;

 - Guest
 - Registered
 - - Training
 - - Sport
 - - Finance
 - Administrator

When a user registers on my site at example.com/training/register how can I automatically add them to the Training user group?

In the future I'll also need to do the same thing for other user groups and URLs, e.g;

  • Register at URL example.com/sport/register > Add to group Sport
  • Register at URL example.com/finance/register > Add to group Finance

Maybe I could use the Joomla User Profile plugin with a custom field that displays a dropdown of available categories (Training / Sport / Finance). Based on this selection the user would be added to the corresponding group?

I'm also open to suggestions for third party extensions.

3

1 Answer 1

3

Briefly, these are your main options:

  1. Write a custom user registration component
  2. Write a User Plugin that will handle the usergroup of the registered users
  3. Use 3rd party Form extensions which integrate with JUsers and create your custom form(s)
    A few form extensions that work well for this use case:

A few more links that can be of help:

JSE Links:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.