Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

Assigning usergroup based on CB field values - Using CB Auto Action Query

  • MMDoege
  • MMDoege
  • OFFLINE
  • Posts: 98
  • Thanks: 3
  • Karma: 0
5 years 6 months ago #312439 by MMDoege
I'm afraid I can't use the usergroup type of CB Auto Action.

For many reasons I have to use a language tag and a user profile type for 3rd party applications, CB GJ and Blogs.
Access to CB GJ groups will be managed by the group's access type of its category assignment.

There are actually 6 languages and 6 profiles provided summing up to 36 varities of Joomla User Groups (like "it-IT4" for italian and profile 4).
Or ... when using the usergroup CB Auto Action feature = 36 Auto Actions.

I'ld rather opt-in for a SQL statement directly writing the usergroup/access definition with an Query CB Auto Action -- like:

update TABLE_HERE set COLUMN_NAME_HERE = concat('[cb_language_tag]','[cb_profile_selector]');

But what is the correct table and column? And ... is this methode reliable?

Thanks.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48554
  • Thanks: 8292
  • Karma: 1445
5 years 6 months ago #312443 by krileon
Seams like it'd be easier to simply create 36 auto actions and handle the the cb_language_tag and cb_profile_selector check in the conditions. If you still want to do this directly in SQL then review the _user_usergroup_map database table carefully as it's responsible for holding usergroup assignments for users. You will likely need to do a subquery or join of _usergroups if you don't have the usergroup id and are trying to find it from usergroup title.


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.
The following user(s) said Thank You: MMDoege

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

Moderators: beatnantkrileon
Powered by Kunena Forum