Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

connect user to k2 group

11 years 7 months ago #227603 by matthewdavey
Replied by matthewdavey on topic connect user to k2 group
I would like a plan that at registration you have to select one in about 500 K2 usergroups to select from in a menu of some sort so on join you become able to edit that category or if possible the option of making a new k2 user group on sign up and selecting one from 500 k2 categories to join the new k2 user group to.

I have played about with auto actions but cant get it to work could you supply me with a screen shot of the auto actions configuration or is there some detailed tutorials on auto actions I have seen www.joomlapolis.com/support/tutorials/107-use-cases/18237-assigning-usergroup-based-on-cb-field-value but I want to join k2 user groups to category not ACL groups
The topic has been locked.
  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
11 years 7 months ago - 11 years 7 months ago #227620 by krileon
Replied by krileon on topic connect user to k2 group
Create a K2 action with all the same configuration as the usergroup usage tutorial and set "Mode" to "Synchronize" then adjust "User Group" as needed. As you have 500 K2 usergroups, you'll need 500 K2 actions; so this probably isn't the most practical usage for your scenario. You may want to use a query action and give them a K2 usergroup directly with database queries if possible so it can be done in 1 action.


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.
Last edit: 11 years 7 months ago by krileon.
The topic has been locked.
11 years 7 months ago - 11 years 7 months ago #227624 by matthewdavey
Replied by matthewdavey on topic connect user to k2 group
Ok how do I do that? I would like to be able to make a new k2 user group on sign up and select one from 500 k2 categories to join the new k2 user group to is that posible ?
Thanks
Last edit: 11 years 7 months ago by matthewdavey. Reason: better discription one message insted of two
The topic has been locked.
  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
11 years 7 months ago #227634 by krileon
Replied by krileon on topic connect user to k2 group
Yes, that's possible, but you're going to have to code it. K2 action can only add 1 usergroup per action, it's not dynamic, so you'd need 500 actions to add those K2 usergroups based off a dropdown for example. There is no action for creating K2 usergroups so you'd need to develop one or use a Query action and insert the usergroup using a database query.


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 topic has been locked.
11 years 7 months ago #227677 by matthewdavey
Replied by matthewdavey on topic connect user to k2 group
How do I go about using a Query action and insert the usergroup using a database query. What is that? When I bought CB I thought I could select k2 categories user groups to join like group jive I thought it was the same now I realize I have k2 user groups groupjive user groups and ACL user groups. what is a Query action I'm not a programmer? This is the missing link in my project I need either like a drop down menu or a categorized list to select a category from to join like autojoin groupjive and like a text field in which to put my new usergroup name can a Query action do that? Praying Thanks
The topic has been locked.
  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
11 years 7 months ago #227694 by krileon
Replied by krileon on topic connect user to k2 group

When I bought CB I thought I could select k2 categories user groups to join like group jive

K2 has nothing to do with CB so I don't understand how you came to this impression. I apologize if you were mislead in any way. The K2 action is there to keep users synchronized with K2. Users don't select their own K2 usergroups, not even in K2 it self; they are given to the user by an admin. The K2 action will let you synchronize a CB profile to K2 as well as set their K2 usergroup at the same time; it does nothing more than that. There is no field to select a K2 usergroup to join or anything of the sort.

now I realize I have k2 user groups groupjive user groups and ACL user groups

GJ is irrelevant to both K2 usergroups and ACL usergroups. GJ is user created community groups. They provide no access controls. K2 usergroups and ACL usergroups are to provide access controls to content. K2 usergroups only work inside of K2 as well.

what is a Query action I'm not a programmer?

It performs a database query on the trigger(s) you've selected. You may need to hire someone to do this for you or develop a plugin to fit your needs.

This is the missing link in my project I need either like a drop down menu or a categorized list to select a category from to join like autojoin groupjive

No such thing exists. You'd need to create a new CB select field with your 500+ K2 usergroups then create a Query action that acts on the after registration and after profile update triggers that updates or inserts their K2 usergroup. They can not create K2 usergroups so it needs to be from your predefined list.

To be honest I find it extremely hard to understand the usecase of this though. Why do you need so many K2 usergroups? They are only used for K2 category access and limited amount of permissions, which you can equally use ACL usergroups/view access levels for.


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 topic has been locked.
Moderators: beatnantkrileon
Powered by Kunena Forum