Skip to Content Skip to Menu

[SOLVED] Can we add a registered user to a new joomla ACL group on a menu click

  • Simwombat
  • Simwombat
  • OFFLINE
  • Posts: 12
  • Thanks: 1
  • Karma: 0
10 years 7 months ago - 10 years 7 months ago #242387 by Simwombat
Good Day

I have 4 add item menu buttons which allow adding content to 4 different categories. I would like to add a registered member to a new user group depending on the menu item selected and only if they submit the item.
Is that possible with the Usergroup actions part of CB Auto Actions??
I would do this through the registration process but 1 client may want to choose more than one category to enter their items in and a radio button group only allows 1 choice.

Thanks
Sim
Last edit: 10 years 7 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242402 by krileon

I have 4 add item menu buttons which allow adding content to 4 different categories. I would like to add a registered member to a new user group depending on the menu item selected and only if they submit the item.
Is that possible with the Usergroup actions part of CB Auto Actions??

Not quite. I suppose you could somehow use the Internal Users trigger and its CRON URL to do this, but I really don't suggest that approach. You also wouldn't want to expose this URL to a menu item.

I would do this through the registration process but 1 client may want to choose more than one category to enter their items in and a radio button group only allows 1 choice.

You could use a multi-select then just have a CB Auto Actions for each usergroup handling. Then it should work ok for selecting more than 1.


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.

  • Simwombat
  • Simwombat
  • OFFLINE
  • Posts: 12
  • Thanks: 1
  • Karma: 0
10 years 7 months ago #242439 by Simwombat
Thanks Kyle
I will give that a try. Perhaps I will try check box first?? It is my experience that it is easier for a client to check boxes than know how to select more than 1 item in a select group.

Thanks again
Sim

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242450 by krileon
Multi-checkbox would work fine. You'd basically be following the below tutorial.

www.joomlapolis.com/support/tutorials/107-use-cases/18237-cb-auto-actions-assigning-usergroup-based-on-cb-field-value

The exception being your usertype field would be a multi-checkbox and your conditions need to be "Does Contain". Example conditional as follows.

[cb_usertype] Does Contain Student


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.

  • Simwombat
  • Simwombat
  • OFFLINE
  • Posts: 12
  • Thanks: 1
  • Karma: 0
10 years 7 months ago #242463 by Simwombat
Thank you Kyle
I was about to contact you as it was not working. I guess you knew I was in trouble because your last reply gave me the answer.

conditions need to be "Does Contain"

I had equal to..
Thanks for answering my post before I sent it.. lol
I also have it conditional to the previous radio button field to make it visible.
This post is solved. :woohoo:
Works great now thanks.
Sim
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum