Archived topic
Better access to our bbpress profile page
10 replies · Started by Pete on March 9, 2016
Hi Tom, I always struggle to find my list of posts on this forum. There's no easily viewable link to my bbpress profile page with all my created forum posts. The only way I know how to find the page is to tap on my gravatar to take me there... So I find myself running around the forum trying to track down a post of mine to find my gravatar. My suggestion is to have a highly visible link to our bbpress profile page after we login on the front support page.
Cheers,
Pete
Good idea - I'll see what I can do :)
Tom
The following snippet will add a "profile" link to the top right of the nav menu for anyone that is logged in:
add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );
function my_nav_menu_profile_link($menu) {
if (!is_user_logged_in())
return $menu;
else
$current_user = wp_get_current_user();
$user=$current_user->user_login ;
$profilelink = '<li><a href="http://localhost/forum/forums/users/' . $user . '/edit">My Profile</a></li>';
$menu = $menu . $profilelink;
return $menu;
}
Kind Regards
Max
Nice! Thanks for sharing! :)
Maybe you can rework it a little to put a my profile link in the side bar under your Login button...
That's the plan :)
Has this been implemented?
Not yet, thanks for the reminder.
??
Hasn't been a priority as it's quite easy to access as is. I haven't forgotten, but major GP updates have been my complete focus lately.
fixed thanks