Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Restrict usernames to alphanumeric and underscore Details »
Restrict usernames to alphanumeric and underscore
Mod Version: 1.7, by Reynaldovb (Member) Reynaldovb is offline
Developer Last Online: Aug 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.3 Rating: (2 votes - 4.50 average) Installs: 104
Released: 01 Feb 2006 Last Update: 27 Feb 2008 Downloads: 225
Not Supported Uses Plugins Re-usable Code Translations  

This is a vB 3.5.x port of the same mini mod.
( http://www.vbulletin.org/forum/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.

**
Fixed to work with 3.6.8 and 3.7

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	mod_config.JPG
Views:	481
Size:	36.2 KB
ID:	41958   Click image for larger version

Name:	mod_errormsg.jpg
Views:	439
Size:	37.3 KB
ID:	41959  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Restrict usernames to alphanumeric and underscore Reynaldovb vBulletin 3.7 Add-ons 17 21 Sep 2008 15:45
Restrict usernames to alphanumeric and underscore Reynaldovb vBulletin 3.0 Full Releases 34 29 Sep 2007 06:46

Comments
  #2  
Old 01 Feb 2006, 08:09
Reynaldovb Reynaldovb is offline
 
Join Date: Dec 2004
Talking Place holder

--- This space left intentionally blank ---
Reply With Quote
  #3  
Old 01 Feb 2006, 08:12
redspider's Avatar
redspider redspider is offline
 
Join Date: Jul 2005
I got some new members that been using emails as user name would this block the @ symbol?
thank you
Reply With Quote
  #4  
Old 01 Feb 2006, 08:24
Reynaldovb Reynaldovb is offline
 
Join Date: Dec 2004
Originally Posted by redspider
I got some new members that been using emails as user name would this block the @ symbol?
thank you
Yes, by default it would block anything but letters a-z, numbers, and the underscore. Anything else and the user gets an error message asking him to modify his username.

In short: yes, it would block the @ symbol as well the dot used in .com|.net
Reply With Quote
  #5  
Old 01 Feb 2006, 08:28
redspider's Avatar
redspider redspider is offline
 
Join Date: Jul 2005
thank you.
Reply With Quote
  #6  
Old 01 Feb 2006, 09:57
hiiped's Avatar
hiiped hiiped is offline
 
Join Date: Jan 2006
good job

thanks
Reply With Quote
  #7  
Old 01 Feb 2006, 10:38
xswrex xswrex is offline
 
Join Date: Feb 2006
thank you, simple yet effective.

installed !!!
Reply With Quote
  #8  
Old 01 Feb 2006, 11:22
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
I've it installed on my forums. Thanks!
Reply With Quote
  #9  
Old 01 Feb 2006, 11:27
duplu duplu is offline
 
Join Date: Jan 2005
Thanks, just what I needed. I have another piece of software which feeds usernames off of the vbulletin user file and it doesn't like non-alphanumeric characters in the username - so this will be ideal.
Reply With Quote
  #10  
Old 01 Feb 2006, 16:42
Reynaldovb Reynaldovb is offline
 
Join Date: Dec 2004
About already "abnormal" names

I remember when I moved from Xoops to vBulletin I wanted to start clean and "correct" those names with non alphanumeric chars, so I made an small tool that checked every name and if it didnt comply, changed it to normal standards.

It was a brute and ugly tool, but it did the job. After that I emailed all the users in the forum letting them know that some of them had their name changed, and included their current name in the email (vBulletin mailing system).

If you would want me to release that tool, I would be glad to help you get your forums "clean". LOL

Last edited by Reynaldovb; 01 Feb 2006 at 17:02.
Reply With Quote
  #11  
Old 01 Feb 2006, 16:53
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
How does this interact with the default User Registration Options > Illegal User Names settings? I have some names and symbols in there already. Should I just leave them there? Remove the symbols and leave the words?
__________________
The Admin Zone Forums • Discussions & Articles for Forum Administrators

Interviews: Kier • Scott • Jerry • Mike Sullivan • Andreas • Steve Machol • Wayne Luke • Jake Bunce • Floris • Logician • Xenon • Erwin • Brad
Reply With Quote
  #12  
Old 01 Feb 2006, 17:02
Reynaldovb Reynaldovb is offline
 
Join Date: Dec 2004
Originally Posted by the Sandman
How does this interact with the default User Registration Options > Illegal User Names settings? I have some names and symbols in there already. Should I just leave them there? Remove the symbols and leave the words?
As far as I know, that option is to prevent users from registering certain names, like "support", "password", "system" etc etc

This mod goes beyond that. You can still enter names on that vB setting, but the mod will prevent people from using any symbols that you hadnt explicity allowed (through the mod options).
Reply With Quote
  #13  
Old 01 Feb 2006, 17:26
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Originally Posted by Reynaldovb
As far as I know, that option is to prevent users from registering certain names, like "support", "password", "system" etc etc

This mod goes beyond that. You can still enter names on that vB setting, but the mod will prevent people from using any symbols that you hadnt explicity allowed (through the mod options).
It works for symbols as well - you just enter them one at a time with a space between them. There are two problems with using the default system for symbols though - you have to list them all, and if the user tries to register using one of them they don't get a message telling them why - they think the username is taken. So your solution is definitely better. I was just wondering how the two systems interact - which is checked first, yours or the default?

BTW, here's what I currently have in my default illegal username field:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I suppose I should remove all the symbols and leave the words?
__________________
The Admin Zone Forums • Discussions & Articles for Forum Administrators

Interviews: Kier • Scott • Jerry • Mike Sullivan • Andreas • Steve Machol • Wayne Luke • Jake Bunce • Floris • Logician • Xenon • Erwin • Brad
Reply With Quote
  #14  
Old 01 Feb 2006, 17:34
Reynaldovb Reynaldovb is offline
 
Join Date: Dec 2004
I have no idea, which one goes first. It would probably be the best idea to delete the symbols and leave just names there.
Reply With Quote
  #15  
Old 01 Feb 2006, 17:41
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Originally Posted by Reynaldovb
I have no idea, which one goes first. It would probably be the best idea to delete the symbols and leave just names there.
I did a test before removing the symbols from my default illegal user name field - the default system comes first FWIW.

Thanks! Great hack!
__________________
The Admin Zone Forums • Discussions & Articles for Forum Administrators

Interviews: Kier • Scott • Jerry • Mike Sullivan • Andreas • Steve Machol • Wayne Luke • Jake Bunce • Floris • Logician • Xenon • Erwin • Brad
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:46.

Layout Options | Width: Wide Color: