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

Remove <a> from <xen:avatar>

Mike Creuzer

Well-known member

Here is my code:
<xen:avatar user="$visitor" size="s" class="NoOverlay plainImage" title="{$visitor.username}" />
It returns:
<a href="index.php?members/mike-creuzer.1/" class="avatar Av1s NoOverlay plainImage" title="Mike Creuzer" data-avatarhtml="true"><span class="img s" style="background-image: url('styles/planet-liebe/xenforo/avatars/avatar_male_s.png')"></span></a>
Is there any way to remove the anchor tag?



Well-known member
{xen:helper avatar, $visitor, l}
Where $visitor is an array that contains at least 4 types of data:
  • user_id
  • username
  • gravatar - link to gravatar, NULL if user hasn't any
  • avatar_date - the date when avatar was uploaded
l - the size. It may be s, m, l.
There are 2 more options but I don't remeber exactly what they do.

Mike Creuzer

Well-known member
Ah thank you, I tried this and got an errror, but had spelled visitor wrong :p. I was wondering what was going on. Thank you so much!