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

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" />
 
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 :)
 
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 ?
 
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>
 
Top Bottom