Forum Replies Created
-
So I just wanted to update this in case anyone else was looking for something along these lines.
I found some code on The Buddypress Codex page that spelled out how to actually add the column. From there I added some custom coding to it to allow it to link to the membership page and accept the requests:<?php /* BuddyPress Custom Code */ // add the column function groups_admin_add_custom_column( $columns ) { $columns["pending_group_members"] = "Join Requests"; return $columns; } add_filter( "bp_groups_list_table_get_columns", "groups_admin_add_custom_column" ); // add the column data for each row function groups_admin_custom_column_content( $retval = "", $column_name, $item ) { if ( "pending_group_members" !== $column_name ) { return $retval; } if ( "private" == $item["status"] ) { $user_ids = BP_Groups_Member::get_all_membership_request_user_ids( $item["id"] ); return "<a href='". site_url(). "/groups/". $item["slug"] ."/admin/membership-requests/'>" . count( $user_ids) . "</a>"; } return "-"; } add_filter( "bp_groups_admin_get_group_custom_column", "groups_admin_custom_column_content", 10, 3 ); ?>
I will look at the hook, but I have 40 groups to manage. I’d like to be able to see these at a glance instead of having to open each group individually or following a lengthy email process to approve them
Thanks for the directional push. I looked at the example, and then tried to look at the bp-groups page, and I think I’m just completely lost.
I see the classes get made, and I see the call links to other pages, I try to follow the ball and……….
I’ve met my coding match.Ultimately I’d like to add a Pending count to the main table, and I’d like to show the pending members in the groups page.
I’d even take it as an addon if someone made it, but any additional help would be awesome.Thanks