Skip to Content Skip to Menu

enable notification in CB activity

  • Brucegirl
  • Brucegirl
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
4 days 14 hours ago #341488 by Brucegirl
enable notification in CB activity was created by Brucegirl
I have looked and hunted for information on a simple thing. I want to send email notifications to all users when a moderator post in activity. Either through email or PM or both. 
I can not find information on this. 


 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49341
  • Thanks: 8439
  • Karma: 1465
4 days 14 hours ago #341489 by krileon
Replied by krileon on topic enable notification in CB activity
All notifications within CB Activity are configured in CB Activity > Parameters > Notifications > Notify.

However the notification you're asking for doesn't exist. You'd need to create that notification yourself using CB Auto Actions. The below should help get you started.

Global
Triggers: activity_onAfterCreateStreamActivity
Type: Email
User: Self
Access: All Moderators
Conditions
Field: Custom > Value
Custom Value: [var3_asset]
Operator: Starts With
Value: profile.
Action
To: query
To Query:
Code:
SELECT `email` FROM `#__users` WHERE `block` = 0
Subject: YOUR_EMAIL_SUBJECT_HERE
Body: YOUR_EMAIL_MESSAGE_HERE

The condition ensures it only applies to profile activity posts made by moderators. If you need it to apply to other activity streams adjust the condition. If you need it to apply to all activity streams simply remove the condition. The query is just a database query to determine recipients of the email. You can freely adjust it with whatever database query conditions you'd like. My example above emails everyone.

This however could be useful and have added a feature ticket to review adding support for toggling on such a notification being built into CB Activity as could be good for things like moderator announcements.

forge.joomlapolis.com/issues/9681
forge.joomlapolis.com/issues/9682

Also made a ticket for system post notifications.


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.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49341
  • Thanks: 8439
  • Karma: 1465
4 days 13 hours ago #341490 by krileon
Replied by krileon on topic enable notification in CB activity
Turned out to be a relatively quick implementation. This is now available in latest CB Activity build release. Once updated you'll find "Create (System)" and "Create (Moderator)" notifications within CB Activity > Parameters > Notifications > Notify > Activity to send notifications when moderators create posts or when a system post is created.

So you won't need the above anymore unless you want it to be an email instead of an on site notification.


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.

  • Brucegirl
  • Brucegirl
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
4 days 12 hours ago #341491 by Brucegirl
Replied by Brucegirl on topic enable notification in CB activity
So the setting in the attached?
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49341
  • Thanks: 8439
  • Karma: 1465
3 days 17 hours ago #341495 by krileon
Replied by krileon on topic enable notification in CB activity
That will also do it, but no. That setting enables notifications for all activity posts not just those made by moderators. You also have it set so that it sends the notifications to moderators. Turn that setting off and you should see the other 2 mentioned above.


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.

  • Brucegirl
  • Brucegirl
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
3 days 17 hours ago #341497 by Brucegirl
Replied by Brucegirl on topic enable notification in CB activity
OK. Thank you! Dah...

I hope I have it correct now?

S
Attachments:

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

Moderators: beatnantkrileon
Powered by Kunena Forum