Skip to Content Skip to Menu

new auto action

  • jolo32
  • jolo32
  • OFFLINE
  • Posts: 18
  • Thanks: 3
  • Karma: 0
8 years 3 weeks ago #289489 by jolo32
new auto action was created by jolo32
Can I set up a new auto action trigger that sends out an email if someone does a comment on a photo in CB Gallery?

What I now already:
table: #_comprofiler_plugin_activity_comments
type: gallery photo
item: ID of the photo

Is s possible to set up new triggers?
And could a mail like this?
"XX did a comment on photo [thumbnail] in the community."

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48722
  • Thanks: 8320
  • Karma: 1447
8 years 3 weeks ago - 8 years 3 weeks ago #289518 by krileon
Replied by krileon on topic new auto action
There's the activity_onPushComments trigger, but no that's not really doable right now. The problem is the owner of that gallery entry is who you'd need to send the notification to and that information isn't available to CB Auto Actions as the trigger doesn't contain enough information. This is being fixed in CB Activity 4.0.0 where I'll be improving the API and the triggers significantly.


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: 8 years 3 weeks ago by krileon.

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

  • jolo32
  • jolo32
  • OFFLINE
  • Posts: 18
  • Thanks: 3
  • Karma: 0
8 years 3 weeks ago #289525 by jolo32
Replied by jolo32 on topic new auto action
I understand.

But is it currently be possible to use this trigger and put a short feed in the CB Activity list? It is then an information for all members.
Would be an alternative.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48722
  • Thanks: 8320
  • Karma: 1447
8 years 3 weeks ago #289529 by krileon
Replied by krileon on topic new auto action
The issue comes full circle back to you being unable to substitute in the owner of the photos information. This means you've no way of linking it to the owner of the photo. So no that's probably not very doable either. Once the Asset column is implemented it'll include more targeted information such as the following.

gallery.profile.PROFILE_ID.photos.PHOTO_ID

This usage will be replacing Type, Subtype, Parent, and Item columns entirely. It contains the owner of the entry and the entry id, which should allow triggers to send emails or PMs for example based off that profile id. The above is just an example though as I don't know yet how I'm going to format the assets for various plugin activity nor how it's going to migrate properly on install.

Ideally it should format it as follows.

gallery.GALLERY_ASSET.ITEM_TYPE.ITEM_ID

So lets say I upload a photo to my profile gallery then it becomes the following for example.

gallery.profile.42.photos.12

This is predictably parseable so CB Activity theoretically should be able to rebuild the objects. For albums you'd just have the following.

gallery.profile.42.album.9

Looking further into the future for GJ you'd have the following.

groupjive.global.group.3

The default asset for GJ will be "global" which is independent from the owner and user_id of the activity entry it self would just be the group owner most likely.

This is all a bit confusing right now I'm sure, but I haven't even started on this API so I can't really be any more clear than what is to come until I've started implementing it. There probably needs to be a way for CB Gallery to extend CB Activity and rebuild the gallery object so you'd have access to the gallery object and the photo object through CB Gallery, but I don't know yet.


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

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

  • jolo32
  • jolo32
  • OFFLINE
  • Posts: 18
  • Thanks: 3
  • Karma: 0
8 years 3 weeks ago #289536 by jolo32
Replied by jolo32 on topic new auto action
Thanks Kyle for your detailed answer, although it is quite complex for me as a non-programmer. But I get the context, so I will check out the next release.

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

Moderators: beatnantkrileon
Powered by Kunena Forum