Skip to Content Skip to Menu

GJ question combined with Auto action

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
10 years 2 days ago #252367 by timstohr
GJ question combined with Auto action was created by timstohr
Hi

I would like to do the following:

I have a GJ group called girls only. I would like that anyone who joins the group gets automatically put into the Female ACL of Joomla.

Using Auto Action I get as far as [GJ-After join group] [xxxxxxxxxxxx] [Gender set field value to Female]

(I then have a second auto action that takes over and puts the person into the female ACL)

Are the groups stored in MySQL? Or what denominator do you have in there? What do I have to set the conditions as?

Btw I find Auto Actions very useful and a great idea.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 1 day ago #252415 by krileon
Replied by krileon on topic GJ question combined with Auto action
Act on the after join group trigger. You can then access the group object variables from variable 2. So you'd check against the group id using [var2_id]. The GJ user object is in variable 1. The group category object is in variable 3. The CB user object is in variable 4.

So you'll probably want to condition against the group id to ensure it's your girls only group. You can find the group id in backend in the far right column. Then condition it as follows.

Conditional 1: [var2_id] Equal To GROUP_ID_HERE
Conditional 2: [cb_gender] Equal To Female

You can use whatever action you want, but in your case you'd use the Usergroup action to give them a new 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.
The following user(s) said Thank You: timstohr

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

Moderators: beatnantkrileon
Powered by Kunena Forum