Re: Would love to see someone take over the BuddyPress Badge Plugin and update it.
@Pisanojm here are temp solution. However I see your extend profile not show in badge, I will check that too but in about 3 days (no computer in my new home – -“).
temp solution:
— replace —
if ( get_site_option(‘bp_badge_showthumbimage’) == true ) {
$avatar_html = bp_core_fetch_avatar( array( ‘item_id’ => $bp->displayed_user->id, ‘type’ => ‘thumb’, ‘alt’ => __( ”, ‘buddypress’ ) ) );
} else {
$avatar_html = bp_core_fetch_avatar( array( ‘item_id’ => $bp->displayed_user->id, ‘type’ => ‘full’, ‘alt’ => __( ”, ‘buddypress’ ) ) );
}
preg_match_all(“//i”, $avatar_html, $avatar_url);
— with —
if ( get_site_option(‘bp_badge_showthumbimage’) == true ) {
$avatar_url = bp_get_loggedin_user_avatar( ‘html=false&type=thumb’ );
} else {
$avatar_url = bp_get_loggedin_user_avatar( ‘html=false&type=full’ );
}
and
search “$avatar_url[2][0]” replace with “$avatar_url”
for others i will try upload new release next week.