Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 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

Version: 3.5.3 Rating:
Released: 01-31-2006 Last Update: 02-26-2008 Installs: 104
Uses Plugins
Re-useable Code Translations  
No support by the author.

This is a vB 3.5.x 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.

**
Fixed to work with 3.6.8 and 3.7

Show Your Support

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

Comments
  #22  
Old 02-02-2006, 04:43 PM
Reynaldovb Reynaldovb is offline
 
Join Date: Dec 2004
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by moonclamp
What happens to users who already have illegal characters? Will they still be able to login or update their info?
This mod only affects future registrations. Existing users would have to have their names changed.

If I remember correctly, I think I saw somewhere a piece of Search and Replace SQL code you could use to do a massive search and replace. Of course you would be wise to back up your database first and email the users letting them know about the change in their names.
Reply With Quote
  #23  
Old 02-02-2006, 04:50 PM
moonclamp's Avatar
moonclamp moonclamp is offline
 
Join Date: May 2004
Location: London
Posts: 516
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, I'm fine with the existing members, I just want to restrict people who use email addresses as usernames. Ideally I'd love to be able to stop people using all uppercase names too but I guess we can't have everything.

Also ... If I wanted to allow more than one character (EG ~ and -) would I seperate them with spaces or commas?

Anyway, thank you ... just installed
Reply With Quote
  #24  
Old 02-19-2006, 07:54 PM
quanvo81 quanvo81 is offline
 
Join Date: Apr 2004
Location: Flushing - New York
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL
This is a cool hack.
You know what, I will creat alots more user names with space, @, uppercase....I think around hundreds of them, then install this hack.
The result is, the user names I created will be .... RARE . It means I can trade for something else if a member want that nick so bad . LOL, just like Yahoo ! rare nicks.
Lol, just a thought, I am not going have free time just to sit there and manual add users. But I will wait untill my board get busy and lots of users sign up, then I will installed this hack. At that time my board will be crazy with rare nicks trading.
thanks again.
Reply With Quote
  #25  
Old 03-02-2006, 09:56 PM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed. thanks!
Reply With Quote
  #26  
Old 03-03-2006, 06:27 PM
Joey805 Joey805 is offline
 
Join Date: Jan 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly!

Thanks!
Reply With Quote
  #27  
Old 03-16-2006, 12:42 AM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you

Install
Reply With Quote
  #28  
Old 04-12-2006, 11:57 PM
HolisticEarth HolisticEarth is offline
 
Join Date: Apr 2006
Location: Winnipeg, MB, CAN
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for writing this plugin. It is a complete asset!

The default username restriction seems exceptionary while this system is inclusionary, meaning the default system lets you create exceptions for what you can register, while this system lets you include what can be registered.

This is much better IMO because people could keep finding characters that you haven't put on your ban list, and you would have to make an exception for each one.

It is very important for sites like mine which in the end will have MediaWiki integrated into it. MediaWiki can only allow printable characters in page names, and page names can be user names, so user names must be only printable characters. This hack solves the problem.

Again, thank you. Installed.
Reply With Quote
  #29  
Old 04-13-2006, 12:49 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[HOW-TO] Allow Russian Letters

Option 1:
Type А-я in the "custom symbol box".

Option 2:
In register_addmember_process, FIND

Code:
$ru_searchpattern .= "]+/";
ADD BEFORE

Code:
$ru_searchpattern .= "А-я";
Reply With Quote
  #30  
Old 04-13-2006, 05:23 AM
dan35's Avatar
dan35 dan35 is offline
 
Join Date: Jul 2004
Location: California
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx! Installed
Reply With Quote
  #31  
Old 06-15-2006, 05:40 PM
kj_ugs kj_ugs is offline
 
Join Date: Oct 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this works on 3.5.4 and can be fully uninstalled right? sounds good to me.
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 01:10 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04957 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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