How to display currently logged in user profile picture/avatar?
-
I see it in the app.user in the header, but how would I call that?
I tried{picture}
{user.picture}
Any ideas?
I put the underscores so they wouldn't parse an Imgur link automatically.
EDIT: I think I found a bug, or maybe not... type this in the composer:
...and it will parse a random Imgur link. Weird. Bug worthy? -
It would be { user.picture } I think
-
Nah that doesn't work.
-
@trevor it looks like right now the picture is passed into the templating engine only with the header template. You could add them else where if you want, or you could just add some JavaScript to parse it client side.
-
Copyright © 2024 NodeBB | Contributors