PDA

View Full Version : Mini Mods - Restrict usernames to alphanumeric and underscore


Reynaldovb
02-26-2008, 10:00 PM
This is a vB 3.7 port of the same mini mod.
( https://vborg.vbsupport.ru/showthread.php?t=73559 )

What is this Plugin about?

Are you tired of seeing in your forums usernames like these?:
1.- The Super Boy (spaces)
2.- my_new_name (underscore abuse)
3.- im?a??nd?b?ar (international characters)

Well, with this simple addon you can prevent that from happening from now on (it can't correct already spoiled usernames). When a user tries to register using one of those chars, a nice error message makes sure the user picks another "normal" name.

Installation instructions
1.- Download the attached .xml
2.- Go to Admin Control Panel => Plugin System => Manage Products => Add/Import Product => and browse for the the location where you downloaded the .xml
3.- Hit Import
4.- To configure it (not really needed, but it is there), go to Vbulletin Forum Options => Restrict Usernames on registration

By default this addon prevents spaces and any char other than numbers and (english) letters while allowing underscore.

**Disclaimer**
This mod is not absolutely necessary as vBulletin allows you to do what this mod does and more from within the Admin Panel:
Admin CP -> vBulletin Options -> vBulletin Options -> User Registration Options -> Username Regular Expression

You only need to use this mod if you don't want to deal with Regular Expressions.

Gray Matter
02-27-2008, 07:34 PM
This is already possible in default vBulletin, since 3.6.8 if not sooner.

Admin CP -> vBulletin Options -> vBulletin Options -> User Registration Options -> Username Regular Expression

Which is actually more powerful than your mod is as well.

Reynaldovb
02-27-2008, 08:31 PM
Thanks GrayMatter,

As you can see from the previous version thread, https://vborg.vbsupport.ru/showthread.php?t=106877&highlight=restrict
some people are unaware of that feature or they just don't want to deal with Regular Expressions.

Anyway, thanks for the heads up. I will add a disclaimer so people know beforehand that this feature is available from within the ACP as long as they are not scared of RegEx.

Hasann
02-27-2008, 08:37 PM
thenk yuuu canim :D:up: good job meeen :D:up:

iogames
02-27-2008, 10:55 PM
What if my Real name is imçañóndábèar :'(

Mrquarter
02-27-2008, 11:04 PM
Thanks dude, that is great!

*Clicks Install*

valdet
02-28-2008, 01:36 AM
Great work mate. Thanks.

Zaiaku
02-28-2008, 04:39 AM
One of my most favorable mods for vb. Thanks for the update.

Hornstar
02-28-2008, 06:47 AM
Thanks, for so long I have been inputting every other symbol I could think of into the disallowed user names list.

Brew
02-29-2008, 05:25 AM
Is this the same as using regular expressions that are built into vB 3.7?

Something like:


^[A-Z0-9]+$


In vB options - User Registration Options - Username Regular Expression

Would that have the same effect, or am I missing something about what this mod does?

Thanks!

Reynaldovb
02-29-2008, 07:40 AM
Brew:

No. By using RegEx inside vB ACP you have a lot more power restricting what you want and what you don't want (it says that on the disclaimer). This mod just makes it easier and safer and people were asking for a port to 3.7

Brew
02-29-2008, 02:12 PM
Brew:

No. By using RegEx inside vB ACP you have a lot more power restricting what you want and what you don't want (it says that on the disclaimer). This mod just makes it easier and safer and people were asking for a port to 3.7

I didn't see the disclaimer...sorry bout dat :)

I'll install this though. It's easier to use than those cryptic expressions.

Good job....thanks!

avsunforum
03-01-2008, 03:26 PM
Thanks

acegames
03-21-2008, 09:25 AM
Nice mod , easier to use no end :)

KURTZ
03-21-2008, 10:11 AM
<font color="Blue">*KURTZ clicks INSTALL ...</font>

pushedx
05-25-2008, 03:59 AM
"By default spaces are not allowed."

Is this worded intentionally? It'd be simpler if it just said, By default spaces are allowed instead.

I only ask because the variable name says: "ru_allowspace", hence the confusion on the title.

THanks for the mod though, sometimes it's nice to have things like this than mess with the dreadful regex :P

Mum
06-06-2008, 08:31 AM
I tried this and installed it and appeared to be working, but i was able to register with a space, regardless of which option it was on.

Uninstalled.

Veer
09-21-2008, 02:45 PM
doesn't work

Uninstalled.