Hi!
My old phpBB forum users on first login are automatic new WP users and appears on phpbb as new member.
Ok i think problem is on WP because it not allow special characters in usernames but somehow change usernames, made it and accept without special characters. And because of that that old forum users becoming (cloned) new users.
For example, old phpbb user =123.xyxy=User after first login atomatic is added as new member on WP as 123.xyxyUser, then that 123.xyxyUser are automatic new phpbb member. That old user is normaly logged in on site/forum as =123.xyxy=User and shown at forum as =123.xyxy=User. But on forum members list are new member too and shown on forum statistic "Our newest members: 123.xyxyUser".
So, all my members with special characters will be cloned as new users but different usernames.
We are small comunity, virtual squadron and we all have special characters in our usernames.
Is this WP or w3all plugin side phenomenon?
Old phpBB user appears as a new user
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Old phpBB user appears as a new user
it need to be solved so ... looking
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Old phpBB user appears as a new user
yes is WP that clean username before to add the user, that is recognized by the way as correct.
But there are several but, so in any case, looking to fix the joke ... about usernames that contain in phpBB not conventional chars on usernames.
There is a feature in phpBB, like on vB, that allow to choose what kind of chars are allowed as username?
Looking all the thing and how to solve hope within this evening, and to find out the moment...
But there are several but, so in any case, looking to fix the joke ... about usernames that contain in phpBB not conventional chars on usernames.
There is a feature in phpBB, like on vB, that allow to choose what kind of chars are allowed as username?
Looking all the thing and how to solve hope within this evening, and to find out the moment...
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Old phpBB user appears as a new user
Limit username chars:
under: BOARD CONFIGURATION -> User registration settings I've set it to Alphanumerics and spaces. So there are no conflict.
The problem is for users that contain unwanted chars and that are already been registered old phpBB users.
I'll see if possible to solve.
One way is that to set display name on wp as the name on phpBB. But this not solve some other thing.
One way is that to rename those usernames with a query
under: BOARD CONFIGURATION -> User registration settings I've set it to Alphanumerics and spaces. So there are no conflict.
The problem is for users that contain unwanted chars and that are already been registered old phpBB users.
I'll see if possible to solve.
One way is that to set display name on wp as the name on phpBB. But this not solve some other thing.
One way is that to rename those usernames with a query
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Old phpBB user appears as a new user
also Alphanumerics and spaces is ok or any other WP compatible
-
- User www
- Posts: 76
- Joined: Tue Apr 05, 2016 6:56 pm
Re: Old phpBB user appears as a new user
If wordpress allow spec. characters users will not be cloned?
Can we do something here?
Actually i just want to allow = character in usernames.
Can we do something here?
Code: Select all
function sanitize_user( $username, $strict = false ) {
$raw_username = $username;
$username = wp_strip_all_tags( $username );
$username = remove_accents( $username );
// Kill octets
$username = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '', $username );
$username = preg_replace( '/&.+?;/', '', $username ); // Kill entities
// If strict, reduce to ASCII for max portability.
if ( $strict )
$username = preg_replace( '|[^a-z0-9 _.\-@]|i', '', $username );
$username = trim( $username );
// Consolidate contiguous whitespace
$username = preg_replace( '|\s+|', ' ', $username );
/**
* Filter a sanitized username string.
*
* @since 2.0.1
*
* @param string $username Sanitized username.
* @param string $raw_username The username prior to sanitization.
* @param bool $strict Whether to limit the sanitization to specific characters. Default false.
*/
return apply_filters( 'sanitize_user', $username, $raw_username, $strict );
}