PDA

View Full Version : Standard Fixed Avatar Size Hack?


imported_NietzscheKid
04-07-2004, 12:00 PM
Hello everyone,

I am looking for a hack that allows a fixed avatar size.

Example:

My fixed settings for the forum:

- 200x200
- xxxx kb

If someone uploads an avatar from their hard-drive or from an url that is bigger than the settings I mentioned above, e.g. an image with the size of 400 something, then it will show up as 200x200 regardless of the size of the picture.

The problem I have is that we have 6,000 members and many have HUGE avatars. But I don't want every single one of them to re-set their avatars and change them manually because it would mean more work for me as many don't even know how to reset a size of a pic. So, what I really would love to have is the option for people to enter their avatars of any given size and the forum will automatically show a standard size of 200x200.

Is there a hack for this already perhaps and I just didn't find it?

If not, is there a possibility to create such a hack? A few years ago, I was still running the horrible YaBB software and this software had something like this as a standard feature. So, I suppose it is possible to make such a hack for VB3 as well?

Anyway, thank you for any help you can give me. :)

Best regards,

NietzscheKid

Logikos
04-07-2004, 12:52 PM
In your postbit template find:


<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>


Replace with:

<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]" width="xx" height="xx">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>


Replace xx with the new rule your enforcing. Hope this helps.

Vb-Hispano
04-09-2004, 05:01 PM
no working :(