MyBB Community Forums
[F] Maximum Avatar Dimensions in Posts PROBLEM [C-Chris] - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: Archived Bug Reports (https://community.mybb.com/forum-74.html)
+------ Forum: MyBB 1.4.2 (https://community.mybb.com/forum-100.html)
+------ Thread: [F] Maximum Avatar Dimensions in Posts PROBLEM [C-Chris] (/thread-39604.html)



[F] Maximum Avatar Dimensions in Posts PROBLEM [C-Chris] - labrocca - 2008-10-26

This setting allows for a 100x100 (width by height). If you use a capital X...width is zero and height it blank.

Same problem for "Maximum Display Avatar Dimensions" setting too.

Easy fix would be strtolower before input to database.


RE: Maximum Avatar Dimensions in Posts PROBLEM - Ryan Gordon - 2008-10-26

Would be nice if PHP had a case insensitive explode()


[F] Maximum Avatar Dimensions in Posts PROBLEM - Ryan Gordon - 2008-10-26

Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group


RE: [F] Maximum Avatar Dimensions in Posts PROBLEM - Michael S. - 2008-11-11

Revision 4254

This fix is incomplete. The problem still appears in the memberlist.

In memberlist.php find:
list($max_width, $max_height) = explode("x", $mybb->settings['memberlistmaxavatarsize']);
Replace with:
list($max_width, $max_height) = explode("x", my_strtolower($mybb->settings['memberlistmaxavatarsize']));



RE: [F] Maximum Avatar Dimensions in Posts PROBLEM - Ryan Gordon - 2008-11-11

Ah, that was a completely separate setting