Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Creating a link to the member page


Greg
Participant

@rebootnow

Here is what I do (in BP 1.0.3):

function _profile_url( $login_name=0 ) {
global $bp;

/* if no login name is specified, use logged in user */
if ($login_name) {
$url = $bp->root_domain . '/members/' . $login_name . '/profile';
} else {
$url = $bp->loggedin_user->domain . 'profile';
}

return $url;
}

Skip to toolbar