Home Forums Plugin Support WP User Frontend Pro Avatar not saved in original size user uploads

This topic is: resolved

This topic contains 8 replies, has 5 voices, and was last updated by  Rodrigo 3 years, 11 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #27973

    David
    Member
    Post count: 1

    It appears to me that avatars that users upload are not saved in the size the image has on upload, but 100x100px. Is that possible and how can I change it? I use avatars on the site in larger resolutions and they appear blurred if the original is too small.

    #28372

    Sekander Badsha
    Member
    Post count: 2067

    Hello David,
    Please open wpuf-functions.php and go to line number 522. You will get to see something like –
    $editor->resize( 100, 100, true );
    If you want your avatars to be 300X200px then change it to –
    $editor->resize( 300, 200, true );

    Let me know if you need more detailed instruction. Thank you. ๐Ÿ™‚

    #29195

    Joshua
    Member
    Post count: 2

    How can we do this in a way safe for plugin upgrades?

    #29368

    Sekander Badsha
    Member
    Post count: 2067

    Hello Joshua,

    You can override from your theme to keep the changes safe.

    #30499

    Scott
    Member
    Post count: 48

    How would we override this in our theme?

    #30966

    Sekander Badsha
    Member
    Post count: 2067

    Hello Scott,

    The variables mentioned above is located a function named wpuf_update_avatar. So if you copy paste this same function to your themes function.php and edit, then the function would be overridden from your theme. ๐Ÿ™‚

    #30985

    Joshua
    Member
    Post count: 2

    Doesn't the original function need a function_exists (http://php.net/manual/en/function.function-exists.php) check?

    #31434

    Scott
    Member
    Post count: 48

    It seems this has been added to the general settings of the plugin.

    Thanks!

    #43144

    Rodrigo
    Member
    Post count: 3

    Please, where is this option in general settings of the plugin?

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Avatar not saved in original size user uploads’ is closed to new replies.