Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ Languages and alternative language support ⇒ i18n - l10n (languages) :: Archives ⇒ Problems with registration of Russian registration records :: Archived


Problems with registration of Russian registration records :: Archived
Want a language pack or convertor? Have feedback on either of these? Are you a developer of one of these? Here is the place to post. Read the announcements here first!
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  i18n - l10n (languages)

Topic Archived View previous topic :: View next topic  
Author Message
Nikolaich
Newbie
Newbie

Offline Offline
Joined: Apr 22, 2004
Posts: 43
Location: Russia
PostPosted: Fri Apr 30, 2004 9:04 pm
Post subject: Problems with registration of Russian registration records

Has faced a problem of registration of users cyrillics.
Russian names.
How it is possible to correct?


Nikolaich's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Windows XP/Apache/MySQL 4.1.12-Max/PHP 5.0.3/Dragonfly 9.2.1.
Back to top
View user's profile Visit poster's website ICQ Number
Botik
Newbie
Newbie

Offline Offline
Joined: Apr 20, 2004
Posts: 21

PostPosted: Wed May 05, 2004 1:26 pm
Post subject: Re: Problems with registration of Russian registration recor

В модуле Your_Account, в файле functions.php есть проверка имени юзера при регистрации на предмет допустимых символов.

Quote::
function userCheck($username, $user_email) {
global $user_prefix, $db, $DeniedUserNames, $CensorList;
if (!$user_email || $user_email=="" || !eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,6}$",$user_email)) {
account_error(_ERRORINVEMAIL);
}
if (strrpos($user_email,' ') > 0) { account_error(_ERROREMAILSPACES); }
if (!$username || $username=="" || ereg("[^a-zA-Z0-9_-]",$username)) {
account_error(_ERRORINVNICK);
}
Красным как раз и выделен тот массив допустимых символов в именах пользователей, который можно подредактировать под свои нужды. Попробуй добавить туда ещё а-яА-Я на русском регистре. Если какие-то символы выпадают из этого диапазона, то их можно добавить отдельно. Например, а-яА-Яёъ. Короче, я думаю, сам принцип понятен.


Botik's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora/2.0.48/
Back to top
View user's profile Visit poster's website Photo Gallery
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Wed May 05, 2004 1:47 pm
Post subject: Re: Problems with registration of Russian registration recor

We can remove it and check for other NOT ALLOWED characters like space, *, # instead so every language can be used

------------------------------------------------

Мы можем удалить это и проверить для другого НЕ ПОЗВОЛЕННОГО характеры как место, *, # вместо этого, так что каждый язык может использоваться

_________________
There are two paths, the short one and the long one.
When you choose the short path you will notice it takes longer then the long path.
So READ the FAQ and Wiki first Razz

DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Botik
Newbie
Newbie

Offline Offline
Joined: Apr 20, 2004
Posts: 21

PostPosted: Wed May 05, 2004 2:33 pm
Post subject: Re: Problems with registration of Russian registration recor

DJMaze wrote:
We can remove it and check for other NOT ALLOWED characters like space, *, # instead so every language can be used
For multi languages support it would be more correct.


Botik's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora/2.0.48/
Back to top
View user's profile Visit poster's website Photo Gallery
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Wed May 05, 2004 3:25 pm
Post subject: Re: Problems with registration of Russian registration recor

I thought about it and came to this solution:

Add a option to admin user config: "Allow any character in username" yes/no

Because the eregi() function is limited to US ANSI and mb_eregi() (multibyte) isn't supported on all systems.
So above option set to YES does a bypass for eregi so you can create any name

_________________
There are two paths, the short one and the long one.
When you choose the short path you will notice it takes longer then the long path.
So READ the FAQ and Wiki first Razz

DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  i18n - l10n (languages)
Page 1 of 1
All times are GMT

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy