Skip to main content ↑ ↓
Recent Posts
41
Bug Reports / Re: 2.0 - Avatar
Last post by ScottJB -
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.
42
Bug Reports / Re: 2.0 - Avatar
Last post by Spuds -
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']));
46
Bug Reports / Re: 2.0 - Edit Membergroups
Last post by Spuds -
Did it still work (just curious)

The error is that it was trying to "sanitize" the color data and it should have been "validating" the data.  In this case the results would be the same outcome but there is no sanitation function for color or validation of whatever is entered is valid.  Anyway easy fix.
47
Bug Reports / 2.0 - Avatar
Last post by ScottJB -
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?
48
Bug Reports / 2.0 - Edit Membergroups
Last post by ScottJB -
When edit membergroups, I get this error in log:

QuoteType of error: Undefined
 Unknown: data sanitizer rule: valid_color function: valid_color method: _sanitation_valid_color
 index.php?action=admin;area=membergroups;sa=edit;group=4