![]() |
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. ;)
|
Quote:
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:
if(!in_array(ord($chars[$i]),Array(32,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,216,217,218,219,220,221,222,223,225,227,228,229,230,237))) Regards, |
Quote:
|
[QUOTE=ghroob]
Quote:
@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! :)
|
Quote:
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 :) |
excellent, thanks
|
Thank you! this is exactly what I need. I would remove the space by default if I were you, though
|
Quote:
Thanks in advance |
Quote:
------------------------------ 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? |
Quote:
PHP Code:
PHP Code:
|
that fixed it! thanks
|
thank you for the hack..
how can I implement on Arabic charcters and space only.. |
This is great for the lazy people like me, thanks & worked perfect. :)
*clicks install* |
This is a cool hack, not install it rite now , but I will look forward to it.
|
Does this work in version 3.6? Because I can't seem to get it to...
|
All times are GMT. The time now is 04:47 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:
|