vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Username Titlecase (https://vborg.vbsupport.ru/showthread.php?t=234126)

|Jordan| 01-25-2010 01:13 PM

Username Titlecase
 
I have a forum that mainly non-technical computer users will use. I'd prefer for usernames to be in the format of the first letter of each word being capitalized (titlecase). Right now as it stands, new users fall into two groups; all lowercase or all uppercase.

Can you anyone do this for vb 3.8.x ?

Marco van Herwaarden 01-25-2010 01:33 PM

What is a word in a username?

What about the name: "testuser"

1 word? 2 words?

|Jordan| 01-26-2010 12:19 PM

Spaces would seperate if the word has a capital or not.

So for example:

Two Words
Oneword

I would like it to be a transparent as possible to the user, rather than using regex to force them to make it capital since most would just complain that they cant register.

Marco van Herwaarden 01-26-2010 02:07 PM

You could create a plugin that fires when a new user is created and use ucwords() to make the first character of each word uppercase.

|Jordan| 01-26-2010 08:20 PM

I'm no coder though :(, in the past i did release a modification, but it was just a code modification of another modification.

sheppardzwc 01-27-2010 04:39 AM

https://vborg.vbsupport.ru/showthread.php?t=234265 :)

|Jordan| 01-27-2010 07:31 PM

Quote:

Originally Posted by sheppardzwc (Post 1967668)

Awesome!

Love ya!

Marco van Herwaarden 01-28-2010 11:43 AM

PS Please realize that not all words in a name should be capitalized. For example the word "van" in my name is really wrong if it would be spelled with an upper-case first character.

|Jordan| 01-28-2010 12:48 PM

Yeah in know. The site im using this on is a family website that can't be viewed by non family members.


All times are GMT. The time now is 11:18 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.01025 seconds
  • Memory Usage 1,721KB
  • 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
  • (9)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