• Resolved mchrisb03

    (@mchrisb03)


    Hi useStrict,

    This plugin is almost exactly what I need!

    I am currently using BuddyPress (1.8.1) together with bbPress (2.4) to define private group forums.

    Unfortunately, the current email distribution logic is only based on Site Role (WP) and/or Forum Role (bbPress).

    This means there is no way to send the notifications of a new post/reply to just the members of a group forum.

    The thing that would make this plugin complete for me, is to have an option where the email distribution could also be determined by whether or not a user is a Member, Moderator or Administrator of the associated BuddyPress group in which the topic was posted/replied.

    This might be something I could hack together myself but it would be better if someone that regularly develops in php does it and it would be nice if this was part of the baseline plugin code.

    Please let me know if this is something you will consider or if you have any questions.

    Thank you for your work on this plugin.

    Regards,
    –Chris

    https://www.ads-software.com/plugins/bbpress-notify-nospam/

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

    (@usestrict)

    Hi Chris,

    I’m not familiar with BuddyPress – never had the chance to install it and see how it works. Would you mind pasting a link to info of how BuddyPress groups work?

    Thread Starter mchrisb03

    (@mchrisb03)

    The following page explains how this is set up in the newest BuddyPress and bbPress:

    https://codex.buddypress.org/user/setting-up-a-new-installation/installing-group-and-sitewide-forums/

    The only change to the instructions I would make is that in B5 and C2 it says:

    Change Forum Attribute Type from “Forum” to “Category”

    I found that does not work. You have the leave the bbPress Forum Attribute Type set to Forum (instead of Category) in order for it to be a selectable Forum in the BuddyPress Group.

    I poked around in the BuddyPress and bbPress code to figure out what I needed to do and then I hacked your plugin to make it work based on BuddyPress group membership.

    Here is what I did at a high level…

    I added the bp global object (global $bp;) to the notify_new_topic and notify_new_reply functions and populated the recipients array in both with the following call:

    $recipients = BP_Groups_Member::get_group_member_ids( $bp->groups->current_group->id );

    Also, the following string was added to the email to indicate in which group the topic / reply was posted:

    $bp->groups->current_group->name

    I have not added any Settings options or really made any other changes in my hacked up version.

    Please let me know if you want any additional information about this.

    Thanks,
    –Chris

    Thread Starter mchrisb03

    (@mchrisb03)

    Hummm.. I just thought of potential problem. I am not sure my solution will work with the Background sending as the current group may be different then. My testing to this point was with immediate notifications.

    Plugin Author useStrict

    (@usestrict)

    Hi Chris,

    Sorry for the delay in getting back to you. I’m currently swamped with other projects and can’t really look into this. Feel free to write the code and I’ll gladly add it to the plugin.

    Cheers,
    Vinny

    Plugin Author useStrict

    (@usestrict)

    Closing this as resolved, as I have not received word from mchrisb03.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Distribution based on BuddyPress group membership?’ is closed to new replies.