MyBB Community Forums

Full Version: postbit avatar size (no fixed width)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi everyone so starting mybb new again and forgot how to do a few thingsĀ  Sleepy

1. how to get postbit avatars like these:
[Image: 5ba64ce7ac5c40a7648a999aa1b871df.png]

https://gyazo.com/5ba64ce7ac5c40a7648a999aa1b871df
any help ples ? Big Grin
ACP > Configuration > Show Thread Options > Maximum Avatar Dimensions in Posts

Adjust as necessary.
(2018-07-23, 10:38 PM)Wires Wrote: [ -> ]ACP > Configuration > Show Thread Options > Maximum Avatar Dimensions in Posts

Adjust as necessary.

not something like that, but would this work ?

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

or maybe more editing needing?
You wouldn't be able to use that in the field mentioned above. That's for the postbit_avatar template. The field mentioned above is only to set the maximum dimensions of an avatar in the postbit. So for example, if you were to set it to 200x200, any avatars below those dimensions would take their original size.

Edit: If you put that in your postbit_avatar template, the height would be undefined, the setting will no longer be used and I believe avatars would be able to take up the whole of the postbit if big enough. I wouldn't recommend this.