WordPress.org

Ready to get started?Download WordPress

Forums

bbPress Moderation
[resolved] Email notifications for subscribed topics not working (6 posts)

  1. kraigg
    Member
    Posted 1 year ago #

    Hi Ian,

    In bbPress if a user is subscribed to a topic, and another user creates a new reply to that topic, they receive an email notification.

    But with bbPressModeration active, they don't receive any email notifications, even after the reply is approved and published.

    Is there some way to fix this?

    It looks quite complicated. Either there needs to be some way to store the email notification in a database, which is then sent in a batch once the reply has been approved and published. Or email notifications are still sent on-the-fly, but doesn't happen until the reply is approved and published. Is there a workaround for this?

    I'm using the latest bbPressModeration 1.4, bbPress 2.1.3, BuddyPress 1.6.1, and WordPress 3.4.2.

    http://wordpress.org/extend/plugins/bbpressmoderation/

  2. ianhaycox
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I have managed to reproduce the problem.

    It is caused because the bbp_notify_subscribers checks the status of the post and if it is not Published then no notification is sent.

    bbp_notify_subscribers is called via the action bbp_new_reply

    I guess hooking in an action to bbp_notify_subscribers for the Publish button in the post editor would fix it. However I can't fathom out the correct hook !

    I'll have a play around, but in the meantime - any suggestions welcome.

    Ian

  3. kraigg
    Member
    Posted 1 year ago #

    Thanks Ian

    The other way to do it is to send the email to subscribers regardless of whether the post status is published or pending, but don't show the content of the post Perhaps just a generic message to say "There's a new topic (or reply) in <forum name>. Log in to view it". But the problem with this approach is that the user might log in to view the post, which has no content because it is still under moderation.

    I agree that hooking bbp_notify_subscribers to the Publish button and show the content or excerpt of the post would be the much more elegant solution, but I'm not sure how to go about this.

  4. ianhaycox
    Member
    Plugin Author

    Posted 1 year ago #

    I've made a stab at fixing this issue.

    Download the development version for testing from,

    http://downloads.wordpress.org/plugin/bbpressmoderation.zip

    I've added a hook for pending_to_publish so that when the reply is published it calls bbp_notify_subscribers

    Any issues let me know.

  5. kraigg
    Member
    Posted 1 year ago #

    Yes, it worked! Emails are correctly sent to subscribers of a topic only after it has been approved by an administrator. That's amazing Ian, thank you!

  6. ianhaycox
    Member
    Plugin Author

    Posted 1 year ago #

    No problem

    Have released V1.5 with fix.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic