Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Logged in avatar

  • Avatar of sixtyfour
    sixtyfour
    Participant

    @sixtyfour

    Hey guys, looking to show the users avatar and name when logged in on the homepage, I’ve tried to take from the profile section but it’s displays nothing.

    Can anyone lead me in the right direction?

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of meg@info
    meg@info
    Participant

    @megainfo

    hi,

    you mean the members directory ?

     

    Avatar of sixtyfour
    sixtyfour
    Participant

    @sixtyfour

    No, I want to display the profile avatar when logged in on the homepage.

    I tried taking code from the profile section and added it to the homepage but it didn’t work.

    How do you add the users avatar on the homepage?

    Avatar of meg@info
    meg@info
    Participant

    @megainfo

    hi,

    just call  bp_loggedin_user_avatar fuction, it print html code of the avatar (without echo)

    bp_loggedin_user_avatar( ‘type=full&width=150&height=150′ );

     

     

    Avatar of sixtyfour
    sixtyfour
    Participant

    @sixtyfour

    Awesome thanks, that worked perfectly!

    Avatar of ggsalas
    ggsalas
    Participant

    @ggsalas

    just call bp_loggedin_user_avatar fuction, it print html code of the avatar (without echo)

    bp_loggedin_user_avatar( ‘type=full&width=150&height=150′ );

    Hi @meg@info,

    This only works in activity or profile page. In wordpress pages not load the avatar.

    Greetings

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.