Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

User registration modification and automated access levels

  • vertti
  • vertti
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
11 years 1 month ago #234472 by vertti
Sorry, don't have the time to read all the well documented information inside forums and site, so asking quickly..

So - just wondering what is easiest way to apply certain acces level to a user after registration automatically?

Meaning now, when user has registrated to the site, access level is
"Registered" as a default.

I have purchased "Community Builder Profile Pro" from JoomDuck for this modification/need, is it the best option? Or can this be modified using CB Auto Actions?

So my basic need/question is can I modify somehow, that access level would be for example "Teachers" or "Students", cause I have big list of articles in a category, that have those access levels.

Some articles are public, some have different access rights.

There is going to be 20-30 registrations per day, so the customer does not have time
to accept users manually to certain access groups.

Under neath you can see article hierarchy.

-Public (Normal articles for public viewing)
-Registered
--Teachers (After registration/log in those who choose category
'Teachers' would see articles that are Public/Teachers)
--Students (After registration/log in those who choose category
'Students' would see articles that are Public/Students)

..So in a nutshell: Registarion process/link would forward the user to a registration page, where user could choose does he want to be registrated as a teacher, or a student.

There would be different fields in registration for those two groups.

After filling the needed information, user would automatically be accepted to those pre-defined access levels.

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

  • vertti
  • vertti
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
11 years 1 month ago - 11 years 1 month ago #234517 by vertti
Ok, I managed to create registration form, where user is assigned automatically to wanted user groups/access levels. Using cb_usertype was the keyword I did not realise earlier.

I am not using "CB Profile Pro" at this moment, is there a good way to have two different user fields to fill?

Meaning the first radio button user is choosing is about the profile type at the moment. Teacher vs. student.

Now there should be different fields the registration form is asking depending which profile type you choose.

* Maybe Conditional plugin?
Last edit: 11 years 1 month ago by vertti. Reason: Learning process ;)

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 1 month ago #234533 by krileon
That's doable with CB Conditional. Please see the below tutorial to get started.

www.joomlapolis.com/support/tutorials/107-use-cases/18336-using-cb-conditionals-to-hide-or-show-fields-or-tabs


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • vertti
  • vertti
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
10 years 11 months ago #237118 by vertti
Ok, this went smoothly.

What if I want to have two different user type buttons where to choose from after user has clicked 'Register' from the login module?

Meaning now when the user clicks 'Register', he is forwarded to the registration directly. And now he is choosing between two different profiles in the same form.

..but could he choose first between the user types and after that he would be filling only that user type form he choosed?

So user chooses to click 'Register' -button. After that he would see two new buttons. Saying "Register as a teacher" and "Register as a student"

If he chooses "Register as a teacher", he could only fill those fields ment fot teachers and the opposite.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #237164 by krileon
You need to create a select type field for them to select the profile type they want at registration. They don't select the type before registration. CB Conditional will dynamically alter the registration form to remove any non-relevant fields, etc.. as the conditionals are ran through.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum