Using WP_w3all with WP Social Login

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Using WP_w3all with WP Social Login

Using WP_w3all with WP Social Login

by axew3 » Sun Sep 18, 2016 8:15 am

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

Top