vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Mini Mods - Restrict usernames to alphanumeric and underscore (https://vborg.vbsupport.ru/showthread.php?t=171598)

Reynaldovb 02-26-2008 10:00 PM

Restrict usernames to alphanumeric and underscore
 
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/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.

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:

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!


All times are GMT. The time now is 12:07 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.01188 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete