CB Auto Actions: redirect conditional

12 years 4 months ago #186025 by cbrace
Hi all,

I've just upgraded our site to CB 1.7.1. After doing so, I took the opportunity to install Auto Actions v2.1 from Incubator.

One question about redirects:

I had previously configured two redirects with CB Redirect. I would like to set these up in Auto Actions. It all looks pretty straightforward, except for one minor detail:

In the old Redirect plugin, the first field next to Conditional was a drop-down menu listing CB fields.

In the new plugin, it is a plain text field.

For example, for one redirect, I had this configured in the old plugin:



How do I indicate a field name in the new plugin? Simply entering "Last Online" doesn't appear to work.

Thanks.
Attachments:

Please Log in to join the conversation.

12 years 4 months ago #186035 by krileon
Replied by krileon on topic Re: CB Auto Actions: redirect conditional
As instructions explain next to the condition fields they are both substitution supported. This gives far significantly more power then the drop-down could ever provide. Your above condition would be as follows as substitutions.

[lastvisitdate] Equal To 0000-00-00 00:00:00


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 to join the conversation.

12 years 4 months ago #186045 by cbrace
Replied by cbrace on topic Re: CB Auto Actions: redirect conditional
Thanks. Yes, I saw the text, but I am afraid I don't know what "substitutions" in this context means. Is this a PHP programming feature or a characteristic of CB?

Please Log in to join the conversation.

12 years 4 months ago #186082 by krileon
Replied by krileon on topic Re: CB Auto Actions: redirect conditional
Please see tutorials within my signature for substitution usage information. It's a form of API and where supported allows you to easily grab user field values, tabs, and much more.


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: cbrace

Please Log in to join the conversation.

11 years 6 months ago #213506 by cesarmtz
Replied by cesarmtz on topic Re: CB Auto Actions: redirect conditional
I was able to send the user when he registered to a group based on a field value. Now I want this user to be added to a new group since he meets a second criteria. This is a conditional field, Yes or No. I tried using in the substitution box the field name but it did not work. I read the tutorial but I did not find any answer. Could you help me here, please?

Please Log in to join the conversation.

11 years 6 months ago #213537 by krileon
Replied by krileon on topic Re: CB Auto Actions: redirect conditional
[cb_myfield] Equal To Yes

If you want to match Yes or No you'd do the below for example

[cb_myfield] Is REGEX /Yes|No/

"cb_myfield" will need to be adjusted to match your actual field name.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.194 seconds

Facebook Twitter LinkedIn