• Resolved gauss256

    (@gauss256)


    I’ve read a few messages about overriding bbPress subscriptions but I still don’t get the concept.

    Here’s what I’ve done. I created two roles: notify_on_topic and notify_on_reply. I’ve given my users the ability to add or remove those roles for themselves by editing their profiles. I use those roles to determine who gets notifications.

    The net effect is that users have the ability to subscribe in an all-or-none fashion to new topics and new replies.

    I did not check the “override” box. I thought that would give my users more fine-grained control over their subscriptions. So suppose they opted in for all new replies. But there is one thread that they hate and want to opt of just that thread. I thought that the bbPress built-in Subscribe/Unsubscribe links would enable that.

    But that doesn’t seem to be the case. The Subscribe/Unsubscribe state seems to be independent of the notifications coming from the plugin. Am I right about that?

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

    (@usestrict)

    Hi Gauss,

    I created two roles: notify_on_topic and notify_on_reply. I’ve given my users the ability to add or remove those roles for themselves by editing their profiles.

    That’s pretty cool, would you care to elaborate on how you did that? I’m pretty sure others would like to be able to do it, too.

    As for how the overrides works, pretend for one moment that there is no bbpnns and core subscriptions are turned on. But you can choose what the notification email says. That’s the gist of it. In order to get notified, users have to subscribe to a forum or a topic either via the ‘subscribe’ link or the ‘Notify me’ checkbox at the bottom of the post fields.

    In your case, they’re getting bulk notifications because you set up the bulk roles. If they opt out from those roles, they will receive notifications only for those forums and topics that they signed up for. Subscribe/Unsubscribe will work only if they are not in the notify_on_topic/reply roles.

    I have a premium opt-out plugin that will stop the global notifications for those who wish to no longer receive it, although with your workaround, they should be satisfied.

    I hope this helps.

    Cheers,
    Vinny

    Thread Starter gauss256

    (@gauss256)

    Thanks for the override explanation. I get it now.

    Let me ask this, in case I get ambitious about it someday. Suppose I wanted to give users who are bulk-subscribed the ability to opt out on on a per-forum or per-topic basis. Does that sound like an afternoon’s programming work based on the current API or is it more like a complete rewrite of the plugin? It feels like the latter to me, but maybe I’m missing something. ??

    I’ll post my code for doing the profile-role management in a separate message.

    Plugin Author useStrict

    (@usestrict)

    I wrote the plugin so that it could work well with filters. That being said, the bulk amount of work would depend on what you have in mind UI-wise. Please contact me via email to discuss the specs: vinny [at] usestrict [dot] net.

    Cheers,
    Vinny

    Thread Starter gauss256

    (@gauss256)

    I wrote a blog post for how I did the profile-role management. It is here.

    It’s kind of long and kind of terse at the same time. All comments are welcome!

    Plugin Author useStrict

    (@usestrict)

    Hi gauss256, that’s a pretty good post.

    However, in order to make it easier for site admins to achieve the same result, I created the opt-out add-on (premium), where recipients can click a link to opt out and later change their preferences in their profile screens (works with WP, bbPress, and BuddyPress, with UM in the works).

    Cheers,
    Vinny

    Thread Starter gauss256

    (@gauss256)

    The opt-out add-on looks like a more elegant solution than what I did. ??

    However, I’d like my users to be opted-out by default. Is that possible with the add-on?

    Plugin Author useStrict

    (@usestrict)

    However, I’d like my users to be opted-out by default.

    In this case, I’d recommend disabling all roles in the settings, and enabling the Overrides for both Forums and Subscriptions. That way your users will be able to use Core Subscriptions functionality with the bbpnns email template and any add-ons that you might want (like Digests).

    Cheers,
    Vinny

    Thread Starter gauss256

    (@gauss256)

    That’s a possibility but doesn’t quite fit my use case of having an option to bulk subscribe. But we’ll see what’s important to people as I roll this out.

    Anyway, lots of good functionality available with your plugin. Thanks for the quick feedback!

    Plugin Author useStrict

    (@usestrict)

    My pleasure!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘bbPress Overrides’ is closed to new replies.