Should Usernames include emoji?

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.2/Rhea followed by 3.3.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
User avatar
hanakin
Infrastructure Team
Infrastructure Team
Posts: 788
Joined: Sat Dec 25, 2010 9:02 pm
Contact:

Should Usernames include emoji?

Post by hanakin » Thu Nov 02, 2017 6:27 pm

Currently we do not support emoji in usernames. Is this something that we should allow if not we should add a better error msg then general sql error which is what happens when you try to register with one.

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1731
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Should Usernames include emoji?

Post by DavidIQ » Thu Nov 02, 2017 6:31 pm

Probably not. Also there are quite a few fields that will clunk out if you put an emoji in them. Username is one of them.
Image

User avatar
david63
Registered User
Posts: 215
Joined: Mon Feb 07, 2005 7:23 am
Location: Lancashire, UK

Re: Should Usernames include emoji?

Post by david63 » Fri Nov 03, 2017 7:53 am

Personally I cannot see any reason as to why you would want an emoji as part of a username and it would mean massive rewrite of the core - how would you create username_clean for example, which is used extensively. I suspect that it would cause more problems than it would solve.

If there is a genuine need for an emoji in a username then I would look at having as a separate field in the database and then appending where necessary.
David
Remember: You only know what you know -
and you do not know what you do not know!

User avatar
Jacob
Registered User
Posts: 100
Joined: Wed Jan 04, 2012 1:41 pm

Re: Should Usernames include emoji?

Post by Jacob » Fri Nov 03, 2017 12:23 pm

Emojis are not written words, so no.

User avatar
Vinny
Style Customisations
Style Customisations
Posts: 126
Joined: Thu May 20, 2010 4:01 am
Location: Brazil
Contact:

Re: Should Usernames include emoji?

Post by Vinny » Sat Nov 04, 2017 8:02 am

No.

I think would be better to focus on using emoji on topic titles, email subject or email message.

User avatar
bonelifer
Community Team
Community Team
Posts: 107
Joined: Mon Jan 31, 2005 10:41 am

Re: Should Usernames include emoji?

Post by bonelifer » Mon Nov 06, 2017 10:01 pm

Agree with david63
+1 for what Vinny said

User avatar
3Di
Registered User
Posts: 694
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: Should Usernames include emoji?

Post by 3Di » Thu Nov 09, 2017 12:15 am

hanakin wrote:
Thu Nov 02, 2017 6:27 pm
Currently we do not support emoji in usernames. Is this something that we should allow if not we should add a better error msg then general sql error which is what happens when you try to register with one.
Not in usernames please, the real matter here is to provide a meaningful error message instead of the rude SQL error indeed.

Since the username along with all the user data required for a new registration are handled by the user_add() function though, there is the place to where to start lurking at one possible solution for this, which at a first glance requires a bit to do in fact.

Another solution could be to replace the emojis entered with NOTHING or a replacement char like I did for an extension of mine. Reference: https://www.phpbb.com/community/viewtop ... &t=2422576

About Vinny's suggestion = +1 by my side as well.
Want to compensate me for my interest? Don't ask me, just do it
I'm available for custom phpBB jobs, you can PM me the details.
New: my Live Board, Extensions and Tools for phpBB - Men at works.

Post Reply