Problem with new registered users

antoinegdln4
User www
User www
Posts: 70
Joined: Fri Nov 11, 2016 3:50 pm

Re: Problem with new registered users

Post by antoinegdln4 »

Maybe release a new version of w3all with the new file you give me before ?
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Problem with new registered users

Post by axew3 »

the best way would be that you let see the code what you've do, so we can discover why the joke not work.
the activation of the user into phpBB, if 'deactivate user until... ' is active option in plugin, fire on reset password event, and is tested working fine, and is working in the same way before (fire at execution of same exact event, nothing have been changed) except that the query, as well all plugin code, have change all main queries to search for email hashes into phpBB, this for two reasons:
1) email_hashes is index into db database and code is more fast when executed (but this has already been done in effect)
2) will be possible, when also something else will be changed on code, to leave option active into phpBB about users can change there usernames, without that will affect the integration.

The previous version 1.6.5 about this (that will not change nothing about your result because the code lead to the exact same result) you can find here:
https://plugins.trac.wordpress.org/expo ... -phpbb.php

look for function:

Code: Select all

public static function wp_w3all_get_phpbb_user_info($username){
and

Code: Select all

public static function wp_w3all_wp_after_pass_reset( $user ) { 
these two have changed, but are leading to same result: the new one, just search for hashes or usernames passed, the old one by email/username.

If you like post of course your code or let understand what you've do and where.

And despite nobody else report this problem, and even i've test and retest it working fine, just let know what's going on ...
antoinegdln4
User www
User www
Posts: 70
Joined: Fri Nov 11, 2016 3:50 pm

Re: Problem with new registered users

Post by antoinegdln4 »

Hey,

I didn't edit any code into W3all.

I only add this code to bp-custom.php
add_action( 'bp_complete_signup', 'buddydev_redirect_after_signup' );

Code: Select all

function buddydev_redirect_after_signup() {
    
    $page = 'activation-du-compte';//your page slug
    
    bp_core_redirect( site_url( $page ) );
}

add_action( 'bp_core_activated_user', 'wpse_70289_activated_user_redirect' );

function wpse_70289_activated_user_redirect() {

    $page = 'activation-reussie';//your page slug
    
    bp_core_redirect( site_url( $page ) );
}

I will try to go back to an old version of W3all for see if that's the problem.
antoinegdln4
User www
User www
Posts: 70
Joined: Fri Nov 11, 2016 3:50 pm

Re: Problem with new registered users

Post by antoinegdln4 »

Hi,
My problem is still not solved...

I would like to know where i can get a previous version of w3all ?

Thanks by advance
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Problem with new registered users

Post by axew3 »

https://wordpress.org/plugins/wp-w3all- ... /advanced/
From menu on bottom, choose version.

I see from your code you're using buddypress: it is fully compatible with WP_w3all integration, tested working fine.
Only two mentions:
Avatar on profile not match if not gravatar.
On email change, the user is allowed to change even if on phpBB there is another user associated with same changed email. But this in reality not happen: infact when the user receive email to confirm email change into buddypress, clicking into email confirmation link, the answer is: email already exist into forum, associated with another username. The email isn't changed and the user can only click into Dismiss email change, to revert to the old one in buddypress.
The registration work fine, i've try out with wp_w3all option active: deactivate user account in phpBB until WP confirmation. The user is correctly activated into phpBB after activated into WP.
While if i add user via admin into WP, i'll need to activate this user into phpBB because is added as deactivated (also in this case). This secondary bug, can be of course also patched.
antoinegdln4
User www
User www
Posts: 70
Joined: Fri Nov 11, 2016 3:50 pm

Re: Problem with new registered users

Post by antoinegdln4 »

Maybe last "secondary bug' would be solving my problem.
But this the users who aren't activated on phpBB after WP activation, strange.
Post Reply