The Arcive of vBulletin Modifications Site. |
|
disallow space in username? Details »»
|
|||||||||||||||||||||||||
Is there a way or a hack to disallow a space in a username? I searched but no luck...
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
i would like to know that too, as well as other characters like #, %, & * etc.
|
|
#3
|
|||
|
|||
|
I want to fliter out any ASCII characters like this as they screw things up. ¿
|
|
#4
|
||||
|
||||
|
anyone? *bump*
|
|
#5
|
||||
|
||||
|
To complete disallow spaces in usernames:
In register.php, find: PHP Code:
PHP Code:
Code:
Spaces are not allowed in usernames. |
|
#6
|
||||
|
||||
|
thank you so much buddy! I will test it and let you know. I really needed this as my hack I wrote to create an e-mail account in cPanel is hanging Ensim if a member tries to create a mail account with a space in it.. If it works, may I have your permission to add this to the hack install file?
|
|
#7
|
||||
|
||||
|
Of course you can.
The other alternative is to force the user to use an underscore rather than a space by doing this - also if it's for email, make everything into lower case: In register.php, find: PHP Code:
PHP Code:
You may need to move that line of code higher or lower depending on what you want it to do... play around with it. Again, not tested, but should work...
|
|
#8
|
|||
|
|||
|
this is great, but how do i stop special characters altogether? like ! @ # $ % ^ & * ( ) { } [ ] | = - and others
|
|
#9
|
|||
|
|||
|
In register.php, find:
PHP Code:
PHP Code:
Code:
The username you have chosen is invalid. It can only contain alphanumeric characters and underscores.
|
|
#10
|
|||
|
|||
|
cool. thanks. I will test it.
|
![]() |
|
|