MyBB Community Forums

Full Version: How to get avatars to set like this in post bit?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there. I am creating a forum with MyBB Software and have come across a question. How can I make the postbit avatar set to how it shows below: 

http://imgur.com/a/MhEhO

Basically, have it have a set width, but have the height fit perfectly, if that makes sense.

My board url is: http://tunerheat.com/
In ACP under profile options, you can try to set the dimensions like this:

40|

leaving the height blank, that way the browser will resize accordingly. Not sure if that will work. Alternatively, you edit the postbit_avatar template and change

<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" {$useravatar['width_height']} /></a></div>

to something like

<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" width="40" /></a></div>

again leaving the height attribute blank.
(10-02-2016, 12:27 AM)Ashley1 Wrote: [ -> ]In ACP under profile options, you can try to set the dimensions like this:

40|

leaving the height blank, that way the browser will resize accordingly. Not sure if that will work. Alternatively, you edit the postbit_avatar template and change

<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" {$useravatar['width_height']} /></a></div>

to something like

<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" width="40" /></a></div>

again leaving the height attribute blank.

I think that may have worked. Unsure http://tunerheat.com/showthread.php?tid=2&pid=2#pid2