Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Distorted Avatar

  • Avatar of robgha01
    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)
  • Avatar of shanebpdev
    shanebp
    Participant

    @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' ) );

    Avatar of robgha01
    robgha01
    Participant

    @robgha01

    Thancks that solved it! :D

    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)

You must be logged in to reply to this topic.