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

XF 1.5 Breaking xen:username and xen:avatar linking

Discussion in 'XenForo Questions and Support' started by dethfire, Feb 3, 2016.

  1. dethfire

    dethfire Well-Known Member

    How do you stop xen:username and xen:avatar from automatically making a link to the users profile?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Use template helpers for the raw values:

    {xen:helper avatar, $user, m}
    {xen:helper richusername, $user}
    avatar will return just the avatar location for use in a href.

    richusername will return a marked up version with group styling but no hyperlink.
    dethfire likes this.
  3. dethfire

    dethfire Well-Known Member

    How would this work with <xen:username user="$forum.lastPost" />?

    Also how to unlink
    <xen:datetime time="$forum.lastPost.date" class="muted lastThreadDate" data-latest="{xen:phrase latest}: " />

Share This Page