Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Distorted Avatar


  • robgha01
    Participant

    @robgha01

    BuddyPress Version 1.7.1
    Wordpress Version 3.5.1

    Follow up issue from the following Login Plugin here “Cant write the plugin name as it contains blocked word”

    Summery
    The main problem is that the wrong avatar is chosen to be displayed “-bpthumb.jpg” while the correct one is -bpfull.jpg.

Viewing 2 replies - 1 through 2 (of 2 total)

  • shanebp
    Moderator

    @shanebp

    In that plugin, you need to replace

    echo get_avatar( $current_user->ID, $sl_options['avatar_size'] );

    with this:

    echo bp_core_fetch_avatar( array( 'item_id' => $current_user->ID, 'type' => 'full' ) );


    robgha01
    Participant

    @robgha01

    Thancks that solved it! 😀

    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 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Distorted Avatar’ is closed to new replies.
Skip to toolbar