Help with BP integration
-
Hi there! Thank you VERY much for taking the time to help me here, I can’t tell you how much it means to me!
First off, some info for you…
Latest Buddypress version
Latest WordPress Version
Theme: Avada
New to wordpress and buddypressProject: Social networking website(Ambitious, I know…) Xenoko is going to be an online community for alternative art, music, fashion, and media with a darker, edgier flair. It will eventually be tied to ecommerce and individual shops and whatnot, but thats the future. For now, I just need a blog and forums and profile set up. I’m trying to create a substitute website on a budget until I get the money to pay for a professional solution.
Site: http://www.Xenoko.com
I will try to keep this direct and detailed, thank you for your help!
I think something might have gone wrong? Do I need to go into ftp and move the buddypress folder into my theme folder?
1.) I’m having trouble integrating buddypress into my site. When users click on My Account in the top right it takes them to a page with [woocommerce_my_account] shortcode on it. I’d like to turn that into a log in that takes them to their buddypress profile. Is this simply just a php function call? like bp_loggedin_user_domain() if I want the link to take the user to their profile when clicked on or something? How can I do this? Thanks!
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’);Using this code I could hijack a page I create called “profile”, but it doesnt bring you to a signup page if you arent logged in. I’m not very experienced with php, so thanks for your help.
2.) Similar the last question, I would like My Account to show as Log In before the user is logged in and My Account afterwards. I can’t remember the dynamic function to do so. I know its probably an If Else function, how would I implement it?
Again, I can’t tell you how happy I am for any support you can provide, it is invaluable!
- The topic ‘Help with BP integration’ is closed to new replies.