Here's a patch file. I've added a status of "off" in addition to automatic and manual checking since people may want only one or the other check to be performed. There is one very small bug. If the username is invalid, the status icon for the email check doesn't appear in quite the right place. If someone who is good with CSS could figure out the thing to fix so that it moves where it belongs, that'd be helpful.
Let me know if you find any other issues with this.
Logintoboggan module allows adding a second e-mail field (for verification). Checking if that field is present and then checking if the two e-mails are the same could be a nice plus :) for those of us using that module
I'd like to also add this is for a text field. I'm following the pattern, but not sure how to $_get the value of the field.
function siteurlCheck(siteField){
//Drupal.siteurlCheck = function(siteField) {
clearTimeout(Drupal.siteurlCheckTimer);
Drupal.siteurlCheck = siteField.val();
$.ajax({
url: Drupal.settings.siteurlCheck.ajaxUrlfield-site-url-und-0-value, //not sure if this is right
data: {field-site-url-und-0-value: Drupal.siteurlCheck}, //not sure if this right
dataType: 'json',
...
What field name do I use as the $_GET['?????'] value in the check.unique.inc file
You should be able to leave the url same as the original file.
The GET value is how it is defined in the js file => ajax call data: {anyname: Drupal.siteurlCheck} and then in the unique.inc file => $_GET['anyname'];
Here is a patch to support the 7.x version of this module.
It includes new administrative options to enable or disable checking for preexisting versions of both the username and the e-mail address in the system so that this patch can be incorporated in to the existing module without disrupting anyone's use of it who doesn't want duplicate e-mail address checking.
It also includes user interface language enhancements to better instruct the user how to proceed if a pre-existing username or e-mail address is found.
Comments
Comment #1
sunchaser commentedtrue that !
subscribing
Comment #2
harrrrrrr commentedany news on this?
Comment #3
darrellduane commentedI've done this, patch file coming shortly.
Comment #4
darrellduane commentedHere's a patch file. I've added a status of "off" in addition to automatic and manual checking since people may want only one or the other check to be performed. There is one very small bug. If the username is invalid, the status icon for the email check doesn't appear in quite the right place. If someone who is good with CSS could figure out the thing to fix so that it moves where it belongs, that'd be helpful.
Let me know if you find any other issues with this.
Comment #5
YK85 commented+1 subscribing - this feature would be awesome!
Comment #6
baljit-1 commentedm new to drupal and want to know how to add patch to my website?
Comment #7
darrellduane commentedsee http://drupal.org/node/620014
Search on google for more information
Comment #8
dublin drupaller commentedgreat patch (#4 darrell). works well.
Comment #9
rafamd commentedLogintoboggan module allows adding a second e-mail field (for verification). Checking if that field is present and then checking if the two e-mails are the same could be a nice plus :) for those of us using that module
rafa
Comment #10
hellomobe commentedI'd like to also add this is for a text field. I'm following the pattern, but not sure how to $_get the value of the field.
What field name do I use as the $_GET['?????'] value in the check.unique.inc file
Comment #11
hellomobe commentedWas able to get it sorted out.
You should be able to leave the url same as the original file.
The GET value is how it is defined in the js file => ajax call data: {anyname: Drupal.siteurlCheck} and then in the unique.inc file => $_GET['anyname'];
Here are the files. http://drupal.org/node/1399360
Comment #12
darrellduane commentedHere is a patch to support the 7.x version of this module.
It includes new administrative options to enable or disable checking for preexisting versions of both the username and the e-mail address in the system so that this patch can be incorporated in to the existing module without disrupting anyone's use of it who doesn't want duplicate e-mail address checking.
It also includes user interface language enhancements to better instruct the user how to proceed if a pre-existing username or e-mail address is found.
Comment #13
darrellduane commentedI've incorporated the requested changes requested in: https://drupal.org/node/1114984 and in https://drupal.org/node/1508198 & https://drupal.org/node/1440726 into this latest version of the patch. It checks to see if we are using the current users's username so that the UX is clean.
Comment #14
darrellduane commentedThis is to prompt testing of this patch. this is the same patch file.
Comment #16
darrellduane commented