Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
ANTISUPERSTAR
New Member
New Member



Joined: Dec 02, 2005
Posts: 2
Location: Kyiv, Ukraine

PostPosted: Fri Dec 02, 2005 3:59 pm Reply with quote

I've got a CNBYA module installed on my web-site. The thing is that on my previous version of Your Account module, the index.php contained theese lines:

Quote:
if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";


...so I had to chainge them this way:

Quote:
if ((!$username) || ($username=="") || (ereg("[^a-zA-Zа-яА-Я0-9_-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";


...so cyrillic letters were enabled in nickname, and that worked.

My question is: can I do the same thing in CNBYA? Cuz I tried to insert those lines into the ready your_account/index.php file, and nothing happened. Same stuff - Error: Login Incorrect?

Can anyone help me please wyth cyrylic logins problem in CNBYA?
 
View user's profile Send private message Send e-mail
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sat Dec 03, 2005 7:58 am Reply with quote

public_html\modules\Your_Account\includes\functions.php

Find:
function ya_userCheck

You will see an alternative filter commented out that may work if not work with what you posted above.
Code:


    // Need to find a way to include extended caracters
    //if ((!$username) || ($username=="") || (ereg("[^À-ÿa-zA-Z0-9_-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";
    if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
ANTISUPERSTAR







PostPosted: Sat Dec 03, 2005 8:14 am Reply with quote

Thank you!!! That helped!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©