PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   PP5.5 : Avatars too large with IB2 + fix suggestion (http://www.photopost.com/forum/photopost-pro-bug-reports/127602-pp5-5-avatars-too-large-ib2-fix-suggestion.html)

flat October 1st, 2006 04:20 AM

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.
2) Then, we can use it to set avatar size (changes highlighted in red) :
Code:

Content visible to verified customers only.

Chuck S October 1st, 2006 08:28 AM

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

flat October 1st, 2006 09:01 AM

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.

Chris Marks October 10th, 2006 04:52 PM

This occurs when a user chooses a remotely hosted avatar, and it's larger than the standard setting.

Chris Marks December 9th, 2006 11:18 PM

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97