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 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

auto action for set field when change group

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
6 years 4 months ago - 6 years 4 months ago #306041 by saman2
hi
i want set field value to 1 when admin edit the usergroup of group to G1.
for example if admin go to user profile from backend in community builder>user managment and then set the usergroup to G1 , then field A = 1 and if remove that user from G1, then set field A = 0 .
1-how to do that? i use batch tools to change the bulk usergroups of my users.for example set usergroup for 100 user.
look at my pic please, when i use this way i need to 2 time simply save for set field A. (also i use query type of auro action and field not work for me...)
2-why CB not have "add to" in batch tools?
Attachments:
Last edit: 6 years 4 months ago by saman2.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
6 years 4 months ago #306043 by krileon
Replied by krileon on topic auto action for set field when change group

1-how to do that? i use batch tools to change the bulk usergroups of my users.for example set usergroup for 100 user.
look at my pic please, when i use this way i need to 2 time simply save for set field A. (also i use query type of auro action and field not work for me...)

I've no idea what event Joomla fires when using the batch tool to add usergroups. You don't need a Query action for this though. Simply use a Field action if you're just changing a fields value. As for conditions you should only need the following.

Has Usergroup:
[cb:if usergroup includes "USERGROUP_ID"]PASS[/cb:if] Equal To PASS

Does Not Have Usergroup:
[cb:if usergroup !includes "USERGROUP_ID"]PASS[/cb:if] Equal To PASS

2-why CB not have "add to" in batch tools?

Because it was never implemented. I don't really know how to answer that question.


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.

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
6 years 4 months ago #306046 by saman2
Replied by saman2 on topic auto action for set field when change group
i use setting that show in attached picture.is it right?
i want when my user is in group 177, set field to 1 else set to 0.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
6 years 4 months ago #306047 by krileon
Replied by krileon on topic auto action for set field when change group
Set Translate Value to No. There's no reason to run a value of 1 or 0 through language parsing. Then just remove your conditions and yes that should work fine.


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.

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
6 years 4 months ago #306048 by saman2
Replied by saman2 on topic auto action for set field when change group
is there anyway in CB to do some thing such as "add to" group ?
if i want select users from different usergroup and assign one group to all of them what need to do via CB? for example i have 1000 user (in real more that 6000 user) and want to assign one more group to 500 user of my 1000 but 50 user has a G1 and 100 user have G1 and G2 and 70 users have G3 and... (G is their usergroup)

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
6 years 4 months ago #306061 by krileon
Replied by krileon on topic auto action for set field when change group

is there anyway in CB to do some thing such as "add to" group ?

In CB > User Management? No, use the bath usergroup tool there will replace their usergroups with those selected. You can safely use Joomlas bath tool for this in Users > Manage.

if i want select users from different usergroup and assign one group to all of them what need to do via CB? for example i have 1000 user (in real more that 6000 user) and want to assign one more group to 500 user of my 1000 but 50 user has a G1 and 100 user have G1 and G2 and 70 users have G3 and... (G is their usergroup)

There's no functionality for that in CB > User Management. You can filter the list of users down to a specific usergroup then batch replace their usergroup, but you can't batch add to their usergroups or batch remove a specific usergroup.


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