1. 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>

Discussion in 'Styling and Customization Questions' started by Mike Creuzer, Jan 3, 2012.

  1. Mike Creuzer

    Mike Creuzer Well-Known Member

    Hello!

    Here is my code:
    Code:
    <xen:avatar user="$visitor" size="s" class="NoOverlay plainImage" title="{$visitor.username}" />
    It returns:
    Code:
    <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?

    Thanks,
    Mike
     
  2. CyberAP

    CyberAP Well-Known Member

    Use the {xen:helper avatar, '$array'}
     
  3. Mike Creuzer

    Mike Creuzer Well-Known Member

    Is there any documentation for this?
     
  4. Mike Creuzer

    Mike Creuzer Well-Known Member

    Could you offer an example please? :)
     
  5. CyberAP

    CyberAP 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 likes this.
  6. Mike Creuzer

    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!
     

Share This Page