Allowing ' into usernames

Started by Ewa'tuì, February 24, 2020, 01:38:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ewa'tuì

Hiya! As some know, my na'vi name is Ewa'tuì.

I wasn't able to register my name that way because ' aren't allowed. So I went with Ewa tuì.

Maybe allow ', but only one or two? So people don't spam them? And that their names can't be plain '?
Or, even better, allow people to have ' but they have to go through a process of having it accepted by a mod before it is used.

Just a suggestion. ♥

Toliman

Hmm, interesting that ' is not allowed.
In any case I intentionally rather choiced name without special letters and characters ;D

Tìtstewan

Kaltxi

Well, the reason is because ' is an element used by php for programming. The forum's username is an important part for various funcions of the forum, and that's why one can't add ' as part of a username.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Toliman

Yeah, that is understandable. I didn't consider about programming...

Tirea Aean

#4
It's actually kinda dumb that the workaround that SMF chose to get around SQL injections is to just not allow the apostrophe character whatsoever. They totally could still have prevented injections while still allowing that character in usernames / display names.

Tirea Aean

This is a test.

* Tirea 'Aean adds a ' temporarily to username

Okay, so You actually can change your display name to have an apostrophe character. I guess the actual Username cannot have apos.

What you can do to add the ' back in, is to go to https://forum.learnnavi.org/profile/?area=account and then fill out the Name field how you like (with the apostrophe) and then enter your password in the Current password field, then click the Change profile button. :D

Tìtstewan

I can not remember why exactly SMF makes an difference between username and display name. An apostrophe will cause issues for example sending PMs to someone. The scripts that perform sending a PM would not work if an apostrophe is a part of the username. SMF is hadling that by using usernames, other forum software are using IDs or something else.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

I remember that. Oh what a pain in the txìm...

`Eylan Ayfalulukanä

I ran into this problem very early on, and never understood why this is until now. To this day, my username starts with `eylan. That is actually the 'grave accent' character, even though the grave accent mark belongs over the letter it modifies.

Yawey ngahu!
pamrel si ro [email protected]

archaic

Do I remember that here was a work around, for sending PM's to members with a ` in their name?
Pasha, an Avatar story, my most recent fanfic, Avatar related, now complete.

The Dragon Affair my last fanfic, non Avatar related.

Tìtstewan

That PM issue was - if I remember me correctly - the days we have run SMF 1.1.x. The work around was using the username instead the display name. SMF 2.0.x handles it a bit differently.

However, if someone really want to have an apostrphe-like letter, just use alternative character such as "grave accent". :)

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

Even though no username can be registered when containing the apostrophe character, you add the regular apostrophe character to your display name: After registration, just go in profile settings and put the apostrophe back in the display name where it should go. This is the easy fix I mentioned before, in Reply #5. :)
As for sending a PM to such people with a '-containing name, I thought that this "just works" on SMF2 kefyak?

Tìtstewan

Quote from: Tirea Aean on March 03, 2020, 05:43:15 PM
As for sending a PM to such people with a '-containing name, I thought that this "just works" on SMF2 kefyak?
SMF 2.0.x "autofill" or suggest the member's name you wish to PM if sufficient characters has been typed. Internally, it uses then the username, as far as I have understood the procedure of sending PMs. :)

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-