XF 2.0 Get Avatar URL

smt287

Member
Hi, as you read in the title, i need the code to create the avatar link.

example: https://SITE_NAME/data/avatars/o/14/14267.jpg?1533002242
How do I get this link with code?
 

smt287

Member
{$user.getAvatarUrl('o', null, true)}
Thanks, but I just want to get the avatar of a user I wrote. Is there a place I can type id in this code?
Can we also get the username as getUserName in the same way?
 
Top