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

XF 1.5 Avatars in custom sidebar

Discussion in 'Styling and Customization Questions' started by GoreLite, May 26, 2016.

  1. GoreLite

    GoreLite New Member

    I'm trying insert last posts widget in custom sidebar, but avatars in thread list have default image.

    To show avatars I'm using code
    <xen:avatar user="$thread" size="s" img="true" />
    and I have result
    <a data-avatarhtml="true" class="avatar Av1s" href="members/raingod.1/"><img width="48" height="48" alt="Raingod" src="styles/default/xenforo/avatars/avatar_s.png"></a>

    I trying to debug and see that request from my widget doesn't have "avatar_date".
    How I can fix it?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Is the widget you are referring to from an add-on?

    If so, you will need to post in the resource thread.
  3. GoreLite

    GoreLite New Member

    But, when I swith of the add-on and insert code from template "sidebar_new_posts" to "thread_list" I have the same trouble with avatars.

Share This Page