- This topic has 2 replies, 2 voices, and was last updated 2 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Member Directory Profiles
I am using BuddyPress on my website for profiles. When I click on a member’s “View Profile” button in Member Directory the shortcode takes me to Simple Membership Profiles, as it should.
I know that to change the link I go to Member Details Page URL, but I can’t figure out the correct URL or shortcode to make it go to the BuddyPress member profile.
A coder, many years ago, created the following for me for my functions.php file, but neither the shortcodes, nor the URLs are working.
/* Custom Menu Shortcodes */
add_shortcode( ‘bp_user_profile_link’, ‘bp_user_profile_link_shortcodes’);
function bp_user_profile_link_shortcode( $atts ){
$atts = shortcode_atts( array(
‘text’ => ‘Profile’,
‘target’ => ”
), $atts );
if( !is_user_logged_in() )
return ”;
$target_link = bp_loggedin_user_domain();
switch( $atts[‘target’] ){
case ‘settings’ : $target_link .= ‘settings/’; break;
case ‘profile’ : $target_link .= ‘profile/’; break;
case ‘edit_profile’ : $target_link .= ‘profile/edit/’; break;
}
return “” . $atts[‘text’] . ““; }
/* Begin – Change Profile Settings -> Change My Password menu */
function wp_username_in_nav( $menu ){
global $current_user;
return $menu = str_replace(‘–sububsername–‘, $current_user->user_login, $menu );
}
add_filter( ‘wp_nav_menu’, ‘wp_username_in_nav’ );
I know this isn’t your responsibility but you have been so helpful before that I thought I’d ask. If it isn’t appropriate for this forum, since it is BuddyPress, I do understand.
Thank you.
It is beyond the scope of the free support forum, to help you update your custom code; that was not written by us. However, you might want to see if our Paid Support option might work for you.
https://simple-membership-plugin.com/paid-support-simple-membership-plugin/
Many thanks! Much appreciated!