Skip to Content Skip to Menu

Auto Action to add user to Group Jive group

10 years 2 weeks ago #250870 by pheinrichs
Hi. I'm looking for the condition to add a user to a GJ group based on their Joomla User Group. If user Billy is in Joomla User Group A they would be added to GJ group A. Conversely, if Billy is no longer part of Joomla user group A, they would be removed from GJ group A. I believe that I am using:

Type: Groupjive
Trigger: After User Login
Action: Join Group or Leave Group
Condition: ?? I'm assuming it would be Does Contain or Does Not Contain but not sure what to put in the first box (ie Group, Usergroup etc?).

You have a listing of the various triggers. Is there a listing of the various conditions? How do I know what to put in there?

Thanks

Paul

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
10 years 2 weeks ago #251003 by krileon
Replied by krileon on topic Auto Action to add user to Group Jive group
Don't condition for usergroup. Just select the usergroup you want the action to apply to for Access. There's not really a way to test that they're not in a specific usergroup though as there's no real event for that or condition for that.

There is no list of conditions as they're raw HTML, text, or substitutions. You can find substitution usage information below though.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb

If you really need to test for a usergroup in a condition you can try using the below type usages.

Left: [cb:if gids includes "2"]1[/cb:if]
Operator: Equal To
Right: 1

The above has a substitution IF statement that checks if the user is a Registered user. If they are it'll return a 1 and cause the condition to match.


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