vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Suggest alternative usernames if yours is already taken (https://vborg.vbsupport.ru/showthread.php?t=46709)

Paul 12-16-2002 07:20 AM

Suggest alternative usernames if yours is already taken
 
Hi all,

Perhaps I'll work on this hack, but since it's late, it's likely I'll forget I even considered it, so I'm posting here. :)

I'd like a hack that would suggest alternative usernames if the username selected is already taken--i.e. if I want the username "Paul," but someone else has already registered with that, vBulletin would spit out "Paul is in use, but perhaps you'd like one of these instead" or something along those lines. It would then generate a list of usernames containing the original one I wanted with some other data--perhaps a birthday?

I.e. if I my birthday were april 1st and I entered that in while registering, offer Paul401 as an alternative nick or if I inputed a value for location while registering, use that. Say I put in "NY"--offer PaulNY as an option. Or if there's no other data to go on, add a random string of numbers ala Paul123.

Of course, the system would check to see if any of these usernames were taken already--perhaps through a query checking any usernames beginning with my original selection 'paul%' and storing them in an array to make sure they aren't displayed as an option.

And finally, a plain old input box to let the user make another personalized choice.

Supposing I attempted to register as 'Paul', filled out my birthday as 4/01/1900 and said my location was 'NY', I could see the following:

We're sorry, but the username 'Paul' has already been registered by another member on our forum. Consider one of the following suggestions or pick something else:
  • Paul401
  • PaulNY
  • Paul<threerandomnumbers>
  • <Input field to select something completely different>


Ideas? Thoughts? Suggestions? It's way past my bedtime. :)

Best wishes,
Paul

Davey 02-12-2003 12:44 AM

This could very well save a user from getting fed up and leaving the forum in frustration, and I'd love to use this myself, but I wouldn't know where to begin, sorry.
Hey, could anyone actually try this, 'cause it'd come in handy I think.

Dave.

Paul 02-12-2003 01:41 AM

See? I knew I'd forget about this. I'll see if I can get something up and running in the next few days. We've been busy working on other projects and haven't had much time for vBulletin.

Thanks for the bump, Davey. :)

Davey 02-12-2003 01:52 AM

Oh no problem I found it on my search for the 'Undisclosed' location.
I'd actually be grateful if you could get this accomplished :D.

Dave.


All times are GMT. The time now is 10:44 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.00969 seconds
  • Memory Usage 1,715KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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