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

Overlay on avatar click question

Discussion in 'XenForo Development Discussions' started by Wuebit, May 30, 2011.

  1. Wuebit

    Wuebit Well-Known Member

    am trying to add this on a custom page to the avatars (from xenforo)

    Is it this ?
    because ive tryed tons without luck

    you can see the xenforo avatar here

  2. ragtek

    ragtek Guest

    There's a helper which can/should be used
    <xen:avatar user="$user" size="s" img="true" />
  3. Wuebit

    Wuebit Well-Known Member

    Yea for a none xenforo site am trying I tryed that without luck
  4. ragtek

    ragtek Guest

    Then it should be something like

    <a{$href} class=\"avatar Av{$user[user_id]}{$size}{$class}\"{$attribs} data-avatarHtml=\"true\">{$image}{$content}</a>

    BUT you'll need to include the xenforo.js too (and also initialize it)
  5. Wuebit

    Wuebit Well-Known Member

    Thanks but I thought some html might of worked with me pulling most of the xenforo css and Js no worrys

    Undefined variable: href
  6. ragtek

    ragtek Guest

    you need to change all variables into real values ;)
    Vodkaholic likes this.

Share This Page