Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: New FB Autoconnect Plugin for WP…will it work with MU/BP?

@justin_k – I understand your motives, but it is more an ethical/privacy issue. You should perhaps at least let people know that you are harvesting server details. There may be private unlaunched sites that do not want the details of their setup exposed without their knowledge.

The best way to integrate this into BP is to put this code in a custom plugin or in bp-custom.php file. That way you don’t have to edit the theme at all. This code would also be great if it was added to the actual plugin ;) :

function bp_add_fb_login_button() {
if ( !is_user_logged_in() ) {
if ( function_exists( 'jfb_output_facebook_btn' ) ) {
jfb_output_facebook_btn();
jfb_output_facebook_init();
jfb_output_facebook_callback();
}
}
}
add_action( 'bp_after_sidebar_login_form', 'bp_add_fb_login_button' );

That way anyone activating this plugin when using BuddyPress won’t have to do anything else, the login button will just appear on the login sidebar form.

Skip to toolbar