Profile Link?
-
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.
-
This interests me as well. Tried searching and got this:
* Example of a component that is NOT a root component:
581 * Friends: http://domain.com/members/andy/friends
582 * http://community.domain.com/members/andy/friends
583 * http://domain.com/wpmu/members/andy/friends
584 *
from
The answer is here:
https://buddypress.org/forums/topic/how-to-create-custom-linksget_userurl#post-13526
For example:
‘loggedin_user->id); ?>activity/my-friends”>Your Friends Activity‘
or perhaps
The above code doesn’t show properly. Didn’t get the <code block> ‘ to work. (this just concerns the above post)
- The topic ‘Profile Link?’ is closed to new replies.