WordPress.org

Ready to get started?Download WordPress

Forums

Sexy Login
[resolved] Distorted Avatar (4 posts)

  1. robgha01
    Member
    Posted 1 year ago #

    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 150x150 in size the thumb is 50x50 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/

  2. Alejandro Galvez
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. robgha01
    Member
    Posted 1 year ago #

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

  4. robgha01
    Member
    Posted 1 year ago #

    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'] );
    	}
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags