MyBB Community Forums

Full Version: Avatars are distorted crush
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

The avatars on my forum are distorted crush

https://www.scooter-chinois-4t.com/mybb/...ansmission
(2017-08-12, 12:29 PM)sc4t Wrote: [ -> ]Hello!

The avatars on my forum are distorted crush

https://www.scooter-chinois-4t.com/mybb/...ansmission

It's distorting because both height and width attributes are set:

This is your view source;

<div class="author_avatar"><a class="w3-hover-opacity" href="Utilisateur-Richiz9-0"><img class="w3-circle" src="https://www.scooter-chinois-4t.com/mybb/...1501256221" alt="" width="100" height="57"></a></div>

You need to adjust your avatar dimensions in ACP to suit, or in the postbit_avatar template, remove the variable {$useravatar['width_height']} and hardcode the dimensions in, eg.

<div class="author_avatar"><a class="w3-hover-opacity" href="{$post['profilelink_plain']}"><img class="w3-circle" src="{$useravatar['image']}" alt="" style="width:100"></a></div>
thank you very much