vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Username in lowercase on registation (https://vborg.vbsupport.ru/showthread.php?t=237026)

giorgino 02-27-2010 01:04 PM

Username in lowercase on registation
 
Is there a way I can set up so that user names must be in first capital letters and rest in lowercase?

For example: Not USERNAME, not username but Username?

Can I use an preg_match formula in vB registration user options?

Thanks.

Lynne 02-27-2010 01:42 PM

vboption s> user registration option s> username regular expression

giorgino 02-27-2010 02:16 PM

Thank you Lynne, but I need to know the correct preg_match phrase. I already know where setup the option :)
(sorry for my english)

RustyDogma 02-27-2010 05:06 PM

I was looking for the exact same thing, I tried a couple, but was still getting things I didn't want, like numbers and special characters in the name.

ChopSuey 02-27-2010 05:19 PM

<a href="http://www.php.net/manual-lookup.php?function=preg-match" target="_blank">http://www.php.net/manual-lookup.php...ion=preg-match</a>

Check there for Preg Match.

giorgino 02-27-2010 06:03 PM

Quote:

Originally Posted by ChopSuey (Post 1993049)


I haven't see any related istruction for lowercasing ... :(

RustyDogma 03-01-2010 12:25 PM

The documentation is very confusing to me.

What do I need to get:

Username

First letter always capitalized and no 'special characters' (meaning no ΓΏ, just want y) and no numbers.

RustyDogma 03-04-2010 03:30 PM

I PMed the original poster, and neither of us have been able to do this correctly. I'm not a programmer, and the information from the PHP site reads like Greek to me. Any help would be greatly appreciated. I've tried Googling for the info as well, but I keep running into very complex stuff, rather than just the right phrase to put in to force the 'Username'

Lynne 03-04-2010 11:14 PM

Have you thought instead of just using css to make it capitalized - "text-transform:capitalize;" - or all lowercase "text-transform:lowercase;"

RustyDogma 03-06-2010 12:29 PM

Hmm... is the log-in not case sensitive? Was thinking I had to force it while they registered or they wouldn't be able to log-in. And unfortunately that doesn't resolve the issue of not wanting numbers in the name.


All times are GMT. The time now is 05:31 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.01056 seconds
  • Memory Usage 1,725KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete