![]() |
PP5.5 : Avatars too large with IB2 + fix suggestion When using Invision Board 2 integration, avatar's width and height is not restricted. It sometimes breaks the comments layout when members are using too large avatars. Here is what I use on my gallery, the code has been backported from IB2 sources. In file forums/ib2.php, in function get_profiledata(), around line 166 : 1) We need to fetch avatar's size from database (changes highlighted in red) : Code: Content visible to verified customers only.Code: Content visible to verified customers only. |
So your saying IB2 does not restrict avatar sizes like other forums? I dont own it so I cant say which is why I ask. Most forums have an avatar size restriction and resize to this set size |
Yes, I was very surprised when I discovered that some avatars on my board were not resized as they should be. Here are suppositions : As other boards, IB2 has a setting to restrict avatars size. New uploaded avatars are correctly resized following this setting. But what happends if you change this settings after that some avatars were uploaded ? I don't think IB2 will resize thousands existing avatars to adapt it with the new setting. Another explaination : IB2 allows to use avatars hosted by a distant website. In that case, IB2 has no control over avatar's width/height. I think these 2 examples can explain why they added a width & height parameter in <img> tag. |
This occurs when a user chooses a remotely hosted avatar, and it's larger than the standard setting. |
Are there any plans to officially implement this fix? It's still an issue with the latest 5.62 release. The fix provided by flat continues to work once added (Thanks flat :)) |
| All times are GMT -5. The time now is 02:33 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0