Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Logged in avatar


  • 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)

  • meg@info
    Participant

    @megainfo

    hi,

    you mean the members directory ?

     


    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?


    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’ );

     

     


    sixtyfour
    Participant

    @sixtyfour

    Awesome thanks, that worked perfectly!


    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)
  • The topic ‘[Resolved] Logged in avatar’ is closed to new replies.
Skip to toolbar