Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Thu Sep 08, 2005 5:30 pm Reply with quote

Since we got a new user with only 1 alphabetic character in his name I ask me, how I can change this for further registration ?

Maybe the kids found this cool. I´m liberal, but in the long run we have the complete alphabet. Smile
 
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6793
Location: Ha Noi, Viet Nam

PostPosted: Thu Sep 08, 2005 5:42 pm Reply with quote

Nuke allows you to set a minimum number of characters for both username and password if I remember correctly but there is no wau currently to set a minimum number/combinaions of numeric and alphabet charcters.
An interesting idea though for more thought.
 
View user's profile Send private message Send e-mail
Susann
PostPosted: Thu Sep 08, 2005 6:01 pm Reply with quote

I found in the administration and under preferences of nuke 6.5 only settings for the minimum password.

Minimum users password length between 3 and 10
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Thu Sep 08, 2005 9:24 pm Reply with quote

In function userCheck in modules/Your_Account/index.php you should have a line similar to
Code:
if (strlen($username) > 25) $stop = "<center>"._NICK2LONG."</center>";

You could a line like this right after it
Code:
if (strlen($username) < 5) $stop = "<center>"._NICK2SHORT."</center>";
 
View user's profile Send private message
Susann
PostPosted: Fri Sep 09, 2005 3:54 am Reply with quote

Thanks,
works great !

Translation for the your account language files e.g.:

lang-german:
Code:



define("_NICK2SHORT","Benutzername ist zu kurz. Es muss ein Minimum von 5 Zeichen sein.");


lang-english:
Code:



define("_NICK2SHORT","Nickname is too short. It must be a minimum of 5 characters");

----------
or clear and brief
lang-german:
Code:



define("_NICK2SHORT","Benutzername ist zu kurz. Minimum 5 Zeichen.");
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©