View Full Version : Forbid the use of some symbols in USERNAME
Hi all...
It came to my mind to put a code to forbid the use of some characters & symbols in members' usernames when they first register at my forums..
Sometimes usage of these characters & symbols leads to usernames like: .:*#juggler#*:. and so..
this code simply allow users to just register with Letters, Numbers and Space..
share your opinion :)
Salam..
You can just add whatever characters you don't want them to use in the vBulletin options. ;)
You can just add whatever characters you don't want them to use in the vBulletin options. ;)
Ok.. u r right..
but my solution is the alternate if u just dont want to type all these symbols in your vbulletin options :)
What would be nice is the ability to deny spaces in usernames at reg.
(Boofo: where can we specify characters? Is it the place we specify names?)
[QUOTE=kall]What would be nice is the ability to deny spaces in usernames at reg.
QUOTE]
you can remove whatever characters u want..
to deny the usage of SPACE do the following:
open the plugin PHP Code,
then search for this piece of code
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
then remove the number "32" and the comma following it from the array ;)
Regards,
What would be nice is the ability to deny spaces in usernames at reg.
(Boofo: where can we specify characters? Is it the place we specify names?)
That where I have it and you should be able to use the space code in there to not allow spaces too, I would think.
[QUOTE=kall]What would be nice is the ability to deny spaces in usernames at reg.
QUOTE]
you can remove whatever characters u want..
to deny the usage of SPACE do the following:
open the plugin PHP Code,
then search for this piece of code
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
then remove the number "32" and the comma following it from the array ;)
Regards,
ghroob, if you weren't just pixels representing text on my screen, I might just kiss you.
@Boofo: You too...if you mean or can tell me. :)
Where can we edit the symbols in vbulletin options?
This is a wonderful hack, thank you very much! :)
Xplorer4x4
28 Sep 2005, 07:07
Where can we edit the symbols in vbulletin options?
Find the settings group(in vb otions) for: User Registration Options
Then find the setting for: Illegal User Names
Then just enter _ or * or any other charechter in there.
thanx all for ur comments,,
and for any suggestions or updates im here :)
-=Sniper=-
11 Oct 2005, 14:38
excellent, thanks
Thank you! this is exactly what I need. I would remove the space by default if I were you, though
Thank you! this is exactly what I need. I would remove the space by default if I were you, though
does this work with vb3.5.1? I cannot find Phrase type Error Messages
Thanks in advance
does this work with vb3.5.1? I cannot find Phrase type Error Messages
Thanks in advance
Search Front-End Errors Messages ;)
------------------------------
I'm using this hack. But it show a error message for each character wrong in the nickname. If user enter 3 symbols, then he will see this:
Username may only contain Letters, Numbers and Space
Username may only contain Letters, Numbers and Space
Username may only contain Letters, Numbers and Space
Is it a bug?
Ideas to solve it?
Marco van Herwaarden
22 Nov 2005, 11:44
Search Front-End Errors Messages ;)
------------------------------
I'm using this hack. But it show a error message for each character wrong in the nickname. If user enter 3 symbols, then he will see this:
Username may only contain Letters, Numbers and Space
Username may only contain Letters, Numbers and Space
Username may only contain Letters, Numbers and Space
Is it a bug?
Ideas to solve it?In the plugin, find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add under:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(Not tested)
-=Sniper=-
22 Nov 2005, 12:39
that fixed it! thanks
thank you for the hack..
how can I implement on Arabic charcters and space only..
icemann
11 Dec 2005, 05:33
This is great for the lazy people like me, thanks & worked perfect. :)
*clicks install*
quanvo81
04 Jan 2006, 23:44
This is a cool hack, not install it rite now , but I will look forward to it.
calvin.krause
12 Apr 2007, 22:55
Does this work in version 3.6? Because I can't seem to get it to...
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.