• Resolved webdesignbytrex

    (@webdesignbytrex)


    I have a site that incorporates 6 different private areas, all managed by custom user roles. Each user role has access to different forums dedicated to those private areas.

    Is there a way to auto notify users of topics and replies that haven’t subscribed to their particular forum, without notifying users of all the other forums?

    From what I gather in your plugin’s documentation, if I add all those private user roles to be notified by default, wouldn’t that mean that a user of private forum A would get notified when the user of private forum B posts a new topic? Even if the user of forum A has no access to forum B.

    Any help would be greatly appreciated.

    Cheers,
    Zach

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

    (@usestrict)

    Hi Zach,

    What plugin are you using to set up the private areas?

    You are correct that bbpnns will notify all users of all forums for a given role. However, there are a few add-ons to bridge bbpnns and several plugins that provide forum privacy.

    And if I don’t already have an add-on ready, bbpnns is highly customizable via around 40 actions and filters.

    Cheers,
    Vinny

    Thread Starter webdesignbytrex

    (@webdesignbytrex)

    Vinny,

    Thank you for the quick reply.

    The private areas are managed by custom roles created using Members (https://themehybrid.com/plugins/members) I can then tell a given bbPress forum to only be available to specific roles I create using the Members Plugin.

    I can see all of the roles within bbpnns, but as you just confirmed I can’t add all of them or each private forums users will get notified of the others topics, replies, etc.

    Cheers,
    Zach

    Thread Starter webdesignbytrex

    (@webdesignbytrex)

    What I am basically trying to avoid is having the members of each forum click the subscribe button for topics and replies by default. It’s fine if they decide to turn it off themselves later, but on signup if they are part of a particular forum, by default I want them to get notified any time a new topic or reply is made on that forum and only that forum, because most users will likely not have access to the other 5 forums.

    Plugin Author useStrict

    (@usestrict)

    Hi Zach,

    I don’t have a bridge add-on for that membership plugin (I have for BuddyPress, Ultimate Member, MemberPress, and Private Groups), but if you can find the method that Members uses to decide if a user can view or not a given forum, you can use it in the filters bbpress_topic_notify_recipients (which takes parameters $recipients, $topic_id, $forum_id) and bbpress_reply_notify_recipients (with params $recipients, $reply_id, $topic_id, $forum_id).

    I hope this helps.

    Cheers,
    Vinny

    Thread Starter webdesignbytrex

    (@webdesignbytrex)

    Vinny,

    Thanks again for getting back to me. I did some thinking about this last night and I will probably write something custom using what you provided.

    Something along the lines of:

    if (WordPressUserRole = RoleA) {
    notify for topics in ForumA
    notify for replies to topics in ForumA
    }

    else if (WordPressUserRole = RoleB) {
    notify for topics in ForumB
    notify for replies to topics in ForumB
    }

    Etc…

    I know the logic will be a bit more complicated than that, but I will post it here when I get it working in the next day or two.

    Cheers,

    Zach

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Auto Notify Specific Roles to Specific Forums’ is closed to new replies.