PDA

View Full Version : Forbid the use of some symbols in USERNAME


ghroob
26 Sep 2005, 09:54
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..

Boofo
26 Sep 2005, 10:00
You can just add whatever characters you don't want them to use in the vBulletin options. ;)

ghroob
26 Sep 2005, 10:04
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 :)

kall
26 Sep 2005, 10:25
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?)

ghroob
26 Sep 2005, 10:30
[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,

Boofo
26 Sep 2005, 10:34
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.

kall
26 Sep 2005, 10:41
[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. :)

Daniel
27 Sep 2005, 00:18
Where can we edit the symbols in vbulletin options?

ged
27 Sep 2005, 17:57
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.

ghroob
29 Sep 2005, 10:16
thanx all for ur comments,,
and for any suggestions or updates im here :)

-=Sniper=-
11 Oct 2005, 14:38
excellent, thanks

cpzhao
02 Nov 2005, 21:32
Thank you! this is exactly what I need. I would remove the space by default if I were you, though

gldtn
18 Nov 2005, 10:05
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

Acido
22 Nov 2005, 06:44
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

Ghanem
11 Dec 2005, 02:00
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...