Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Open members list in group page


yu
Participant

@gerbilo

we got it!

in bp-groups-clases.php change

function get_user_dataset() {
global $wpdb, $bp;
return $wpdb->get_results( $wpdb->prepare( "SELECT DISTINCT user_id, is_admin, inviter_id, user_title, is_mod FROM " . $bp['groups']['table_name_members'] . " WHERE group_id = %d AND is_confirmed = 1 AND is_banned = 0 ORDER BY rand()", $this->id ) );
}

to this ->

function get_user_dataset() {
global $wpdb, $bp;
return $wpdb->get_results( $wpdb->prepare( "SELECT DISTINCT user_id, is_admin, user_title, is_mod FROM " . $bp['groups']['table_name_members'] . " WHERE group_id = %d AND is_confirmed = 1 AND is_banned = 0 ORDER BY rand()", $this->id ) );}

Skip to toolbar