Skip to:
Content
Pages
Categories
Search
Top
Bottom

Kick (but not ban) a user from a a group?


  • PJ
    Participant

    @pjnu

    There are some users that are “collecting dust” in a couple groups and I can’t find out how to kick them out but not ban them. Any thoughts on how I can just remove them from the group? Thanks.

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

  • r-a-y
    Keymaster

    @r-a-y

    I actually brought this up a long time ago when I was a BP noob ;)

    Seems like BP is missing a “Remove from group” option in the manage members screen.
    This functionality could be added using the groups_leave_group() function.

    Needs some investigating.

    just adding my vote for a much needed remove but not ban feature ;)


    r-a-y
    Keymaster

    @r-a-y

    Alright, I’ll look into creating a patch for this in the next few days (hopefully for inclusion in BP 1.2.6).


    intimez
    Participant

    @intimez

    Yes me too


    r-a-y
    Keymaster

    @r-a-y

    Done :)

    I’ll probably refactor this as a core patch in the next week or so, but here’s something to play around with:
    http://pastebin.com/MpmneujE

    Add this to your functions.php.


    Pisanojm
    Participant

    @pisanojm

    Killer Ray, I ran into this problem last month, but just let it go…. I’ll test this tonight as well.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Liked it so much, I added it to core for 1.2.6. Props r-a-y.

    It’s active now on testbp.org. Give it a try. Report bugs on trac please.


    PJ
    Participant

    @pjnu

    All,

    Thank you for your support! @johnjamesjacoby thank you for your prompt response and adding it to the future release :)


    paulhastings0
    Participant

    @paulhastings0

    Awesome. It’s one of those things that’s so obvious but that we just overlooked. Must be because everyone who uses BP is soooo nice that no one ever has conflict. ;)


    intimez
    Participant

    @intimez

    @johnjamesjacoby Thanks! Looking forward to 1.2.6 … hurry up already!!! ;-)


    r-a-y
    Keymaster

    @r-a-y

    JJJ is the man! Didn’t expect the fast turnover as well! :)


    techguy
    Participant

    @crashutah

    Nice work. It felt like something was missing from that moderation screen. Good work.

    Awesome! Just tested it out on my live site (I live on the edge, lol) and it worked perfectly! I do have a request for future versions maybe, though…checkboxes next to each member for bulk admin (promote/ban/remove)


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Don’t thank me, thank @r-a-y! :)

    Bulk member moderation is on the roadmap somewhere, at least it used to be and would be very useful.


    r-a-y
    Keymaster

    @r-a-y

    But alas, you should be patting @johnjamesjacoby on the back for cleaning up my code and adding it to BP core ;)

    Is this in the BP core already? I have the latest version of BP, but still cannot do this. I can only kick & ban as before, not remove members from group.

    Also, if I add the code mentioned above to my function.php, my whole site goes blank.

    I am using the Custom Community 1.5.1 theme for WP.
    Anybody an idea what I am doing wrong?


    r-a-y
    Keymaster

    @r-a-y

    You need to upgrade your Custom Community theme to take advantage of this.
    Bug the theme author!

    Or you can manually do this by mirroring the changes made to /groups/single/admin.php.


    Virtuali
    Participant

    @gunju2221

    There is a plugin “buddypress group moderation” or something like that adds the “eject user from group” function. I tested it on my site, but no real use for it.

Viewing 18 replies - 1 through 18 (of 18 total)
  • The topic ‘Kick (but not ban) a user from a a group?’ is closed to new replies.
Skip to toolbar