Notifications
Clear all

wpForo 1.x.x [Solved] Edit My profile

3 Posts
2 Users
0 Likes
3,014 Views
Posts: 2
 Ranz
Topic starter
(@ranz)
New Member
Joined: 7 years ago

Hello, after the 1.3.0 update I am having issues with the admin bar. Before the "edit my profile", picture, and profile name from the admin bar would link to the wpforo profile, but now it links to the wp-admin profile. I am out of luck on how to fix it and it creates a big problem for my site.

2 Replies
Robert
Posts: 10506
Admin
(@robert)
Support Team
Joined: 8 years ago

This has been removed, we'll make it optional in future releases. Currently you can put this code in your  WordPress theme functions.php file to bring it back:

function wpforo_change_default_edit_user_page( $url, $userid, $scheme ) {
    global $wpforo;
    return $wpforo->member->get_profile_url($userid);   
}
add_filter( 'edit_profile_url', 'wpforo_change_default_edit_user_page', 10, 3 );
Posts: 2
 Ranz
Topic starter
(@ranz)
New Member
Joined: 7 years ago

Nevermind thank you though, I just figured it out myself before you replied using this method.

add_filter( 'edit_profile_url', 'sdac_custom_profile_url', 10, 3 );
function sdac_custom_profile_url( $url, $user_id, $scheme ) {
    $url = site_url( '/forum/account/'. $current_user_id = get_current_user_id() .'/' );
    return $url;
}