• 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?

kkm323

Well-known member
#1
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" />
 

Mr. Goodie2Shoes

Well-known member
#2
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 :)
 

kkm323

Well-known member
#3
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 :)
this code doesn't show the user avatar it shows the unknown avatar only ?
 

Mr. Goodie2Shoes

Well-known member
#4
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>
 

kkm323

Well-known member
#5
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>
Thank you very much