BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Wall › User's wall and profile
- This topic has 1 reply, 2 contibutors, and was last updated 10 years, 3 months ago by Alyssa.
Question
August 20, 2014 at 5:23 pm #30803@palmdocWith 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
August 21, 2014 at 11:51 am #30816@alyssa-buddyboss
AlyssaParticipantThanks for sharing Alan. I think this is very useful information for BuddyBoss users.
- The question ‘User's wall and profile’ is closed to new replies.