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] Auto Actions Triggers list not showing properly

  • GUEST
8 years 10 months ago - 8 years 10 months ago #274479 by
Hi
I am using CB 2.0.12 and just installed CB AUTO ACTIONS but the list of triggers isn't showing properly.

I see from another post that you recommend upgrading to latest nightly of auto actions which ive done but still the same issue

Do you recommend that I upgrade to latest nightly of CB too? if so is that safe to do. EDIT: I found the nightly builds area.

PS what im trying to achieve with auto actions is to being able to store a date in a field when a user updates a particular text area field.... so that we can have a user list that sorts by those users who have most recently updated THAT field in particular.... Is it possible to detect upon user update if they have changed the value in a particular field and then that trigger a date to be put in another field please.

jonathan
Last edit: 8 years 10 months ago by krileon.

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

  • GUEST
8 years 10 months ago #274487 by
Hi, i just found this explanation on how to compare new and old field values

What is the difference between var2 and var3 please?


CB Auto Actions doesn't compare the field values to see what changed. It just logs an activity entry when the profile update trigger is fired. You can grab current raw values with [var1_FIELD_NAME] and old field values with [var2_FIELD_NAME] or [var3_FIELD_NAME] on the profile update trigger if you want to do conditions or display the old field values.

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

  • GUEST
8 years 10 months ago - 8 years 10 months ago #274497 by
I'm close to getting this working but two problems

1) My condition "[var3_cb_whosdoingwhat] IS NOT EQUAL TO [var1_cb_whosdoingwhat]" is triggering even if i don't change the value in the cb_whosdoingwhat field so im not sure what im doing wrong here. any ideas how to compare the old and new values after a profile is saved

2) If the above trigger is actioned then the field I want to populate is a date time field and i want to populate that with the date and time of NOW.... what do I put in the VALUE field for this to work or do i need to use the QUERy action type and if so does anyone have the correct SQL to update the datetime field

EDIT: SOLVED

I upgraded to latest CB nightly build and the trigger lists started looking like it should and the VAR3 and VAR1 field value comparison started working

Not sure if this helped but i also changed the trigger to onBeforeUserUpdate

and this now allows me to store the previous fields value in to another field using [var3_cb_whosdoingwhat]

GREAT :)
Last edit: 8 years 10 months ago by .

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #274500 by nant
Sorry if I miss any answers from your 3 consecutive posts in the thread.

+ Update to latest CB nightly and CB Auto Actions - I think this will fix your trogger display box

+ see this tutorial that should help you understand how to compare before / after values in a CB Auto Action condition:
www.joomlapolis.com/support/tutorials/107-use-cases/18338-cb-auto-actions-adding-your-own-events-to-activity-stream

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

  • GUEST
8 years 10 months ago #274514 by
Thanks Nick

I got there after 5 hours of tinkering :)

Today I discovered the power behind auto actions, cb delimiter fields and how they can be used to string fields together for display on profiles

CB has just become all empowering and my mind is filling with new ideas on how we can improve our site now

THANKS!

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #274531 by nant

wrongjon wrote: Thanks Nick

I got there after 5 hours of tinkering :)

Today I discovered the power behind auto actions, cb delimiter fields and how they can be used to string fields together for display on profiles

CB has just become all empowering and my mind is filling with new ideas on how we can improve our site now

THANKS!


Yup, CB and its addons are extremely powerful and flexible.


FYI - check out our playlist videos here:

www.youtube.com/user/Joomlapolis/playlists

There is one about auto actions.

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

Moderators: beatnantkrileon
Powered by Kunena Forum