Posted on: 04/01/06 06:15pm
By: MacQuarrie
I've just set up a new site, and of the 21 people who registered accounts already, three have found that they had to use only numbers for their user name; putting letters in caused an error message.
Has anyone seen this before, and if so, how do I make it stop?
Thanks!
Registration only allows numbers
Posted on: 04/03/06 03:59pm
By: MacQuarrie
Is it my breath?
Nobody has replied at all to anything I've posted in the last couple of weeks. Did I offend somebody?
I always search the archives for an answer before I post a question, make sure I'm posting in the right place, and try to be polite when I ask for help.
Anyway, it turns out that all the people who had this problem were using caps in their user name. I can change their names to have an initial cap, but they have to use all lower-case. Is this normal?
Registration only allows numbers
Posted on: 04/04/06 01:57am
By: Dirk
I've never heard of such a problem before.
Besides, first you say they could only use numbers for their names, then you talk about caps - that doesn't make sense. And, as usual, if there is an error message, then it would help to quote it ...
bye, Dirk
Registration only allows numbers
Posted on: 04/04/06 02:45am
By: MacQuarrie
I didn't see the errors, they were reported to me. The people who had the problem all eventually registered strings of numbers as their user names so they could get on the site, and they said they were unable to register with the names they wanted. That's when I posted my original question.
Since then, other users of the site reported their own experiences, and they had discovered thet they got the error message when they tried to use capital letters, but lowercse letters worked fine.
I was able to log in and change the numeric user names to what they wanted, but I'd like to find the problem and correct it.
You can read about the problem at this thread: http://www.oddballcomics.com/forum/viewtopic.php?forum=11&showtopic=74
Registration only allows numbers
Posted on: 04/04/06 07:25am
By: mevans
MacQuarrie,
I took a look at your site, very nice. I see that when a user tries to use uppercase in their username, a javascript error pops up. Doing a quick view source on your login page it looks like you have added a javascript routine to validate the username / email. Your script only allows lowercase letters. I don't believe this is part of the stock Geeklog install (at least I don't have it on any of my Geeklog sites). So, there's your problem, you need to fix your javascript to allow uppercase and any other characters that are valid in a username.
Hope that helps.
Thanks!
Mark
Registration only allows numbers
Posted on: 04/04/06 11:43am
By: MacQuarrie
Thanks. I forgot about that. It was one of the various add-ons that I downloaded from here. I'll see if I can find where it came from and ask the author; I'm not a programmer, so I may have to just yank that out.
Registration only allows numbers
Posted on: 04/04/06 12:57pm
By: Anonymous (Sully)
[QUOTE BY= MacQuarrie] Thanks. I forgot about that. It was one of the various add-ons that I downloaded from here. I'll see if I can find where it came from and ask the author; I'm not a programmer, so I may have to just yank that out.[/QUOTE]
It is an easy fix, the script is very simple.
Change
var valid = "abcdefghijklmnopqrstuvwxyz0123456789_"
to
var valid = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_"
Registration only allows numbers
Posted on: 04/04/06 01:12pm
By: MacQuarrie
Thank you! I'll change it now and see how it goes.