Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: One profile page to rule them all


af3
Participant

@af3

The code from detective works. I’m using wpmu+bp+bb; so i added this to bb theme functions.php (yes! if you dont have custom functions.php, just create one) and it works.

add_action(‘bb_init’, ‘profile_redirect’);

function profile_redirect() {

if (is_bb_profile() && $_GET != ‘edit’ && $_GET != ‘favorites’) {

$user = bb_get_user($_GET);

if ($user) wp_redirect(“http://www.example.com/members/” . $user->user_nicename);

}

}

now, trying to find code to show user’s forum (bbpress) posts to show in the BP profile.

Skip to toolbar