Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add a new column “Groups” to user column on the backend

  • Profile photo of hasanfachrul
    hasanfachrul
    Participant

    @hasanfachrul

    Hello,

    I’m very beginner at buddypress, and I was wondering.
    Can I add another (custom) column “groups” in the user section on the admin backend?
    The “groups” column purpose is to clarify which group did the users went or in.

    Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Profile photo of danbp
    danbp
    Moderator

    @danbp

    This already exist on the admin Group page.
    When you edit an existing group (wp-admin/admin.php?page=bp-groups), you’ll see a list of all users belonging to that group.

    Profile photo of hasanfachrul
    hasanfachrul
    Participant

    @hasanfachrul

    Hi, thanks for the response!

    I know that, but I want to bulk edit and change their role to specific role.
    is there a way to do that?

    Profile photo of hasanfachrul
    hasanfachrul
    Participant

    @hasanfachrul

    anyone please?

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    That is not possible for group users. These users are already listed as site users, where you already can bulk edit their roles.

    A BuddyPress Group is made of regular WP users. Being in a group doesn’t modify that, and that’s the reason why you have no role editor on the group user admin – other the ones belonging to groups (group admin or mod).
    Note also that a group admin is not a site-admin, just a regular member (subscriber by default).

    In other words, the group admin interface is made to manage group members only (no relation with WP and WP roles and capabilities).
    And WP’s members list is to manage site users, roles and capabilities.

    Profile photo of hasanfachrul
    hasanfachrul
    Participant

    @hasanfachrul

    Hello,

    Thats explains everything!

    thank you!

    Profile photo of eavinu
    eavinu
    Participant

    @eavinu

    Hello,
    Do you still need to show the Groups as a column in the “Users” page?

    Profile photo of CoreyFF
    CoreyFF
    Participant

    @coreyff

    If I’m understanding your question correctly, I was able to accomplish this with the Admin Columns Pro plugin (see screenshot below – in my case BP groups are called “Committees”). It is a paid plugin, but they provide a great starter-kit template to create your own columns with custom code.

    “Committees” column on admin “Users” screen

    Profile photo of jonathanmoorebcsorg
    jonmoore
    Participant

    @jonathanmoorebcsorg

    Hi @CoreyFF, how did you do add the Committees column?
    I’m looking at the free version of Admin Columns, it may be this is a Pro feature, I can’t quite tell yet..

    Profile photo of CoreyFF
    CoreyFF
    Participant

    @coreyff

    Hey @jonmoore – You’re right, I was only able to add the custom columns with the Pro version of Admin Columns. It required a little custom code to make the correct calls to the database, but it wasn’t too difficult. Let me know if you can’t figure it out.

    Profile photo of jonathanmoorebcsorg
    jonmoore
    Participant

    @jonathanmoorebcsorg

    Hi, I didn’t have a chance to get back to this, but I remember seeing something on the WP codex about how to add columns to admin screens… if custom code is required then I’d probably do a custom solution rather than use Admin Columns.. so I could then give it back to the community… .. this should be core rather than depending on 3rd party paid component.

    I mean in the same way that WordPress shows Posts column linking to Posts in the User screen /wp-admin/users.php I would expect that for sites which are mainly using bbPress and BuddyPress that the equivalent columns Forum posts, Activities, Group membership should be of interest to all..

    If you have got anything that will help, please post it!

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