Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,003
- How-to & Troubleshooting
- 129,526
- Creating & Extending
- 25,789
- Requests & Feedback
- 9,495
- Third Party Plugins
- 9,781
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,169
-
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;
}
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS