Skip to:
Content

BuddyPress.org

Opened 3 years ago

Last modified 14 months ago

#8584 new enhancement

Admin: add Member Type column to Network Users List Table

Reported by: offereins's profile Offereins Owned by:
Milestone: Awaiting Contributions Priority: normal
Severity: normal Version: 7.0.0
Component: Members Keywords: needs-patch
Cc:

Description

When BuddyPress is network activated, the registration of member types for all users is only displayed in the single site users administration. However, it would make sense if the registration of member types that are available network wide are also displayed in the network users administration. My proposal is to add the current bp-member-type custom list table column to the Network Users List Table.

The code required is short, because the Network Users List Table works similar to the regular Users List Table. The one difference is the filter name that is used for adding columns. All logic and filter parameters are identical. The filter for displaying the actual column content is the same for both list tables.

To accomplish this, in bp-members/classes/class-bp-members-admin.php we can simply add to the setup_actions method (around line 242) the following code:

if ( bp_is_network_activated() ) {
        add_filter( 'wpmu_users_columns', array( $this, 'users_table_add_type_column' ) );
}

The users_table_add_type_column method already exists for the single site admin and works just as well for the network admin. The content

Change History (5)

#1 @imath
3 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 10.0.0
  • Version changed from 9.1.1 to 7.0.0

I'd say why not 😃. Although I'm not sure about what is a member type available network widely.. I guess it's the one active on the root site.

As @Offereins gave instructions about how to build the patch, and if anyone would like to contribute to code, don't hesitate to suggest one.

#2 @shawfactor
3 years ago

This is not a good idea. Member type is per site abd as I recall a taxonomy which is per blog.

I and many others have a set up where there is no root blog abs users can have different member types on different sites in the Multisite

If you are goi g to do this it makes more sense to do it on the local users.php listing in the backend

#3 @imath
3 years ago

  • Milestone changed from 10.0.0 to Up Next

We won't have time to work on these during 10.0.0, sorry about it.

#4 @imath
21 months ago

  • Milestone changed from Up Next to 12.0.0

#5 @imath
14 months ago

  • Milestone changed from 12.0.0 to Awaiting Contributions
Note: See TracTickets for help on using tickets.