Forums

form to create joomla-user and usergroup

Topzone 22 Nov, 2015
Is it possible to create a form that saves info to the original joomla user-table and also add them to different usergroups on base of their choise in a radio-box?

I want people to take a subscription (+ possibility to take more then one) on my website. They are not yet registred as user. When they have a subscription (or multiple) they have to get access to certain pages.
Because of the login to make some pages visible, I think I have to (also) have the subscribers in the original joomla-user tables?

So I was thinking of making a form with the original user-joomla fields (name, loginname, e-mail, 2 times password), this info has to put in the original-user-table and also in a cf-table (of only the user-id in cf), then I make some extra fields (telephone, billing-info, accept terms) they have go to the cf-table, and then I make a radio-box so they have to select with subscription they want (more subscriptions possible). That radio-box also has to set the user-groups they belong to, so I can show them the pages.

Is this possible and the right rout or does anyone has other suggestions?
Thanks, Wilma.
GreyHead 23 Nov, 2015
Hi Wilma,

Use the Joomla! Registration action to register your users and assign them to a basic group e.g. Registered and possibly a new custom group to identify these subscribers.

Use the new User ID to save the extra information in your CF table - do not duplicate any of the Joomla! User info except the User ID.

Use a Custom Code action to read the values from the Radio Button Group and add more User Groups as needed using the Joomla! User methods.

Bob
This topic is locked and no more replies can be posted.