i have a board with variable size avatars from 125x125 up to 200x200. this trick works but the 200x200 avatars are too big for the profile page box in sits in. so i figured out a way to set the dimensions by trial and error but there is one draw back. i set my dimensions at 125x125 but any avatar that a members adds that is less then 125x125 will be stretched and lose resolution. here is what i did:
Code:
fetch_avatar_from_userinfo($this->userinfo, true, false);
changed to
Code:
fetch_avatar_from_userinfo($this->userinfo, false, false);
Code:
($this->userinfo['avatarwidth'] ? ' width="'
changed to
Code:
($this->userinfo['avatarwidth'] ? ' width="125px'
Code:
($this->userinfo['avatarheight'] ? ' height="'
changed to
Code:
($this->userinfo['avatarheight'] ? ' height="125px'
with these dimensions an avatar can easily fit in the box. one other downside is if a member has a rectangular avatar, the shorter dimension will be stretched
can anyone provide any help on how to work around this? like rather then defining a set dimension, defining a maximum allowable dimension