• Resolved alias3728

    (@alias3728)


    I have it so the full reply content is in the email notification, but only the reply that the user posted. What I need is the ability to have the entire threaded conversation, most recent first, kind of like how an email thread would look. Aiming for this to be kind of a clone of how Yahoo Groups works.

    Can this be done, and if so, how so?

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

    (@usestrict)

    Hi @alias3728,

    Thanks for reaching out. You can modify the body of the notification by hooking into the bbpnns_filter_email_body_in_build filter:

    function alias3728_munge_body( $email_body, $type, $post_id )
    {
        if ( 'reply' === $type ) {
            // do something with the email body here
        }
        return $email_body;
    }
    add_filter( 'bbpnns_filter_email_body_in_build', 'alias3728_munge_body', 10, 3 );
    

    But I suspect that if you’re not careful, it might be resource intensive. The $post_id variable will be the reply_id which you can use to fetch the topic and then its children from and build the notification body the way you want it.

    And as a bonus, you can use the Reply by Email premium add-on to allow, well, replies by email :).

    I hope that helps!

    Cheers,
    Vinny

    Thread Starter alias3728

    (@alias3728)

    Hello,

    Thanks for replying. Is there a way to test this without firing off Emails?

    Plugin Author useStrict

    (@usestrict)

    Yes, all you have to do to fire off emails immediately is to check the ‘Send Notifications’ checkbox in a topic (on the backend) and click update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reply notifications with entire thread in the email’ is closed to new replies.