Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Global avatar function

  • @henrywright-1

    Member

    Is there a function available to display the user’s avatar on every page of the site once logged in? I’m looking to build a custom navbar and have the member’s photo displayed in it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @m1000

    Participant

    bp_loggedin_user_avatar( ‘type=thumb&width=100&height=100’ )

    @henrywright-1

    Member

    @m1000 perfect! thank you.

    @henrywright-1

    Member

    Just to add, at larger width/height sizes that function seems to assume a thumb size so you have to specify type=full along with your width and height or you’ll get a blurry photo.

    @kizmark

    Participant

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Global avatar function’ is closed to new replies.
Skip to toolbar