Skip to Content Skip to Menu

[SOLVED] CB Auto Action ?

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
10 years 1 week ago #251972 by krileon
Replied by krileon on topic CB Auto Action ?
You can add &actions=AUTO_ACTION_ID (this can be a comma separated list) to the URL for it to run only a specific auto action if you want, but aside from that no there is no built in scheduling; that should be done at CRON.


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.

10 years 3 days ago #252209 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
In CB Auto Action I use an action type "Query" and two conditions. If one of the two conditions is not satisfied the action is not performed.

Ex:
field 1 = a
field 2 = b

If field 1 = a, field 2 = b then field 3 = "Ok" it works (insert "OK" in the field 3)
If field 1 = a, field 2 = h then field 3 = "No" does not work (do not insert "No" in the field 3), because the condition is not satisfied.

Is it possible to set the clause "OR"?
So: If field 1 = a, field 2 = h then field 3 = "No" so as it works?

or I must to create an Auto Action for each condition?
Thanks.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
10 years 3 days ago #252246 by krileon
Replied by krileon on topic CB Auto Action ?

If one of the two conditions is not satisfied the action is not performed.

Correct, that's how it's designed to work.

Is it possible to set the clause "OR"?

No.

or I must to create an Auto Action for each condition?

No, you can use a REGEX operator. You condition should be as follows.

Field 1 - Equal To - a
Field 2 - Is REGEX - /^b|h$/
Field 3 - Is REGEX - /^Ok|No$/

The | usage in regex is OR so you can match multiple values on a single field. You would only need to create duplicate actions if you needed to condition different fields entirely.


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.

10 years 1 day ago #252360 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
With CB 2.0.2 and 6.0.1 CB Auto Action, trigger "Internal Users" within a single Auto Action works fine (see screenshot 1). If it is operated by the general Internal Users URL (see screenshoot 2) does not work, that is, does not perform any Internal Users.
Where am I wrong?
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
10 years 18 hours ago - 10 years 18 hours ago #252412 by krileon
Replied by krileon on topic CB Auto Action ?
Internal Users URL parses through all your active users and executes the action on them. Internal Action URL directly executes the action on the viewing user (so basically your self if you click it and are logged in). Looks like the Internal Users URL is malformed though as it's missing the plugin element. Will fix for next release. For now just add &plugin=cbautoactions to the URL.


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: 10 years 18 hours ago by krileon.

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

9 years 9 months ago #257925 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
With CB 2.0.5 CB Auto Action 6.2.1 is it possible to add a menu item to the CB Menu that is visible only if users are in friendship among them?
I tried it in different ways crossing the data of the table "comprofiler_members" but I can not.
Thank You.

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

Moderators: beatnantkrileon
Powered by Kunena Forum