Jump to content
MakeWebGames

[mccode] Very small mod to restrict reg name size


Uridium

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 months later...
Guest Anonymous

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...