Sexy Login
[resolved] Distorted Avatar (4 posts)

  1. robgha01
    Posted 3 years 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.


  2. Alejandro Galvez
    Plugin Author

    Posted 3 years 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
    Posted 3 years ago #

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

  4. robgha01
    Posted 3 years 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' ) );
    		echo get_avatar( $current_user->ID, $sl_options['avatar_size'] );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Sexy Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic