Avatar not saved in original size user uploads

This topic contains 8 reply and 5 voices, and was last updated by Rodrigo 9 years, 6 months ago
Viewing 8 Posts - 1 through 8 (of 8 total)
Author Posts
October 4, 2014 at 9:01 pm 27973
Rodrigo 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.
October 14, 2014 at 5:21 pm 28372
Sekander Badsha Sekander Badsha

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. 🙂

October 28, 2014 at 12:19 am 29195
Joshua Joshua

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

October 29, 2014 at 5:32 pm 29368
Sekander Badsha Sekander Badsha

Hello Joshua,

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

November 15, 2014 at 6:42 am 30499
Scott Scott

How would we override this in our theme?

November 22, 2014 at 6:30 pm 30966
Sekander Badsha Sekander Badsha

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. 🙂

November 23, 2014 at 9:44 am 30985
Joshua Joshua

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

November 30, 2014 at 8:02 pm 31434
Scott Scott

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

Thanks!

May 5, 2015 at 8:33 pm 43144
Rodrigo Rodrigo

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

Viewing 8 Posts - 1 through 8 (of 8 total)