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

  1. somosguatemala
    Posted 2 years 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:

    Here is how it is suppose to look:

    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!


  2. DaveTheKnave
    Posted 2 years ago #

    I have this same issue.

  3. Claude
    Plugin Author

    Posted 2 years ago #


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


  4. somosguatemala
    Posted 2 years ago #

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

  5. somosguatemala
    Posted 2 years 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. Haime Croeze
    Posted 2 years 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. Haime Croeze
    Posted 2 years 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
    Posted 2 years 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

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

About this Topic


No tags yet.