ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Type of users

rafaelscouto 27 Nov, 2017
Good morning, I have a registration form and I need to link it to some types of users.

These users will have access to certain pages, which will differ according to the type of user.

These types are:

Administrator, manager, accredited, client and administrative assistant. You may have other types in the future.

I have already managed to save the data in database and bind to the joomla user system, in case, whenever I make a new registration it already list as user joomla.

I just do not know how to link these new users to the type of access I want.

Help me
GreyHead 28 Nov, 2017
Hi rafaelscouto ,

You can set a form variable in the User Group of of the Joomla! User action - if you change the value of the variable you can add different users to different groups.

Bob
rafaelscouto 30 Nov, 2017
Okay, I think I got it.

I have another problem, there is a field called "CPF" which uses the following mask "xxx.xxx.xxx-xx". The problem is that this field will be used as a joomla login password.

And he's saving the numbers along with the dots and dash.

How do I get only the numbers?

I'm using the Save User option
GreyHead 30 Nov, 2017
Hi rafaelscouto ,

There is an option for the Input Mask to removeMaskOnSubmit - see the docs here

You could alternatively use the PHP FILTER_SANITIZE_NUMBER_INT to clean it after submission.

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

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com