Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 03 Jan 2009, 23:56
pianoman993 pianoman993 is offline
 
Join Date: Oct 2008
Disallow spaces in Username on registration?

Is it possible to disallow spaces in the username during registration? If so how?

All help is greatly appreciated!

- Pianoman993
Reply With Quote
  #2  
Old 04 Jan 2009, 00:05
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
http://www.vbulletin.org/forum/showthread.php?t=159222
__________________
Former vBulletin.org Staff Member

Please feel free to re-use any of the code in any of my projects submitted to vB.org, so long as original attribution is retained.
Reply With Quote
  #3  
Old 04 Jan 2009, 00:51
pianoman993 pianoman993 is offline
 
Join Date: Oct 2008
I did that but then it would not let anybody register.

It just keeps saying

That username is already in use or does not meet the administrator's standards. If you are ilovemusic and you have forgotten your password, click here.
To everything, spaces or no spaces. Any ideas why?

Last edited by pianoman993; 04 Jan 2009 at 01:07.
Reply With Quote
  #4  
Old 04 Jan 2009, 01:08
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Sorry, Dismounted's REGEX must be off.

Give this a try (little rusty, but should work) --

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Should allow only upper/lower alphanumeric.
__________________
Former vBulletin.org Staff Member

Please feel free to re-use any of the code in any of my projects submitted to vB.org, so long as original attribution is retained.
Reply With Quote
  #5  
Old 04 Jan 2009, 05:40
pianoman993 pianoman993 is offline
 
Join Date: Oct 2008
Great thank you! I'll try that out and get back to you
Reply With Quote
  #6  
Old 04 Jan 2009, 05:48
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
You shouldn't actually need the uppercase "A-Z", as vBulletin automatically makes it case-insensitive.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

All times are GMT. The time now is 21:00.

Layout Options | Width: Wide Color: