Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Maximum Avatar Dimensions in Posts PROBLEM [C-Chris]
#1
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.
#2
Would be nice if PHP had a case insensitive explode()
#3
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
#4
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']));
Greets,
Michael
-------------
[Image: donation_drive_sig.png]
#5
Ah, that was a completely separate setting


Forum Jump:


Users browsing this thread: 1 Guest(s)