• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

How to display currently logged in user profile picture/avatar?

Scheduled Pinned Locked Moved NodeBB Development
5 Posts 2 Posters 2.1k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • trevorT Offline
    trevorT Offline
    trevor Plugin & Theme Dev Anime Lovers GNU/Linux
    wrote on last edited by trevor
    #1

    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:

    Screen Shot 2015-03-14 at 10.59.45 AM.png
    ...and it will parse a random Imgur link. Weird. Bug worthy?

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #2

    It would be { user.picture } I think

    1 Reply Last reply
    0
  • trevorT Offline
    trevorT Offline
    trevor Plugin & Theme Dev Anime Lovers GNU/Linux
    wrote on last edited by
    #3

    Nah that doesn't work.

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to trevor on last edited by
    #4

    @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.

    trevorT 1 Reply Last reply
    1
  • trevorT Offline
    trevorT Offline
    trevor Plugin & Theme Dev Anime Lovers GNU/Linux
    replied to PitaJ on last edited by
    #5

    @pitaj said:

    you could just add some JavaScript to parse it client side.

    That is more than likely what I'll have to do for now until this can passed globally. Thanks @pitaj

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development