Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Member Directory Profiles

Simple Membership Plugin › Forums › Simple Membership Plugin › Member Directory Profiles

  • This topic has 2 replies, 2 voices, and was last updated 2 years, 9 months ago by Anonymous.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 30, 2023 at 4:04 am #27537
    Anonymous
    Inactive

    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.

    December 30, 2023 at 11:21 pm #27539
    The Assurer
    Moderator

    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/

    December 30, 2023 at 11:24 pm #27540
    Anonymous
    Inactive

    Many thanks! Much appreciated!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy