2014-12-06, 02:56 PM
(2014-12-05, 11:08 PM)TBO29 Wrote: [ -> ]I found the problem here in this code:
$maxDimensions = str_replace('|', 'x', $mybb->settings['myalerts_avatar_size']);
$outputAlert['avatar'] = format_avatar($fromUser['avatar'], $mybb->settings['myalerts_avatar_size'], $maxDimensions);
$outputAlert['avatar']['image'] = htmlspecialchars_uni($outputAlert['avatar']['image']);
If you can't reproduce it, then it might conflict with another plugin. I will make an exclusion check. Can it be a problem with cache?
The previous code with fixed dimensions worked fine. Anyway I will check more accurately.
Edited: Checked. It conflicts with profilecomments, but the avatars of received alerts are still taking size of chosen configuration in MyAlerts configuration, in my case 34x34. See attachment.
In this test board, the admin blondie received alerts for pm's sent from TShadow and pippo and their avatars changed to 34x34, whilst the avatar from blondie remained with the default dimensions. Now receiving an alert from blondie, the default size also will change to 34x34. This happens on the member list, the profile and postbit. No other plugins were activated. Default theme.
Very odd. It shouldn't cause any type of conflict as the format_avatar function shouldn't change the image or anything except return the dimensions and image path. I'll triple check this though to see what might be causing it.