WordPress.org

Ready to get started?Download WordPress

Forums

Social Login
[resolved] Avatar size problem (8 posts)

  1. somosguatemala
    Member
    Posted 1 year ago #

    The avatars that it fetches for sites like facebook and twitter are to small what can i do to make them the correct size? here is how it looks:
    http://www.somosguatemala.com/members/Jonathan.Munoz/

    Here is how it is suppose to look:
    http://www.somosguatemala.com/members/somosguatemala/

    it fetches the avatar and leaves it at 50 x 50 px when it has to be 150 x 150 px

    Thanx in advance if you guys can resolve this!

    http://wordpress.org/extend/plugins/oa-social-login/

  2. DaveTheKnave
    Member
    Posted 1 year ago #

    I have this same issue.

  3. Claude
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    for most of the blogs the small avatars are perfect. If you nevertheless need larger avatars you can make this change:

    - Open the file communication.php of the plugin
    - Change this line:
    $user_thumbnail = (!empty ($identity->thumbnailUrl)? trim ($identity->thumbnailUrl) : '');
    - To:
    $user_thumbnail = (!empty ($identity->pictureUrl)? trim ($identity->pictureUrl) : '');

    Regards,

  4. somosguatemala
    Member
    Posted 1 year ago #

    I changed it but yet nothing happened the profile images are still small??

  5. somosguatemala
    Member
    Posted 1 year ago #

    Ok so i edited the line and what it did was that the new members that logged on made it so that the image size change but the problem with that is that it changes the size of the thumbnails as well i want to keep the thumbnails at 50 x 50px. While the profile pictures i want them to be 150 x 150 px how would i do that ??

  6. hcroeze
    Member
    Posted 1 year ago #

    maybe not the nicest solution, but I solved it for my site with a little custom css:

    '#item-header-avatar img.avatar-social-login {width: 150px ; height: 150px;}'

  7. hcroeze
    Member
    Posted 1 year ago #

    btw, this is a css I added WITHOUT changing the plugin code (thus still using the 50x50 thumbnails).

    A nicer solution would be if the plugin added both pictures (50x50 and 150x150 to the /avatar/user_id/ directory on the server (after creating the directory) (instead of the link to e.g. facebook graph in the database). This would also lower the bandwidth consumption on the website which has to retrieve the picture every time from the social site (e.g. when using the Recently Active Users plugin).

    If possible even include an administration option to update the local avatars every time the user logs in again (if yes then the local avatars would be refreshed every time the user logs in again, if no the local avatars are not refreshed).

  8. somosguatemala
    Member
    Posted 1 year ago #

    Great Job Hcroeze that did the trick but it does make it all pixeled and blurry because of the size. I hope Claude can add all that to the new WordPress update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.