Previous Thread
Next Thread
Print Thread
Hop To
[FIXED for 7.5.3] 7.x - Recent change to usernames [debatable notabug] #225903 04/20/2009 9:21 AM
Joined: Oct 2006
Posts: 34
Noxegon Offline OP
newbie
OP Offline
newbie
Joined: Oct 2006
Posts: 34
At some point in the last few updates UBB.threads stopped accepting usernames with spaces in them.

All existing usernames on one of my sites have spaces - we have a "username must be Firstname Lastname" policy. This change is debatably not a bug, but I'd really like to see it being backed out if at all possible -- can this be done?

(On a related note, I'd like the ability to turn off Display Names...)

Re: 7.x - Recent change to usernames [debatable notabug] [Re: Noxegon] #225907 04/20/2009 10:04 AM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
I don't recall the reasoning offhand, but it was added like this in the last couple versions for a reason; I was thinking it was just spaces before or after text (so people couldn't try to register say "gizmo " or " gizmo")...

Why not use the Public Display Name for this though is my question; it should allow spaces without a problem...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: 7.x - Recent change to usernames [debatable notabug] [Re: Gizmo] #225911 04/20/2009 12:24 PM
Joined: Oct 2006
Posts: 34
Noxegon Offline OP
newbie
OP Offline
newbie
Joined: Oct 2006
Posts: 34
I understood that to be the change too, but when you actually try to register now it tells you that usernames must only contain alphanumeric characters and underscores.

Public Display Name is certainly an option, but I'd rather stick with the existing system with the username if I could purely because my four hundred and fifty existing users are in that format.

Re: 7.x - Recent change to usernames [debatable notabug] [Re: Noxegon] #225912 04/20/2009 12:37 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
If you look at the change logs you will see that this change was intended to not allow spaces before and after the name. I don't believe the intent was to limit spaces like "First Last".
But that is what we ended up with "First_Last" or "FirstLast"


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: 7.x - Recent change to usernames [debatable notabug] [Re: Ruben] #225913 04/20/2009 1:57 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
I can see where it can be a pain, but I'm not sure (offhand) how to allow both options...

You can however have spaces in a PDN, and I'd immagine your users PDN's reflect their login name no?

Last edited by Gizmo; 04/20/2009 1:57 PM.

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: 7.x - Recent change to usernames [debatable notabug] [Re: Gizmo] #225915 04/20/2009 2:13 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
Just going by the 7.5 changelog:
Quote:
Spaces will now be removed from the beginning and end of Login Names, Display Names and Passwords.


If the way it is now is the way it is going to be. It would be nice to have a descriptor when registering. So at least there is a warning before you submit.

It is a bigger pain to go back and re-enter stuff like captcha, password and name is used already and keep trying till you succeed.

And as to PDN and user name. My observation is most people use the same name but now you can't.

So my opinion is make both fields have the same entry requirements.
It will save aggravation for the user trying to remember,"Did I use a space or did I use a underscore"

My 2c


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: 7.x - Recent change to usernames [debatable notabug] [Re: Ruben] #225918 04/20/2009 3:05 PM
Joined: Oct 2006
Posts: 34
Noxegon Offline OP
newbie
OP Offline
newbie
Joined: Oct 2006
Posts: 34
Quote:
If you look at the change logs you will see that this change was intended to not allow spaces before and after the name. I don't believe the intent was to limit spaces like "First Last".


That was my read of it too. I'd appreciate if Rick could make a policy decision... I'd rather not have to downgrade to an earlier release if I can avoid it smile

Re: 7.x - Recent change to usernames [debatable notabug] [Re: Noxegon] #225920 04/20/2009 4:23 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
Originally Posted by Noxegon

That was my read of it too. I'd appreciate if Rick could make a policy decision... I'd rather not have to downgrade to an earlier release if I can avoid it smile

It would be a big big task to downgrade to a earlier version.
I am not even sure how to go about it. Since you would need to go prior to 7.5!


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: 7.x - Recent change to usernames [debatable notabug] [Re: Ruben] #225931 04/21/2009 10:22 AM
Joined: Jun 2006
Posts: 9,243
Rick Offline
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,243
Spaces between words/letters should be allowed if special characters are allowed. The intent was just to get rid of them at the beginning/end to eliminate user error. I'll need to look into this.

Re: 7.x - Recent change to usernames [debatable notabug] [Re: Rick] #225932 04/21/2009 11:57 AM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
The wording in the CP leads the user to think that special characters are only "allowable" in the PDN


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: 7.x - Recent change to usernames [debatable notabug] [Re: Gizmo] #225933 04/21/2009 2:34 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
Originally Posted by Gizmo
The wording in the CP leads the user to think that special characters are only "allowable" in the PDN

I will have to agree with Giz on this Rick.
Ver7.5.2 it says:
Allow Special Characters in Display Names?
Which I have enabled.
Yes, the display name can have a space in the string.
But not the user name.
Never tried a space in the password.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: 7.x - Recent change to usernames [debatable notabug] [Re: Gizmo] #226007 04/24/2009 1:05 PM
Joined: Oct 2006
Posts: 34
Noxegon Offline OP
newbie
OP Offline
newbie
Joined: Oct 2006
Posts: 34
I've suspended new registrations on the site in question for the moment, pending a workaround...

Re: 7.x - Recent change to usernames [debatable notabug] [Re: Noxegon] #226099 04/29/2009 3:09 PM
Joined: Oct 2006
Posts: 34
Noxegon Offline OP
newbie
OP Offline
newbie
Joined: Oct 2006
Posts: 34
Don't suppose there's any movement on this one? I'd rather not leave registrations off indefinitely!

Thanks in advance.

Re: 7.x - Recent change to usernames [debatable notabug] [Re: Noxegon] #226100 04/29/2009 3:18 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
Rick has stated he is looking into this but has not re-stated he found or did not find a issue.
But in any case Rick also stated that v7.5.3 would be stalled a little bit to try to address as many discovered bugs on v 7.5.2 as possible.
I assume so he can devote more time with version 8 instead of flipping back and forth to v7 for bug fixes.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: 7.x - Recent change to usernames [debatable notabug] [Re: Ruben] #226151 04/30/2009 6:37 AM
Joined: Jun 2006
Posts: 9,243
Rick Offline
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,243
For a temp fix on this you should be able to edit libs/ubbthreads.inc.php. Line 1436 of that file there is this block of code:

Code
        if (!preg_match("/^\w+$/",$name)) {
            return array(false, 'BAD_LNAME');
        }


You can change that, to this and it will allow for your spaces:

Code
        if (!preg_match("/^\w+$/",$name)) {
            //return array(false, 'BAD_LNAME');
        }

Re: 7.x - Recent change to usernames [debatable notabug] [Re: Gizmo] #226176 04/30/2009 1:31 PM
Joined: Oct 2006
Posts: 34
Noxegon Offline OP
newbie
OP Offline
newbie
Joined: Oct 2006
Posts: 34
Thanks Rick.

Re: 7.x - Recent change to usernames [debatable notabug] [Re: Noxegon] #226218 05/03/2009 9:37 AM
Joined: Jun 2006
Posts: 626
Daryl Fawcett Offline
Addict
Offline
Addict
Joined: Jun 2006
Posts: 626
Is this problem going to be resolved/fixed in 7.5.3?

Re: 7.x - Recent change to usernames [debatable notabug] [Re: Daryl Fawcett] #226219 05/03/2009 9:58 AM
Joined: Jun 2006
Posts: 9,243
Rick Offline
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,243
Yes it will be.

Re: 7.x - Recent change to usernames [debatable notabug] [Re: Noxegon] #261225 03/12/2018 10:39 AM
Joined: Aug 2006
Posts: 1,640
jgeoff Offline
Pooh-Bah
Offline
Pooh-Bah
Joined: Aug 2006
Posts: 1,640
Only bringing this back up because I wasn't able to create a Display Name containing a space in 7.6.1.1 unless I enabled "Allow Special Characters In Display Names" -- so unless there's a new bug, or the definition of "Special Characters" has changed, this wasn't actually resolved...?

(Member had a problem registering but she didn't know what the problem was -- I tried manually and got the "no special characters" error. Turned that option on and it worked. I don't want "special" characters in Display Names, but spaces should obviously not be "special")

Thanks...

JG


GangsterBB.NET (Ver. 7.6.1.1)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (iPhone); No IE, ever!

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
1 registered members (JAISP), 64 guests, and 350 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)