MyBB Community Forums

Full Version: Where to change default avatar?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I got a problem with my default avatar.  Simply it just says avatar next to my username when i post something however i inspect element there is no default avatar selected?
 <img alt="avatar" src=" "></img>

Can someone tell which template i can change this on i've been crawling for an hour but couldn't find anything.

Just bare in mind the default avatar only doesn't show on new posts.
what templates are you editing? not sure about what you want, but you should have {$post['useravatar']} on postbit templates.

if you want to change your default avatar, you can change on admin cp-> configuration -> profile options -> Default User Avatar
(2016-01-24, 05:53 PM)Blackbeard Wrote: [ -> ]what templates are you editing? not sure about what you want, but you should have {$post['useravatar']} on postbit templates.

if you want to change your default avatar, you can change on admin cp-> configuration -> profile options -> Default User Avatar

Okay i have the default avatar set already, this is how it looks like;

[Image: LGBcIOS.png]

When i upload my own avatar everything works normal.
can you post here your postbit templates?
Not sure what you are exactly asking but this is postbit_avatar:

<a href="{$post['profilelink_plain']}"><img src="{$post['useravatar']}" alt="avatar" {$avatar_width_height} /></a>
try with this:
<a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" {$useravatar['width_height']} /></a>

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

and see if works.
(2016-01-24, 06:10 PM)Blackbeard Wrote: [ -> ]try with this:
<a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" {$useravatar['width_height']} /></a>

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

and see if works.

The first one worked perfectly bro thank you so much, just one more thing i need to ask you while you are here. Can you show me where to add some padding between the avatar and username?
not sure about this (never done it before), but you probably need to add it on global.css and then call it on postbit templates. 

also check this link. (what you want is padding top or bottom, check examples)