Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Restrict usernames to alphanumeric and underscore Details »»
Restrict usernames to alphanumeric and underscore
Version: 1.7, by Reynaldovb Reynaldovb is offline
Developer Last Online: Aug 2014 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.0 Beta 5 Rating:
Released: 02-26-2008 Last Update: Never Installs: 54
Uses Plugins
Re-useable Code Translations  
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-27-2008, 07:34 PM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-27-2008, 08:31 PM
Reynaldovb Reynaldovb is offline
 
Join Date: Dec 2004
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks GrayMatter,

As you can see from the previous version thread, https://vborg.vbsupport.ru/showthrea...light=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.
Reply With Quote
  #4  
Old 02-27-2008, 08:37 PM
Hasann's Avatar
Hasann Hasann is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 897
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thenk yuuu canim :up: good job meeen :up:
Reply With Quote
  #5  
Old 02-27-2008, 10:55 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if my Real name is imçañóndábèar :'(
Reply With Quote
  #6  
Old 02-27-2008, 11:04 PM
Mrquarter Mrquarter is offline
 
Join Date: Feb 2008
Location: Florida
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks dude, that is great!

*Clicks Install*
Reply With Quote
  #7  
Old 02-28-2008, 01:36 AM
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work mate. Thanks.
Reply With Quote
  #8  
Old 02-28-2008, 04:39 AM
Zaiaku's Avatar
Zaiaku Zaiaku is offline
 
Join Date: Jul 2007
Location: 3rd Level of Hell
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One of my most favorable mods for vb. Thanks for the update.
Reply With Quote
  #9  
Old 02-28-2008, 06:47 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, for so long I have been inputting every other symbol I could think of into the disallowed user names list.
Reply With Quote
  #10  
Old 02-29-2008, 05:25 AM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this the same as using regular expressions that are built into vB 3.7?

Something like:

Code:
^[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!
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 12:41 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
  • Page Generation 0.07050 seconds
  • Memory Usage 2,285KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete