Old phpBB user appears as a new user

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: Old phpBB user appears as a new user

Re: Old phpBB user appears as a new user

by axew3 » Mon May 02, 2016 10:48 pm

With an help/tester like you hard to fail! Nice!
Thank to you for help me understand things that if not, nobody know when where come out!
1.3.0 has been updated also on repository.

P.s now usernames on phpBB can contain what hell they like, old or new users.

and .. as ever and ever .. you know... maybe the first isn't so good! ;)

Re: Old phpBB user appears as a new user

by falcon » Mon May 02, 2016 10:37 pm

That`s IT!!!

***SOLVED***

Thank you bro! Nice work. :D

I`m so happy now. This plugin rocks. The best.

Re: Old phpBB user appears as a new user

by axew3 » Mon May 02, 2016 10:27 pm

ok , i had hope the first solution was ok:
this should solve all:
class.wp.w3all-phpbb_1.3.0_mod1.zip
(6.92 KiB) Downloaded 272 times

Re: Old phpBB user appears as a new user

by falcon » Mon May 02, 2016 10:12 pm

axew3 wrote:added wrong users need to be removed on both phpBB WP if there are. These accounts are all those containing different a-z chars and numbers on phpBB.
Before update wp_w3all 1.3.0 or after and when they appears?

axew3 wrote:Now users are added as they are on phpBB, into WP.
Yes but again i have cloned old phpBB users from WP as new members in phpBB automatic after first login. Is that what you mean (quoted above) "users need to be removed..."? I can remove it but new login will bring them back.

New registrations are not problem and they are registered for WP and phpbb, that`s ok. Problem are old phpBB users when they login and not yet added into WP. That users will be added into WP and that is ok but problem starts here => that WP users will be transfered to phpBB as new members. We need to find way how to stop retransfer new WP users (they are old phpbb users already) into phpbb.

Re: Old phpBB user appears as a new user

by axew3 » Mon May 02, 2016 9:00 pm

Falcon you was very near to solution: i've do the first way, sql, fixed.
But after i've follow you so really it was easy. I've just apply the sanitize_user filter in the way is on new wp_w3all.php
just substitute the wp_w3all.php in this way on 1.2.9:
wp_w3all_1.3.0.zip
(3.38 KiB) Downloaded 287 times
waiting for your report!

as obvious, added wrong users need to be removed on both phpBB WP if there are. These accounts are all those containing different a-z chars and numbers on phpBB. Now users are added as they are on phpBB, into WP.

Re: Old phpBB user appears as a new user

by axew3 » Mon May 02, 2016 5:19 pm

this will not save you if an user register on phpBB with a char ? for example. So you'll need to add all allowed chars.
Instead, we just add the user as in phpBB, via sql. The user so is recognized ever as need to be.
This exclude admin install on both, i've forget to mention above, as they are ever recognized by ID in wp_w3all.

Top