Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] AutoAction - master / slave setup

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
8 years 8 months ago - 8 years 8 months ago #277320 by fribse2011
[SOLVED] AutoAction - master / slave setup was created by fribse2011
Hi Guys

J3.4.8
CB 2.0.13
AutoActions 6.3.4

I have made some autoaction that will be triggered by a master autoaction.

I have three master actions.

1) Unsubscription from our club on end of year, flag is set when mail is received, and acted upon on the 31/12
2) Unsubscription automatically by 1st of february, after payment reminders, a member is automatically unsubscribed.
3) Manual and immediate unsubsccription.

The each call some subactions.
Send mail to user
Remove joomla groups from user
Set to non-member.

The second master should have triggered on the 1st of february, but it apparently didn't.

The setup of the second auto-action is:
Global
Triggers: Users
Type: Action
Access: Everybody

Conditions
[cb_rykker] Equal to 1
[cb_type] is REGEX /(Familie|Støtte|Æresmedlem|Junior|Senior)/
strtotime([cb:date format="Y-m-d" /]) Equal To strtotime([cb:date format="Y" /]-02-01)

Once a day I have a CRON on the server calling the Users AutoAction
<span>/</span>usr<span>/</span>bin/wget -O - -q -t 1 " www.dkdb.dk/index.php?option=com_comprofiler&view=pluginclass&plugin=cbautoactions&action=users&token=x&Itemid=x&format=raw " >/dev/null 2>&1

If I click the URL in the CB Auto Actions for Users, then I see a lot of string(x) ":: Action x:: Conditional 1 failed ..." etc. so it does seem to be allowed to run.

Is there a way I can see what the 'master' rule decides. The rule has ID 62, but I don't see 62 mentioned in the list when I 'Click to Process' in the Auto Action for Users.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
Last edit: 8 years 8 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #277341 by krileon
Replied by krileon on topic AutoAction - master / slave setup
Your condition isn't valid.

Code:
strtotime([cb:date format="Y-m-d" /]) Equal To strtotime([cb:date format="Y" /]-02-01)

There is no "strtotime(" type usage anymore. This was completely replaced with a new substitution usage providing a more powerful parsing API. Your usage should be as follows

Code:
[cb:parse function="time"][cb:date format="Y-m-d" /][/cb:parse] Equal To [cb:parse function="time"][cb:date format="Y" /]-02-01[/cb:parse]

See the bottom of the page for further format function usage information.


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

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

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
8 years 8 months ago #277443 by fribse2011
Replied by fribse2011 on topic AutoAction - master / slave setup

See the bottom of the page for further format function usage information.


Under what item is that found?

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #277454 by krileon
Replied by krileon on topic AutoAction - master / slave setup
Under the conditions tab below your conditions. Format functions are disabled for the action it self by default (can enabled under Parameters tab).


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.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
8 years 8 months ago #277516 by fribse2011
Replied by fribse2011 on topic AutoAction - master / slave setup
Ahh, ok, there :-)

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

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

Moderators: beatnantkrileon
Powered by Kunena Forum