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

How can I add a different link for visitor panel avatar?

Discussion in 'Styling and Customization Questions' started by kkm323, Aug 29, 2012.

  1. kkm323

    kkm323 Well-Known Member

    In the sidebar visitor panel I see this code which represent the your avatar
    <xen:avatar user="$visitor" size="s" img="true" />
    When you press the avatar it takes you to the member-card. I would like to change that link to "Avatar Editor"
    How can I add a different link to this code?
    <xen:avatar user="$visitor" size="s" img="true" />
     
  2. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    Changing it to:
    Code:
    <a class="Av{$user.user_id}s OverlayTrigger" href="{xen:link account/avatar}">
            <img src="{xen:helper avatar, $user, s, 'true'}" alt="{$user.username}" style="{xen:helper avatarCropCss, $user}" itemprop="photo" />
    </a>
    would do the trick :)
     
  3. kkm323

    kkm323 Well-Known Member

    this code doesn't show the user avatar it shows the unknown avatar only ?
     
  4. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    oops my mistake :D
    use:
    Code:
    <a class="Av{$visitor.user_id}s OverlayTrigger" href="{xen:link account/avatar}"> <img src="{xen:helper avatar, $visitor, s, 'true'}" alt="{$visitor.username}" style="{xen:helper avatarCropCss, $visitor}" itemprop="photo" /> </a>
     
    sheel and kkm323 like this.
  5. kkm323

    kkm323 Well-Known Member

    Thank you very much
     

Share This Page