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.
<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?
- The topic ‘Profile Link?’ is closed to new replies.