Page 1 of 1

Using WP_w3all with WP Social Login

Posted: Sun Sep 18, 2016 8:15 am
by axew3
Hello, I’m wishing to use WP Social Login and I wish to know how to go about this? It obviously works, but it creates the session for WP, rather than for phpBB (like the normal login does). Could you please assist me in solving such problem?
Open wp_w3all.php

search for line:

Code: Select all

add_action( 'wp_logout', array( 'WP_w3all_phpbb', 'wp_w3all_phpbb_logout' ) );
immediately after, add this:

Code: Select all

// START add fix for WordPress Social Login

    function wp_w3all_wordpress_social_authenticated( $user_user_login, $user ) { 
 
 
     if ( $_GET['action'] == 'wordpress_social_authenticated' ):

        $phpBB_user_session_set = WP_w3all_phpbb::phpBB_user_session_set_res($user); 
     
     endif;
    
   } 
             
add_action( 'wp_login', 'wp_w3all_wordpress_social_authenticated', 10, 2 ); 
  
// END fix for WordPress Social Login