017
Member
I've been trying to parse users' avatars in CSS to use them in backgrounds instead of fitting them on member cards, but not having a whole lot of luck with it. It seems that even if I try using helpers inside style settings for <div> tags or whatnot it doesn't load. Is there a way for me to get an avatar's URL for background-image styling at all in xenforo?
Some examples of what I'm doing:
Basically I'm just attempting to fit the user avatar into the member card avatar cropper background instead of using an HTML IMG tag and mucking around with fitting that to it.
Some examples of what I'm doing:
HTML:
<a class="avatar NoOverlay Av{$user.user_id}l" href="{xen:link members, $user}" style="background-image: url("{xen:helper avatar, {$user}, l}"); background-position: center; background-size: cover;"></a>
Basically I'm just attempting to fit the user avatar into the member card avatar cropper background instead of using an HTML IMG tag and mucking around with fitting that to it.