• Resolved maelscuttle

    (@maelscuttle)


    I’ve created a map displaying all registered members on our site using BP Members Locator. There I’ve noticed that GeoMyWP apparently tries to load the thumbnail version of an users avatar, which is only 50x50px in size, and scales it all the way up to the pop-up size, making it all blurry. Is there a way to make GeoMyWP use the actual, full avatar? I’ve already played around with increasing the size of the thumbnail through BuddyPress, but that negatively impacts the site in other places.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello @maelscuttle,

    I apologize for the delay in reply.

    Please try the script below ( add it to the functions.php file of your theme ):

    
    function gmw_fl_info_window_modify_image( $output, $member, $args, $gmw ) {
    
    	if ( 'fl' !== $gmw['prefix'] ) {
    		return $output;
    	}
    
    	$output['image'] = bp_core_fetch_avatar(
    		array(
    			'item_id' => $member->ID,
    			'type'    => 'full',
    		)
    	);
    
    	return $output;
    }
    add_filter( 'gmw_info_window_content', 'gmw_fl_info_window_modify_image', 50, 4 );
    

    Let me know how it goes.

    Thread Starter maelscuttle

    (@maelscuttle)

    That works perfectly, thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Thumbnail size for BuddyPress user pop-up’ is closed to new replies.