![]() |
I don't want people to be able to sign up with symbols in their usernames, like the forwards slash, and the paranthases, and so on. The only symbol I want people to be able to use in thier username is the underscore. No periods, commas, or other symbols or punctuation marks. Is there a way to prevent this?
|
open register.php
look for PHP Code:
PHP Code:
|
Thanks. I'm just curious, but has this been tested?
|
Yeah it will work, it allow characters for a-z A-Z underscore and numbers in the range 0-9.
Hence the a-zA-Z_0-9 but i believe that PHP Code:
|
I didn't realize that this hack was also going to prevent the use of spaces. I don't want it to do that. Is there anyway to fix that? If I just typed in a space after the _ would that do it? By the way, I don't get what you were trying to say in your last post! Can you tell me what that means?
|
Can someone please help? I want to get this fixed.
|
ever tried to use the html code for space in that definition?
"& n b s p ;" or "& # 1 6 0 ;" (without the spaces and "!) like PHP Code:
don?t know if it works but it is woth a try ;) Greetings StarBuG |
The answer is to add a space after 9 in this code
PHP Code:
|
this works as well
PHP Code:
|
How can I allow a dash (-) aswell? Coz when I added it it didn't seem to work!
--Sion |
use in this format:
[a-zA-Z_0-9\- ] |
How can I prevent ppl signing up with - and _ at the beginning/end of their usernames, so that they're valid for email addresses (ie. username@mydomain.com)
Thanks! |
Glad someone else got some use out of this mod. I thought I was the only one using it.
|
Maybe it should be released..
|
how come i can't find any of those code under register.php
|
you brought up an old thread .... check the date :D
|
All times are GMT. The time now is 04:46 PM. |
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:
|