Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 12-16-2002, 07:20 AM
Paul Paul is offline
 
Join Date: Jan 2002
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 02-12-2003, 12:44 AM
Davey Davey is offline
 
Join Date: Nov 2002
Location: England
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-12-2003, 01:41 AM
Paul Paul is offline
 
Join Date: Jan 2002
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 02-12-2003, 01:52 AM
Davey Davey is offline
 
Join Date: Nov 2002
Location: England
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Dave.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 01:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03715 seconds
  • Memory Usage 2,184KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete