Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Global avatar function

  • Profile photo of Henry
    Henry
    Participant

    @henrywright-1

    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)
  • Profile photo of m1000
    m1000
    Participant

    @m1000

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

    Profile photo of Henry
    Henry
    Participant

    @henrywright-1

    @m1000 perfect! thank you.

    Profile photo of Henry
    Henry
    Participant

    @henrywright-1

    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.

    Profile photo of kizmark
    kizmark
    Participant

    @kizmark

    thanks

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