• Resolved landocalrissian

    (@landocalrissian)


    Hi- I’m wondering if anyone knows if this plugin (either with add-on or without the add-on) allows a way so that a user receives a notification when someone replies specifically to the user’s reply within a topic. So, to clarify, I’m not referring to receiving notifications every time there’s any reply to a topic (I know that exists), but only sending a notification to a user when someone else has replied to that user’s specific reply in a topic. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author useStrict

    (@usestrict)

    Hi @landocalrissian,

    There is no setting for that, but it’s achievable with some custom code in your child theme’s functions.php file. But before I write that up, I need to know how this would play with the other plugin settings. Would you be filtering out any notifications that are not to the author?

    Cheers,
    Vinny

    Thread Starter landocalrissian

    (@landocalrissian)

    Thanks for your quick response and willingness to write custom code for this- I believe this is a function that many people would be potentially interested in. The other plugins I am using that modify BBPress are BuddyPress and BBP Style Pack. To answer your question, I wasn’t planning on filtering out notifications that are not to the author. For example, if Person #1 (who is not the author of a particular comment) has marked that they want to receive all replies to a topic in general, they would still receive a notification of a reply even if the reply isn’t specifically targeted to something they wrote in the thread. However, at the same time, whoever wrote the original response/reply in a BBP topic, (ie Person #2), will by default always receive a notification of any direct reply to their specific comment/reply in the thread, even if they didn’t mark that they wanted to receive replies. However, Person #2 would not receive notifications of every general response in the topic thread unless they marked the pre-configured box that already allows this. Does that make sense?

    Plugin Author useStrict

    (@usestrict)

    Thanks for the explanation. This used to be easily achievable with bbp-toolkit plugin, but it has been removed from wp.org.

    The easiest approach now is to use a filter like that plugin used to do – it will automatically check the ‘Notify me of follow-ups via email’ checkbox.

    Add the following to your child theme’s functions.php file.

    add_filter('bbp_get_form_topic_subscribed', function($checked){ return 'checked="checked"';}, 10, 1);

    Cheers,
    Vinny

    Thread Starter landocalrissian

    (@landocalrissian)

    Thanks for writing this code. I tried it out and looks like it is helpful in pre-selecting the checkbox for receiving notifications of all additional replies to a given topic that a user has replied to. It’s not quite what I was hoping for in that I was hoping a specific user would get an email notifciation only if someone make a sub-reply to their specific comment/reply (that way, if the topic had tons of people replying in it, then the other people who wrote replies to the topic wouldn’t get email notifications of replies to the topic unless someone specifically made a sub-reply to that specific user’s response within the topic), however this is still very helpful. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Receive notification for a specific user reply’ is closed to new replies.