MyBB Community Forums
postbit avatar size (no fixed width) - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Support (https://community.mybb.com/forum-10.html)
+---- Thread: postbit avatar size (no fixed width) (/thread-218813.html)



postbit avatar size (no fixed width) - makpaolo - 2018-07-22

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


RE: postbit avatar size (no fixed width) - makpaolo - 2018-07-23

any help ples ? Big Grin


RE: postbit avatar size (no fixed width) - Wires - 2018-07-23

ACP > Configuration > Show Thread Options > Maximum Avatar Dimensions in Posts

Adjust as necessary.


RE: postbit avatar size (no fixed width) - makpaolo - 2018-07-23

(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?


RE: postbit avatar size (no fixed width) - Wires - 2018-07-23

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.