Skip to Content Skip to Menu

CB Auto Actions to add User in Joomla Group if he Join GroupJive Group

  • LtColFox
  • LtColFox
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
7 years 6 months ago #293289 by LtColFox
Hello all,

my Name is Fox and i am new here :)

I struggeling to bring the following to work:

After a User is added to a specified GroupJive Group, the Auto Action should them put in the specified Joomla Group.

My problem is that I have no clue how to Configure the Conditions Part of the Auto Action in the second Tab.

My Auto Action looks as follows:

Condition on first Tab is: gj_anAfterJoinGroup

The Action on third Tab is: Add to specified Group

If i try it, it works and add users to specified group no matter wich GroubJive Group they joinned.

I like to filter it that this only happen if they joun a specific group.

Can somone tell me how i can configure it that it only moves the user in the specified group?

Thank you soooo much :)

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48449
  • Thanks: 8280
  • Karma: 1443
7 years 6 months ago - 7 years 6 months ago #293293 by krileon
The below should work even with approval based groups or when forced to join from backend, etc..

Global
Triggers: gj_onAfterUpdateUser, gj_onAfterCreateUser
Type: Usergroup
User: Automatic
Access: Everybody
Conditions
1: [var1_status] Greater Than or Equal To 1
2: [var1_group] Equal To GROUP_ID_HERE
Action
Mode: Add Usergroups
Groups: SELECT_YOUR_USERGROUPS_HERE

That should give them the specified usergroups if they're joining the specified group and are active. To remove the usergroups when they leave you'd need the below.

Global
Triggers: gj_onAfterDeleteUser
Type: Usergroup
User: Automatic
Access: Everybody
Conditions
1: [var1_group] Equal To GROUP_ID_HERE
Action
Mode: Remove Usergroups
Groups: SELECT_YOUR_USERGROUPS_HERE


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: 7 years 6 months ago by krileon.
The following user(s) said Thank You: endoc

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

  • LtColFox
  • LtColFox
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
7 years 6 months ago - 7 years 6 months ago #293299 by LtColFox
Great!! Thank you very much for the help :)
Last edit: 7 years 6 months ago by LtColFox.

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

Moderators: beatnantkrileon
Powered by Kunena Forum