Solved: 5 Years, 2 Months, 4 Weeks ago [How To?] Where to change default avatar?
#1
Solved: 5 Years, 2 Months, 4 Weeks ago
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.
Reply
#2
Solved: 5 Years, 2 Months, 4 Weeks ago
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
Owner of ForumAnime.PT
Reply
#3
Solved: 5 Years, 2 Months, 4 Weeks ago
(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.
Reply
#4
Solved: 5 Years, 2 Months, 4 Weeks ago
can you post here your postbit templates?
Owner of ForumAnime.PT
Reply
#5
Solved: 5 Years, 2 Months, 4 Weeks ago
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>
Reply
#6
Solved: 5 Years, 2 Months, 4 Weeks ago
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.
Owner of ForumAnime.PT
Reply
#7
Solved: 5 Years, 2 Months, 4 Weeks ago
(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?
Reply
#8
Solved: 5 Years, 2 Months, 4 Weeks ago
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)
Owner of ForumAnime.PT
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)