• Resolved moro89

    (@moro89)


    Hello!

    I’m using your plugin along with the OneAll Social Login and I found that the avatar size in the friend connection area is exactly the same as the main one, small when small, and large when large, and that looks disturbing!

    Should it be only the thumbnail there?! Please try to help me asap.

    Thanks in advance ??

    Amr

    https://www.ads-software.com/plugins/buddypress-foaf/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author quan_flo

    (@quan_flo)

    I’m calling the bp core function bp_core_fetch_avatar() to get the avatar of a member.
    If you want other sizes please modify the source code at this point and pass the parameter to this function that fits your needs to get the avatar size you want to have displayed in the friends connection area of the member profile pages.
    I’ll mark this as resolved because it is not a bug, you want customization for your layout if I understand your issue correctly and this can be done by adding some parameters to the function mentioned above.

    Thread Starter moro89

    (@moro89)

    Which parameters can be added there? The avatar size in this case should be a thumbnail, which is not the case here, and this distorts the general appearance of the profile page in a painful manner.

    Plugin Author quan_flo

    (@quan_flo)

    I just added 1.8 release that fixed this issue. Take a look at it and if this problem is solved please mark the topic here as “resolved” and feel free to rate the plugin and write a review. Thanks.

    Thread Starter moro89

    (@moro89)

    I got no change here.. Still getting large avatars in the box… Are you sure you fixed it?!
    FYI I use OneAll Social Login plugin to acquire user avatars… If you find a conflict out there with this plugin, you should work on it asap..

    Thread Starter moro89

    (@moro89)

    I managed to fix the situation using this code at line 131:

    $content.= '<a href="' . bp_core_get_userlink($data->ID, false, true) . '">' . bp_core_fetch_avatar(array('object' => 'user', 'type' => 'thumb', 'width' => 50, 'height' => 50, 'item_id' => $data->ID));

    You should include it as an update for everyone to use it. It took me plenty of effort to make it there ??

    Thanks for your help.. Cheers ??

    Plugin Author quan_flo

    (@quan_flo)

    If you find a conflict out there with this plugin, you should work on it asap..

    Btw: Please do not forget that you work with free plugins for which others spent their time if you ask for “asap” work…

    You should include it as an update for everyone to use it. It took me plenty of effort to make it there ??

    This would be totally wrong. The buddypress thumbnail format is 50x50px per default. Using the option “thumb” (thats what’s new in version 1.8) makes wordpress to use the format that is defined as “thumbail”. In your case you or one of the plugins you use seem to have overwritten this standard values and thumb is no longer 50x50px for your wordpress installation. You should check your custom settings and the other plugins you are using.
    If I would add 50x50px to my plugin as a hard coded value others would ask why their “thumb”-thumbnails are displayed incorrectly…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Avatar issue’ is closed to new replies.