BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall User's wall and profile

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #30803
    @palmdoc

    With BuddyBoss wall it’s getting very Facebook like in Functionality – excellent.

    One of the issues I have had in my forum is folks not knowing where to edit their profile or how to get to their own wall. This original solution posted in Buddypress forums works well for me so I’m sharing this info here in case someone sees a need for it

    The solution involves creating custom URLs so that these links go to the user’s Profile page and own Wall.

    1. Create blank “profile” and “mywall” pages
    2. Put this in your functions.php in your child theme:

    // Add Profile Page
    function redirect2profile(){
            include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
            if($_SERVER['REQUEST_URI'] == '/profile/' && is_plugin_active('buddypress/bp-loader.php') && is_user_logged_in()){
                    global $current_user;
                    wp_redirect( get_bloginfo('url') . '/members/'. $current_user->user_login . '/profile/'); 
                    exit();
            }
     }
    add_action('init', 'redirect2profile');
    
    // Add Wall Page
    function redirect2wall(){
            include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
            if($_SERVER['REQUEST_URI'] == '/mywall/' && is_plugin_active('buddypress/bp-loader.php') && is_user_logged_in()){
                    global $current_user;
                    wp_redirect( get_bloginfo('url') . '/members/'. $current_user->user_login . '/'); 
                    exit();
            }
     }
    add_action('init', 'redirect2wall');

    so yoursite.com/profile and yoursite.com/mywall will go to the user’s profile page and wall respectively

    Answers

    #30816

    Alyssa
    Participant
    @alyssa-buddyboss

    Thanks for sharing Alan. I think this is very useful information for BuddyBoss users.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘User's wall and profile’ is closed to new replies.