Skip to Content Skip to Menu

email notifications

  • krileon
  • krileon
  • ONLINE
  • Posts: 49459
  • Thanks: 8469
  • Karma: 1465
5 months 1 week ago #340567 by krileon
Replied by krileon on topic email notifications
Then I recommend trying the below and see how that works for you.
Code:
if ( ! $variables['var2']->getPublished() ) { return; } if ( is_array( $variables['var3'] ) ) { return $variables['var3']; } else { return $variables['var2']->getRecipients(); }

Should work for new and update cases. Aside from that you may need to consider setting User to Query and forming your own query against _comprofiler_plugin_activity_notifications to determine who you want to notify exactly.


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

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

  • AlanJones
  • AlanJones
  • ONLINE
  • Posts: 520
  • Thanks: 43
  • Karma: 2
21 hours 7 minutes ago #341746 by AlanJones
Replied by AlanJones on topic email notifications
I tried the last one you suggested but it didn't work.
Since the last update the one I have been using is not working anymore. I'll paste it below.
I would so love to have a way to send reliable group notifications, either with text or email. 
Any other suggestions?

I am considering relying on the in-app notifications (the blue icons), and sending AcyMailing mails - but that is not going to notify when group activity happens, and I find that if we don't push then the community just dies.

This is the one I'm using:
if ( ! $variables->getPublished() ) {
    return [];
}

return $variables->getRecipients();
 

Own Your Own Community!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49459
  • Thanks: 8469
  • Karma: 1465
18 hours 1 minute ago #341749 by krileon
Replied by krileon on topic email notifications
I suggest just not replacing the GJ notifications then. Set GJ notifications to send as emails then within CB Activity > Notifications > Notify > GroupJive set "Notifications" to "Enable". This will then send an email AND log an on-site notifications. I don't have anything further to suggest at this time.

I'll be adding email support to CB Activity notifications likely in its next stable release, which will also include CB Gallery 3.0 compatibility. This will likely be done in the form of Digests. So for example a daily digest would be something like "You have 3 unread notifications. Would you like to read them now?". You'd need to setup CRON to processes these, but this would be quick and efficient instead of slamming people with 1 email per 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.

  • AlanJones
  • AlanJones
  • ONLINE
  • Posts: 520
  • Thanks: 43
  • Karma: 2
17 hours 56 minutes ago #341750 by AlanJones
Replied by AlanJones on topic email notifications
That would be a neat solution! That's the kind of thing I was considering, but it would be good to have it personalized. Could I change daliy to weekly? I guess I could in the cron.

Thanks!

Own Your Own Community!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49459
  • Thanks: 8469
  • Karma: 1465
15 hours ago #341752 by krileon
Replied by krileon on topic email notifications
The plan for the digests is to support daily, weekly, monthly, and yearly.

In a future release I'll probably add support for custom where you can specify the time offset (e.g. +2 WEEKS), but initial release will be simple to get the feature out. This will be able to inherit from a user field so you can have it per-user using a select field for example.

There will be 2 methods available. Personalized and Generic. Generic will be extremely fast as it won't personalized the email per-user and will send out a quick BCC. Personalized will run subject/body through substitutions and will be slower.

CRON would just be responsible for triggering sending of the digest emails. You'll also be able to have a Joomla task scheduler task do it as well if you wanted.


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.

  • AlanJones
  • AlanJones
  • ONLINE
  • Posts: 520
  • Thanks: 43
  • Karma: 2
14 hours 39 minutes ago #341758 by AlanJones
Replied by AlanJones on topic email notifications
Sounds like a good solution, thanks!!

Own Your Own Community!

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

Moderators: beatnantkrileon
Powered by Kunena Forum