BuddyBoss Home – Web Support Forums Themes Boss. theme Profile URL for logged in user

Tagged: 

  • This topic has 3 replies, 3 contibutors, and was last updated 9 years ago by Anonymous.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #51165
    @gdecuir

    Hi, what is the logged in user’s url to his profile page.

    Answers

    #51177

    Anonymous
    @

    Hi @gdecuir, The default url for user’s profile page is: http://www.yourdomain.com/members/username/profile/

    Regards
    Pallavi

    #51223
    @gdecuir

    Hi Pallavi, That works if I know the users name. I want to place a link on a page where I’m not sure who the logged in user is. Is there a URL that will direct the “logged in” user to their profile page via a page link. Thanks

    #51247

    Anonymous
    @

    Hi @gdecuir, you can use following approach

    
    <?php echo bp_core_get_userlink( bp_loggedin_user_id() ); ?>
    
    or
    
    <a href="<?php echo bp_loggedin_user_domain(); ?>">Profile</a>
    

    Regards
    Varun Dubey

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Profile URL for logged in user’ is closed to new replies.