Hi Brajesh,
I got a few registrations with spaces in username and found that all these users have a PC with Windows and IE. Do you have an idea why for these configs Availability Checker 1.1.1 isn’t working (does not warn in frontend that a space isn’t allowed in username)?Thanks,
HansHi Hans,
The problem is spaces are allowed in username in Standard WordPress. They are no allowed on multisite. so, most probably you are using this plugin on non Multisite and since the username is valid, It does not warn them.
PS: If the username was invalid, There whould have been no registration.
Can you please check again.
Thank you
BrajeshHi Brajesh,
Yes, it’s a single wp instance. And I’m using your plugin in combination with wp-members by Chad Butler. One day you provided the code needed to make the combination working in the frontend…
add_filter( 'buddydev_username_availability_checker_load_assets', 'bpdev_enable_username_availability_asset_loading' );function bpdev_enable_username_availability_asset_loading( $allow = null ) {
if( ! is_user_logged_in() && is_page('register') )
return true;return $allow;
}add_filter( 'buddydev_uachecker_selectors', 'buddydev_uachecker_add_extra_selectors' );
function buddydev_uachecker_add_extra_selectors( $selectors ) {
return $selectors .',#wpmem_reg input#user_login';
}
With spaces in usernames there is a problem while mentioning a user (@username) in BP.
The username check is working for me with any browser on my Mac – other words, if I try to register a username with a space in it, I get the error message. Only on a PC with IE there is no error showing up…
…and yes, sometimes it’s a good idea to sleep another night. That way I remembered a few lines of code from Chad Butler in my functions.php to prevent registrations with a space in username. That code was no longer working because of a change in wp-members code (the username field in the registration form changed from “log” to “user_login”).
Hi Hans,
Thank you for updating. I was wondering what is going on since the above code does not deal with validation.I am glad you found the sleep and the solution 🙂
You must be logged in to reply to this topic.