Forum Replies Created

Viewing 1 replies (of 1 total)
  • I *think* this is all you need to do to get SFC working with BP:

    Copy the function sfc_login_profile_page, around line 48 of sfc-login.php, to the functions.php file in your theme and rename it to something like sfc_login_profile_page_my_site($profile).

    Then look for :
    $fbuid = get_usermeta($profile->ID, ‘fbuid’);
    Replace it with :
    global $bp;
    $fbuid = get_usermeta($bp->loggedin_user->id , ‘fbuid’);

    Finally you need to add the ‘connect’ button to the BP edit profile page : just after the closing ‘}’ of your new function add:
    add_action(‘bp_after_profile_edit_content’,’sfc_login_profile_page_my_site’);

Viewing 1 replies (of 1 total)