• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Problem showing avatar on forumbits

Miner

Well-known member
#1
We are working on a new theme Metro and facing one problem in displaying the avatar on forum home for last post, if member have custom avatar it is displaying but the no avatar default image is not showing up when a member not specified a custom avatar.

Screenshot http://minerskinz.com/update/metroxen/metro_home.jpg

This is one issue which is stopping us the style release:( any help please...
 

Miner

Well-known member
#3
Thanks Mattw,
I am requiring this for my commercial theme so i am not able to use plugins made from other authors, it seems no ways to implement this with template edits, we need to create our own plugin :eek:
 

ManOnDaMoon

Well-known member
#4
What are you using in order to fetch the avatar?

I'm using
Code:
{xen:helper avatar, {$user}, s}
on my site. If I remember clearly, I was forced to use XenForo_Model_User::getFullUserById() in order to get it working.

EDIT : You can also use
Code:
<xen:avatar user="$user" size="s" img="true" />
Tell me which one is failing.
 

Miner

Well-known member
#5
What are you using in order to fetch the avatar?

I'm using
Code:
{xen:helper avatar, {$user}, s}
on my site. If I remember clearly, I was forced to use XenForo_Model_User::getFullUserById() in order to get it working.

EDIT : You can also use
Code:
<xen:avatar user="$user" size="s" img="true" />
Tell me which one is failing.
I am not the the tech guy designing is my skill :) my partner who is the tech guy created a custom plugin and its working fine in our theme.

Thanks for the tip and help.(y)