Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile Link?


  • Sparksdontflyup
    Participant

    @sparksdontflyup

    So I’m creating my own AdminBar, is the style of Facebook, and I need to know how to make a link to a users profile.

    I have:

    <li><a href="<?php bp_core_get_user_domain() ?>" alt="Profile">Profile</a></li>

    And I’m thinking that should should link to

    http://[siteurl]/members/[logged in user's username]/

    and then I can expand from that with my other links like

    <li><a href="<?php bp_core_get_user_domain() ?>/friends/" alt="Friends">Freinds</a></li>

    For the rest of the links that expand from a users profile.

    It doesn’t work. What’s the correct php code to output the logged-in users profile url in a ‘href’ attribute?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Profile Link?’ is closed to new replies.
Skip to toolbar