XenForo
Administrative
- Thread starter
- Admin
- #1
What would be the proper avatar code to display in a template within my loop?
I've tried
I've also tried
Code:
and it works, however the issue is the
For...
Read more
ادامه مطلب...
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
ادامه مطلب...