CB Activity email-notification for comments only for moderator

8 years 2 months ago #278719 by avateamcom
Hello,

I want to give the site-moderator the possibility to get notifications when someone posts a comment on the activity-stream. I know, email is not the best way to do that, but my customer wants it anyway - only for the moderator of the site, that he gets info about user-action in activity-stream.
(Another good thing would be a notification to the users, when the moderator posted something.)

I tried to get this working with auto actions, but I need to know, if the comment was written on the moderators post. I got stuck when trying around with the variables "var2_message" (I already use this to post the comment in the notification-email successfully). Is there any complete list of variables "var2_type", "var2_message" or something like "var2_userid", where I can get all infos about these vars?
I couldn't find any information about that, there are only a few notes about it in some forum-posts.

Thank you for a quick info!!

Besides, I'm also very interested in a CB notification plugin... ;)

Best regards,
-Stefan

Please Log in to join the conversation.

8 years 1 month ago - 8 years 1 month ago #278755 by krileon
It'll only work if you're using a comment fieldtype using the below usage. It's not possible for CB Auto Actions to do this for the activity stream comments as the comment is linked to the activity entry and not the activity entry user.

Global
Triggers: activity_onPushComments
Type: Email
User: Automatic
Access: Everybody
Conditionals
1: [var2_type] Equal To field
2: [var2_parent] Equal To MODERATOR_USER_ID_HERE
Action
To: Email address of the moderator here

In short you need an auto action per moderator with their id conditioned against and their email address manually added.

Is there any complete list of variables "var2_type", "var2_message" or something like "var2_userid", where I can get all infos about these vars?

Every database column in _comprofiler_plugin_activity_comments is available. var2 is the comment database object.

CB Activity doesn't know the comment recipient is a user. It's generic in the sense it uses a pathing system of type, subtype, item, and parent columns to determine its source location. I doesn't know parent is specifically a CB user object so it doesn't build and send one with the trigger. I hope to eventually improve this when I deprecate those columns in favor of a single "asset" column then build additional objects off the asset as needed to allow the trigger to have more information. This is detailed a bit further below, but that's a bit of ways off as am working on CB Gallery at the moment.

forge.joomlapolis.com/issues/5825


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.

8 years 1 month ago #278979 by avateamcom
Hey Kyle,

thank you for your reply. So, its not possible for the CB-Activity comments directly?
Unfortunately, I need it for exactly these comments.

Is there a chance of getting that function with CB-Notifications at some time?
If yes, can you make a propo

Best regards,
Stefan

Please Log in to join the conversation.

8 years 1 month ago #278995 by krileon

thank you for your reply. So, its not possible for the CB-Activity comments directly?

When a comment is made on an activity entry the comment is linked to that activity entry. It's not linked to a specific user. This means there's no user id to check against to ensure they're commenting on a moderators activity post, which is why this would only for for a comment field at this time. It is possible to send a notification, but there's just nothing to check to ensure only moderators are notified.

Is there a chance of getting that function with CB-Notifications at some time?

Doesn't really have anything to do with CB Notifications. The trigger in CB Activity needs to provide more information and for it to be able to I need to rewrite/improve the stream object construction so it can construct objects based off the activity or comment type, subtype, item, and parent (soon to all be a single asset column). CB Notifications also probably won't be for a long time as I've other projects to work on at this time.


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.217 seconds

Facebook Twitter LinkedIn