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!

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

Quote:

Originally Posted by Reynaldovb (Post 1453499)
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.


All times are GMT. The time now is 04:54 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.01104 seconds
  • Memory Usage 1,748KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete