Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: One profile page to rule them all

If you have a WP profile (like the author archive or some other profile) you can redirect the bbPress profile using this hook:

//add_action('bb_init', 'profile_redirect');

function profile_redirect() {
if (is_bb_profile() && $_GET['tab'] != 'edit' && $_GET['tab'] != 'favorites') {
$user = bb_get_user($_GET['id']);
if ($user) wp_redirect("http://www.example.com/member/" . $user->user_nicename);
}
}

I did this using this plugin for WordPress profiles, so even users who don’t have published posts have a profile. It works but you miss the profile edit messages (like “your profile has been updated”).

Skip to toolbar