Skip to Content Skip to Menu

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

Adding your own events to activity stream

  • iamlove
  • iamlove
  • OFFLINE
  • Posts: 20
  • Thanks: 2
  • Karma: 1
  • Add-ons
11 years 8 months ago - 11 years 8 months ago #220632 by iamlove
I followed your tutorial and everything works, however, the first time the user updates their status it shows this in the activity stream: "removed From Feeling Happy" I assume the removed is due to the fact the field is blank initially. Is there a way to remove the word remove on the first update of the field? Thanks!

Tutorial link

Meditation for Health
www.seekwithinyou.com
"The doctor of the future will give no medicine, but will interest his patients in the care of the human frame, in diet, and in the cause and prevention of disease." Thomas Edison
Last edit: 11 years 8 months ago by iamlove.

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

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

iamlove wrote: I followed your tutorial and everything works, however, the first time the user updates their status it shows this in the activity stream: "removed From Feeling Happy" I assume the removed is due to the fact the field is blank initially. Is there a way to remove the word remove on the first update of the field? Thanks!

Tutorial link


I guess you would need to create 2 auto actions.
Both triggered off the same events as in the tutorial.

One should have a condition to check if your field has changed (just like in the example) and another condition to check if the initial value was empty. Then just format the messages as you want for this case.

The second one should be like the example in the tutorial with an additional condition (the + button is used to add it) that checks if the previous value was not empty.

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

  • iamlove
  • iamlove
  • OFFLINE
  • Posts: 20
  • Thanks: 2
  • Karma: 1
  • Add-ons
11 years 8 months ago - 11 years 8 months ago #220653 by iamlove
Replied by iamlove on topic Adding your own events to activity stream
I will describe my setup here based on the after user update profile event.

Condition 1: [var1_cb_myvibrationalstatus] not equal to [var3_cb_myvibrationalstatus]
Condition 2: [var3_cb_myvibrationalstatus] not empty

The From field is: [var3_cb_myvibrationalstatus]
The To field is: new status of [var1_cb_myvibrationalstatus]

When I have the auto action setup this way, it does not show anything when the original value is empty. Just the required title I have given it "Changed Vibrational Level". It does not show the To field. This is fine, however, it still updates the activity wall. Therefore, when I add the second auto action, I get two updates on the activity wall with one being blank.


One last thought. Is there a way to have the drop-down field, "prefilled" with a value?

Meditation for Health
www.seekwithinyou.com
"The doctor of the future will give no medicine, but will interest his patients in the care of the human frame, in diet, and in the cause and prevention of disease." Thomas Edison
Last edit: 11 years 8 months ago by iamlove.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48457
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago #220698 by krileon
Replied by krileon on topic Adding your own events to activity stream
The display is a language string. It's also displaying properly. The language string is as follows.

'removed [from]' => 'removed [from]'

If there is a to value then the language string is as follows.

'[from] to [to]' => '[from] to [to]'

One last thought. Is there a way to have the drop-down field, "prefilled" with a value?

Only at registration. Alternative is to try using the before profile edit display trigger and alter the user object with a Fields action to change the value of the field if the field is empty.


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.

  • iamlove
  • iamlove
  • OFFLINE
  • Posts: 20
  • Thanks: 2
  • Karma: 1
  • Add-ons
11 years 8 months ago - 11 years 8 months ago #220716 by iamlove
Replied by iamlove on topic Adding your own events to activity stream
Thanks! I want to try the fields auto action so can you walk me through this?

I have it setup like this:

1. conditional: [var3_cb_myvibrationalstatus] = empty
2. field: vibrational status
3. operator: Set(Field=value)
4. value: ???? I want to set the value to one of the drop down select options. What substitutions would I use for this?

Meditation for Health
www.seekwithinyou.com
"The doctor of the future will give no medicine, but will interest his patients in the care of the human frame, in diet, and in the cause and prevention of disease." Thomas Edison
Last edit: 11 years 8 months ago by iamlove.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48457
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago #220719 by krileon
Replied by krileon on topic Adding your own events to activity stream

I want to set the value to one of the drop down select options. What substitutions would I use for this?

You don't use a substitution, just specify the value you want to set it to. There is no substitution to get a dropdown fields options.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum