![]() |
disallow space in username?
Is there a way or a hack to disallow a space in a username? I searched but no luck...
|
i would like to know that too, as well as other characters like #, %, & * etc.
|
I want to fliter out any ASCII characters like this as they screw things up. ¿
|
anyone? *bump*
|
To complete disallow spaces in usernames:
In register.php, find: PHP Code:
PHP Code:
Code:
Spaces are not allowed in usernames. |
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?
|
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:
|
this is great, but how do i stop special characters altogether? like ! @ # $ % ^ & * ( ) { } [ ] | = - and others
|
In register.php, find:
PHP Code:
PHP Code:
Code:
The username you have chosen is invalid. It can only contain alphanumeric characters and underscores. |
cool. thanks. I will test it.
|
works great!
|
hello...
does this work the same for vb3? i haven't upgraded yet but this would be crucial. :) |
ya, wouldn't mind it myself.
|
All times are GMT. The time now is 01:52 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|