[RSS Feed/News] Avatar template syntax?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
What would be the proper avatar code to display in a template within my loop?

I've tried <xf:avatar user="{$value.user_id}" size="s" defaultname="{$value.username}" /> within my own foreach loop, yet it doesn't return a user_id.

I've also tried

Code:

<img src="{{ link('data/avatars/m/') }}{{ number(floor({$value.user_id})/1000) }}/{$value.user_id}.jpg" alt="{$value.username}" />

and it works, however the issue is the number(floor part. It seems to round up over 5.

For...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom