WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Distorted Avatar

[Resolved] Distorted Avatar

  • I use buddypress, dont know if this is the the problem anyway
    the widget uses the wrong image type “…..-bpthumb.jpg” and not the one that sould be used “…..-bpfull.jpg”.

    the bpfull is 150×150 in size the thumb is 50×50 and that results in an disorted avatar…

    It would be nice to have any kind of switch to ether chose bpfull or the thumb, or if this could be done automatically someway.

    http://wordpress.org/extend/plugins/sexy-login/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alejandro Galvez

    @alejandro-galvez

    SexyLogin uses the get_avatar() function that retrieves an avatar with a size equal or aproximate to selected. The size is given as integer to this function (Ex: 150).

    So we can’t decide the image type. It’s an internal process controlled by WordPress and apparently modified by BuddyPress, returning a thumb or an entire image.

    You can try change the avatar size from SexyLogin Options page. Set it to a high value like 1000. Maybe BuddyPress will return the full avatar image.

    Thanks for the feedback.

    Ok, i have added a support ticket at buddypress here.

    To fix this one need to add this code:

    if ( $sl_options['show_avatar'] )
    {
    	if( function_exists('bp_core_fetch_avatar') )
    	{
    		echo bp_core_fetch_avatar( array( 'item_id' => $current_user->ID, 'type' => 'full' ) );
    	}
    	else
    	{
    		echo get_avatar( $current_user->ID, $sl_options['avatar_size'] );
    	}
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Distorted Avatar’ is closed to new replies.