Support » Plugin: BuddyPress Registration Options » Not approved members able to comment posts and write private messages

  • Hi,
    I have a problem with not approved members, that are able to comment articles and send private messages to other users. How can I stop this? Could this be a general bug or special to my site?

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

    (@tw2113)

    The BenchPresser

    If the articles are not part of the BuddyPress areas, then that’s expected behavior as we only try to control access to the BuddyPress/bbPress sections of a site, not the entire site as a whole.

    Are you using any custom plugins around private messages? or is it all stock/out of box BuddyPress functionality here? We try to add compatibility for other plugins that extend BuddyPress, but admittedly can’t actively cover ALL possible extensions out there.

    Thread Starter dabiathlet

    (@dabiathlet)

    I checked it and it looks like, the spammer could only comment on activities in the buddypress area which are programmed by ourself. But as it is normal Buddypress functionality I was hoping that your plugin could prevent this aswell. Is there no possibility for you to prevent not approved users from commenting at all?
    Or is there anything we can do, so that your plugin can handle the activities?
    I can send you an example by email or private message if you want.

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    If this is custom functionality, then it would have been really difficult, if not impossible, for us to foresee how to integrate with that part.

    That said, I know we have the bp_registration_get_moderation_status( $user_id ) function which will tell you if the provided user is marked as moderated. If the function returns true, they are and should not have the access etc. If it returns false, they’re not moderated and should have as much access as configured.

    Perhaps your code could be adapted and configured to make use of this and return early if the user is still moderated?

    Thread Starter dabiathlet

    (@dabiathlet)

    It’s custom, but on Buddypress functionality: https://www.xc-ski.de/community/mitglieder/roli/activity/13198/

    So what I was thinking about to prevent commenting at all for not approved users. But if I understand you right, this is not possible and you have to prevent it for every single function/activity/… in Buddypress?

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Understood that it’s BuddyPress functionality, but you did something custom around it, and I don’t know what that custom parts are.

    With our plugin, depending on the protection level, “must be moderated” only, vs “private network”, we do one of two things.

    1. If must be moderated only, we do what we can to hide the UI that allows for interaction. “Oh look, that ‘create message’ button is no longer shown”. When possible and/or requested, we try to help out by doing the same for other BuddyPress-based plugins. For example, I know we have added compatibility with https://wordpress.org/plugins/buddypress-like/ to remove their “Like” buttons for moderated users.
    2. If in private network mode, we restrict moderated users to their profiles only, and I believe still remove messaging ability, though it’s been awhile since I looked at that detail. They could fill in their BuddyPress profile, but that’s about it in regards to the BuddyPress areas of a site. They could still go to the blog and leave a comment there, or go buy something in an ecommerce area.

    I could provide some better help/support if I knew what customizations you added and perhaps even saw the code being used for it, to see what I could do to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.