Skip to Content Skip to Menu

cb autoaction condition how works?

  • saman2
  • saman2
  • ONLINE
  • Posts: 404
  • Thanks: 7
  • Karma: -1
6 years 6 months ago #304070 by saman2
cb autoaction condition how works? was created by saman2
hi
i want run some auto action for user not in some Jusergroups. for example i want show message to user that not in Group 1 and Group2.
also i want if user has Jaccess 1 and acl2 or acl3.
i know [gids] is a good subsitioun for group.
1-what is subsition for Acl?
2-condition tab in auto action how work? when we add condition in that is it do "AND" or "OR" with previous row? what about with previous autoaction?
3-can i use multy usergroupID in one value field in cb autoaction seperate with "," ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 6 months ago #304084 by krileon
Replied by krileon on topic cb autoaction condition how works?
Select the usergroups you want the auto action to apply to in the Access parameter under the Global tab. There is no substitution for usergroups beyond IF substitutions as documented at the bottom of our substitution tutorial below.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb

There are no OR conditions in CB Auto Actions at this time. If any of the conditions supplied are not met it will fail to execute the auto 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.

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

  • saman2
  • saman2
  • ONLINE
  • Posts: 404
  • Thanks: 7
  • Karma: -1
6 years 6 months ago - 6 years 6 months ago #304089 by saman2
Replied by saman2 on topic cb autoaction condition how works?

krileon wrote: Select the usergroups you want the auto action to apply to in the Access parameter under the Global tab.

thank you kyle but i have more than 100 usergroup and i want exclude only some user group.
i use attached picture according your help in other post and it seems work. have you any note about what i doing?is it safe?

i use
[cb:if usergroup includes "444" || usergroup includes "333" || usergroup includes "222"]1[/cb:if] NOT Equal To 1
Attachments:
Last edit: 6 years 6 months ago by saman2.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 6 months ago #304094 by krileon
Replied by krileon on topic cb autoaction condition how works?
Then you have to use an IF substitution to match against a usergroup to do that. Example as follows.

[cb:if usergroup includes "USERGROUP_ID_HERE"]DENIED[/cb:if] Not Equal To DENIED

Replace USERGROUP_ID_HERE as needed.

i use attached picture according your help in other post and it seems work. have you any note about what i doing?is it safe?

It's 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.
The following user(s) said Thank You: saman2

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

Moderators: beatnantkrileon
Powered by Kunena Forum