Skip to main content ↑ ↓
2.0 - Avatar Started by ScottJB · · Read 326 times 0 Members and 1 Guest are viewing this topic.

2.0 - Avatar

It seems my new test member is unable to have avatar selected.
Uploaded, or URL shows blank after saving.
Also, gender did not stay selected, either, so maybe a modify profile bug?

Re: 2.0 - Avatar

Reply #1 –

Anything in the admin error log?


Re: 2.0 - Avatar

Reply #3 –

Not saving some profile fields was an easy bug to fix.  In Elkarte/Profile/ProfileFields.php
find:
$sa = $req->getQuery('sa', null, '');
change to:
$sa = $req->getRequest('sa', null, '');

I could not find or reproduce the Avatar issue, what type of file and size were you testing?  I did notice the preview was not working for the initial uploaded avatar and have fixed that, but that is just candy (and to many edits to post)

Also found a bug that prevented non admins from being able to change themes.  For that in Elkarte/Themes/ThemeLoader.php 
find:
$themes = explode(',', $modSettings['knownThemes']);
change to:
$themes = array_map('intval', explode(',', $modSettings['knownThemes']));

Re: 2.0 - Avatar

Reply #4 –

When upload, it shows broken image all over the forum.

Code: [Copy]
<img class="avatar avatarresize" src="https://www.scottjbrousseau.com/avatars_user/avatar_1_rgArhkybgY2lE11Z.png" alt="ScottJB9276" loading="lazy">

Code above was taken from the user info SP block and looks right.
File size is okay and avatar size is 200x200 which is set for.

Seems only avatar that works, is Gravatar.