What is best solution to change username?

elawrenc01
User ww
User ww
Posts: 43
Joined: Thu Feb 16, 2017 11:59 am

What is best solution to change username?

Post by elawrenc01 »

I have disabled Username changes in phpbb and WP but I get requests to change the username and I am trying to figure out the best way to do it when I am running this plugin. What do you suggest?
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: What is best solution to change username?

Post by axew3 »

Since latest modifications, it should be (quite) easy to finish the work checking against email hashes instead of usernames on few queries, and let this problem to the past maybe.
Let see a while how can be done within 1.7.0 if possible. Some little modifications on code are necessary.
elawrenc01
User ww
User ww
Posts: 43
Joined: Thu Feb 16, 2017 11:59 am

Re: What is best solution to change username?

Post by elawrenc01 »

So can I just change the username with the accounts that have the same email address on PHPBB and WP and it will be fine?

For example:

WP:
UsernameA
usernameA@gmail.com


PHPBB:
UsernameA
usernameA@gmail.com

Change To:

WP:
(IN Database - PHPMyAdmin) NewUsername <---Change Manually
usernameA@gmail.com

PHPBB:
(Change THrough ACP) NewUsername
usernameA@gmail.com


Is it possible like this or no?
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: What is best solution to change username?

Post by axew3 »

no, i'm referring to wp_w3all plugin. It can be modified to search for, on all queries, for email hashes, so the fact you'll let change usernames into phpBB to users will not affect the integration.
But, some query need to changed, and the logic about some check to avoid duplicated users also.
You can't simply change usernames into databases and leave the code plugin logic as is, because this will lead to a mess result.
I will start to decline code of the plugin in favor of this.
Also because, this is a concept that is bind to another coming feature.
Post Reply