Uridium Posted October 3, 2008 Posted October 3, 2008 for the Purposes of this mod i'll be using Zero-Effects Register.php page this is only a very small mod Zero already has the ability to stop users reging with small names i just added so they dont exceed massive reg name.. open up zero=effects register.php find these lines... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and just under them add these You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. you can obviously alter the 12 to anything i suppose 16 character would suffice.. You can also do the same for users that want to rename themselves after registering open up preferences.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and underneath add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Cronus Posted October 3, 2008 Posted October 3, 2008 Re: [mod] very small mod to restrict reg name size Wow, I actually just added this to my game on my own last night. Small world lol. Quote
nedved Posted October 3, 2008 Posted October 3, 2008 Re: [mod] very small mod to restrict reg name size lol xD this mod will help gmes with lots of spammers ;) Quote
Arkvoodle` Posted October 3, 2008 Posted October 3, 2008 Re: [mod] very small mod to restrict reg name size Or you could go into your database and change `username` legnth values to your desired number and save up some disc space on your host..? nice mod mate ! Quote
Tezza` Posted October 3, 2008 Posted October 3, 2008 Re: [mod] very small mod to restrict reg name size Or you could go into your database and change `username` legnth values to your desired number and save up some disc space on your host..? nice mod mate ! Disk space... lmao.... what like ? 0.001kb? :P Quote
Dave Posted October 3, 2008 Posted October 3, 2008 Re: [mod] very small mod to restrict reg name size OMG 0.001kb thats the whole capacity of my server :wink: :wink: lol and also putting the field in the mysql database as 12 would mean if someone used the username iamwickedrocks There password would get changed to iamwickedroc But they wouldn't be told this Quote
jds137 Posted October 5, 2008 Posted October 5, 2008 Re: [mod] very small mod to restrict reg name size What about making it so you can only use abc 123 in a name, and no special characters? Quote
MrGi Posted October 11, 2008 Posted October 11, 2008 Re: [mccode] Very small mod to restrict reg name size Nice Mod Illusions. Ill be adding this to my game. I dont want users making a 1000 word name hehe. Quote
Arkvoodle` Posted October 17, 2008 Posted October 17, 2008 Re: [mod] very small mod to restrict reg name size OMG 0.001kb thats the whole capacity of my server :wink: :wink: lol and also putting the field in the mysql database as 12 would mean if someone used the username iamwickedrocks There password would get changed to iamwickedroc But they wouldn't be told this As I believe, I stated "username" not "user_pass" Might just be me, although I'm pretty sure I can read. Quote
Alex Riley Posted October 18, 2008 Posted October 18, 2008 Re: [mccode] Very small mod to restrict reg name size Not So Much Of A Mod, More A Script :) Still Very Good Quote
03laceys Posted December 26, 2008 Posted December 26, 2008 Re: [mccode] Very small mod to restrict reg name size } if(strlen($_POST['username']) < 4) { die("Sorry, the username is too short. >Back"); Curious i wasn't using the register you stated where would this go? Quote
Guest Anonymous Posted December 27, 2008 Posted December 27, 2008 Re: [mod] very small mod to restrict reg name size What about making it so you can only use abc 123 in a name, and no special characters? You could use preg_match, e.g You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Savager Posted December 27, 2008 Posted December 27, 2008 Re: [mccode] Very small mod to restrict reg name size if(strlen($_POST['newname']) < 4 OR strlen($_POST['newname'])>12) { die("Sorry, the username is too short or too long >Back"); } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.