by John

I have been working on polishing up user registration routines for a number of sites, and downloaded the Username Check module by Dmitry Kresin last night. The module performs an AJAX request during registration to check for the availability of a username so that the user does not have to submit the form only to find out the chosen username is unavailable. This is good usability practice, but the module remains a little rough around the edges.

username_check_0.png

Taking some cues from Yahoo!'s user registration interface, I modified the module to:

  • perform additional username validation checks against user_validate_name and drupal_is_denied
  • automatically make AJAX request on username field blur and add form-autocomplete class (throbber)
  • cleaned up the formatting to float Check availability link inline with the username field and display any errors in standard messages format

A patch for this module will be forthcoming.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Highlighted PHP code can be posted with <?php ... ?> tags.

More information about formatting options

Captcha
We're only human... Captcha is a simple challenge-response test to make sure you are too.
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.