Hello,
I was importing 4500 emailadresses only and set the import at 1 to create usernames as well from those emailadresses. Unabbreviated.
The add spaces option was not checked.
Th import worked allright for the emailadresses, the usernames it created had their dots replaced by spaces.
Any explanations?
Thanks
Theo Richel
Comments
Comment #1
robert castelo commentedUsernames are currently limited to alphanumeric characters (A-Z 0-9). I've added a note to the project page to make this clear. Will look into removing this limitation in future.
Comment #2
theorichel commentedIt's a limitation of User Imports I assume, not of Drupal usernames itself because I have several usernames that contain dots. And I assume that the '@' can then also be considered alphanumeric since that did get imported.
Comment #3
theorichel commentedI have imported the adresses once again and have now selected to let the Module create the user names. Am a bit disappointed it creates very exotic letter combinations, sometimes with a space and a number behind it. Thankfully the users can also login with their emailaddress. In the case of only one field to import, which must be the emailaddress I would opt for : everything before the @ and without spaces.
Just an idea.
That apart, its an emtrenely useful module!
Comment #4
chrisdfeld commentedHere's a quick change that should preserve underscores, periods and dashes, which Drupal allows in usernames but User Import currently does not. Go to line 1174 in user_import.module (5.x-1.3) and change it to this:
Great module, thanks!
Comment #5
andrewbenkard commentedTHANK YOU chrisdfeld!
I was trying to import email addresses as usernames in a D6.4 install. Works fine now with your change.
FWIW the line to replace in the 5.x-2.x-dev distro of this module is 1133.