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 10: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]
Noxegon #225907 04/20/2009 11:04 AM
Joined: Jun 2006
Posts: 15,938
Likes: 27
UBB.threads Developer
Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,938
Likes: 27
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.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, I Find Rocks, 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]
Gizmo #225911 04/20/2009 1: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]
Noxegon #225912 04/20/2009 1:37 PM
Joined: Dec 2003
Posts: 6,144
Likes: 21
Offline
Joined: Dec 2003
Posts: 6,144
Likes: 21
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]
Ruben #225913 04/20/2009 2:57 PM
Joined: Jun 2006
Posts: 15,938
Likes: 27
UBB.threads Developer
Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,938
Likes: 27
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 2: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.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, I Find Rocks, 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]
Gizmo #225915 04/20/2009 3:13 PM
Joined: Dec 2003
Posts: 6,144
Likes: 21
Offline
Joined: Dec 2003
Posts: 6,144
Likes: 21
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]
Ruben #225918 04/20/2009 4: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]
Noxegon #225920 04/20/2009 5:23 PM
Joined: Dec 2003
Posts: 6,144
Likes: 21
Offline
Joined: Dec 2003
Posts: 6,144
Likes: 21
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]
Ruben #225931 04/21/2009 11:22 AM
Joined: Jun 2006
Posts: 9,243
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]
Rick #225932 04/21/2009 12:57 PM
Joined: Jun 2006
Posts: 15,938
Likes: 27
UBB.threads Developer
Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,938
Likes: 27
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.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, I Find Rocks, 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]
Gizmo #225933 04/21/2009 3:34 PM
Joined: Dec 2003
Posts: 6,144
Likes: 21
Offline
Joined: Dec 2003
Posts: 6,144
Likes: 21
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]
Gizmo #226007 04/24/2009 2: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]
Noxegon #226099 04/29/2009 4: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]
Noxegon #226100 04/29/2009 4:18 PM
Joined: Dec 2003
Posts: 6,144
Likes: 21
Offline
Joined: Dec 2003
Posts: 6,144
Likes: 21
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]
Ruben #226151 04/30/2009 7:37 AM
Joined: Jun 2006
Posts: 9,243
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]
Gizmo #226176 04/30/2009 2: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]
Noxegon #226218 05/03/2009 10:37 AM
Joined: Jun 2006
Posts: 626
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]
Daryl Fawcett #226219 05/03/2009 10:58 AM
Joined: Jun 2006
Posts: 9,243
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,243
Yes it will be.

Re: 7.x - Recent change to usernames [debatable notabug]
Noxegon #261225 03/12/2018 11:39 AM
Joined: Aug 2006
Posts: 1,640
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!

Link Copied to Clipboard
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
[NOTABUG] Report Post bug..
by Morgan - 07/05/2020 1:48 PM
Trial Subscription question.
by Ruben - 07/03/2020 2:34 PM
Unread posts no longer tracked per user...
by KirkW - 06/16/2020 12:21 AM
Max Image file size upload
by jjjjj - 06/10/2020 10:25 PM
Error on Inert into POSTS
by jjjjj - 06/07/2020 8:09 PM
Who's Online Now
2 members (Gizmo, KirkW), 87 guests, and 37 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
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