vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I prevent all numeric usernames? (https://vborg.vbsupport.ru/showthread.php?t=124584)

bboylen 08-21-2006 09:09 PM

How do I prevent all numeric usernames?
 
I need the ability in vBulletin to prevent all numeric usernames.

Is there an option for this or would I need to modify register.php?

Shazz 08-21-2006 09:12 PM

I would just go to
AdminCP>Vb options>User Registration Options >Illegal User Names(toward the bottom) add all the things you don't want 0 1 2 3 4 5 6 7 8 9
________
green crack

bboylen 08-21-2006 09:13 PM

Well, that would just prevent users from having numbers in their username, which I don't want.

I don't want anyone to sign up with a username that is ALL numeric, such as 93452852 or 8234892.

Shazz 08-21-2006 09:16 PM

Quote:

Originally Posted by bboylen
Well, that would just prevent users from having numbers in their username, which I don't want.

I don't want anyone to sign up with a username that is ALL numeric, such as 93452852 or 8234892.

If someone had the name 11111112
and you had censored = 2
It would make them pick a different name, So if you had all the numbers 0-9 They wouldn't be able to.
________
roll blunts

bboylen 08-21-2006 09:24 PM

Quote:

Originally Posted by Shazz
If someone had the name 11111112
and you had censored = 2
It would make them pick a different name, So if you had all the numbers 0-9 They wouldn't be able to.

Yes, but I'm not trying to prevent numbers ENTIRELY. For example, I want the name Shazz2 to be allowed, but with your example, it wouldn't be.

bboylen 08-23-2006 06:52 PM

Anyone know?

Mauu 08-24-2006 06:28 AM

Try setting "Username Regular Expression" to
Code:

*[a-zA-Z]*
This will require a letter in the alphabet. So:
Code:

1234 = bad
1234b = good
b1234 = good
1234^$%$@ = bad


bboylen 08-24-2006 07:26 PM

Quote:

Originally Posted by Mauu
Try setting "Username Regular Expression" to
Code:

*[a-zA-Z]*
This will require a letter in the alphabet. So:
Code:

1234 = bad
1234b = good
b1234 = good
1234^$%$@ = bad


Thanks a ton, exactly what I was looking for.


All times are GMT. The time now is 02:57 AM.

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.01034 seconds
  • Memory Usage 1,726KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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