2023-05-07, 07:18 AM
2023-05-07, 11:17 AM
Call the avatar variable in an image tag.
Note that if someone does not have a custom avatar set it won't show anything so you use this instead.
<img src="{$mybb->user['avatar']}" />
Note that if someone does not have a custom avatar set it won't show anything so you use this instead.
<img src="{$mybb->user['avatar']}" onerror="this.onerror=null;this.src='INSERTDEFAULTAVATARIMGURLHERE';" />
^ insert your default avatar image url there. most folks are /images/default_avatar.png2023-05-07, 03:06 PM
How do I add an author avatar on the forumdisplay page?