Reduce restriction on username choices

Hello,

 

I searched for "username with special characters"; "username with other language than English/Latin" ...etc. However, I couldn't find the answer I need on the forum.

Basically, my site is for Vietnamese community. People loves to have their usernames in Vietnamese. For example, one needs a username like "tạm bợ" (means temporary by the way). But Dolphin won't allow anything beside Latin symbols and a few other minus sign and underscore.

I'd like to know if I can somehow remove the restrictions on the language or at least the username choices. If you know how, please give some insights.

 

Best of wishes,

Quote · 4 Sep 2014

 

Hello,

 

I searched for "username with special characters"; "username with other language than English/Latin" ...etc. However, I couldn't find the answer I need on the forum.

Basically, my site is for Vietnamese community. People loves to have their usernames in Vietnamese. For example, one needs a username like "tạm bợ" (means temporary by the way). But Dolphin won't allow anything beside Latin symbols and a few other minus sign and underscore.

I'd like to know if I can somehow remove the restrictions on the language or at least the username choices. If you know how, please give some insights.

 

Best of wishes,

If you look in the profile fields builder and under advance for the nickname you will see a check field.

return ( preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) );

This is as far as I can help at the moment with Vietnamese characters.

Geeks, making the world a better place
Quote · 4 Sep 2014

 

If you look in the profile fields builder and under advance for the nickname you will see a check field.

return ( preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) );

This is as far as I can help at the moment with Vietnamese characters.

 

Hi,

Thank you for the answer. I found the location but what should I do with that check field may I ask? Should I add or remove something? Would you please be more specific?

Best,

Quote · 4 Sep 2014

 

 

If you look in the profile fields builder and under advance for the nickname you will see a check field.

return ( preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) );

This is as far as I can help at the moment with Vietnamese characters.

 

Hi,

Thank you for the answer. I found the location but what should I do with that check field may I ask? Should I add or remove something? Would you please be more specific?

Best,

Perhaps someone else can give more info; I suggest doing a search on the internet for preg_match and Vietnamese characters.

Geeks, making the world a better place
Quote · 4 Sep 2014

In case you don't understand, that set the characters for nickname.  Don't remove spaces from nickname; it will break certain areas.

Geeks, making the world a better place
Quote · 4 Sep 2014

Thank you very much!

Quote · 4 Sep 2014

This solution should work for D71 as well:

http://www.boonex.com/forums/topic/Dolphin-7-Can-t-support-chinese-name-.htm#54816

Generally it should work, but Dolphin is not supposed to have international characters in usernames, so it maybe some problems with it.

Rules → http://www.boonex.com/terms
Quote · 8 Sep 2014

 

This solution should work for D71 as well:

http://www.boonex.com/forums/topic/Dolphin-7-Can-t-support-chinese-name-.htm#54816

Generally it should work, but Dolphin is not supposed to have international characters in usernames, so it maybe some problems with it.

 Thank you! I have read and experimented with quite a bit of solutions that I found online. Nothing is really works but I read some more about the php pre_match stuff and basically the rules is whatever is between the [ ] marks is allowed. So I did a very basic edit of the file with the highlighted Vietnamese accent characters at the location geek_girl has pointed out above like this:

return ( preg_match( '/^[ a-z!@#$%^&*A-Z0-9_-ăâưêôơắẳẵằặấẩẫầậứửữừựếểễềệốổỗồộớởỡờợáảãàạúủũùụéẻẽèẹóỏõòọ]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) );

I also put a space at the beginning before the a-z. Lo and behold, it works perfectly for me even though I'm not sure that it will break anything on the site just jet. I will keep an eye on the site and report back any problem I might encounter. Hopefully this will help some Vietnamese webmaster who has the same problem.

Best of wishes,

Quote · 8 Sep 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.