Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
EWT - Block Users From Registering Similiar Usernames Details »»
EWT - Block Users From Registering Similiar Usernames
Version: 1.00, by eXtremeTim eXtremeTim is offline
Developer Last Online: Feb 2008 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.5 Rating:
Released: 04-21-2007 Last Update: Never Installs: 19
DB Changes Uses Plugins
 
No support by the author.

Keywords: dual, imposter, fake, user account, user registration

Description:
Stops the registration of names too similar to existing registered names. I use an indexed database table with soundex and metaphone values in it (created on install). It maintains the table when new users are added, or users are deleted.

Once it looks up a list of possible matches in the table, it runs a further check with both levenshtein() and similar_text() to find the nearest match from the returned list.

Finally, it uses similar_text() to get a percentage on the nearest match and if the percentage is higher than your admin cp setting it gives the user an error message and does not let them register the name.

Features:
  • Stops the registration of names too similar to existing registered names.
  • Set the percentage required to be considered a match.
  • Turn on or off in admin cp.
Install
  1. Import the product file in your admincp.
  2. Change the percentage for a match if required.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-23-2007, 12:46 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea! Thanks for sharing.

Not working for me with 3.6.5 though. I installed it and tried to register with a similar username... and upon clicking I was brought to just a blank page.
Reply With Quote
  #3  
Old 04-23-2007, 06:03 AM
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Location: Poland
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was relesed before for previous vb version. Any changes to the code ?
Reply With Quote
  #4  
Old 04-23-2007, 06:07 AM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have taken over the development of that original code. This is the new support thread and product for it.
Reply With Quote
  #5  
Old 04-23-2007, 02:34 PM
thedvs thedvs is offline
 
Join Date: May 2002
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey ET, will this mess with any registration hacks currently installed? or is it that simple it shouldn't affect anything?
Reply With Quote
  #6  
Old 04-23-2007, 03:46 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont have any problems with it messing with any of them. It shouldnt mess with any of them but I do need to see about making an addon for the ajax username checking hack.
Reply With Quote
  #7  
Old 04-23-2007, 06:05 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eXtremeTim View Post
I dont have any problems with it messing with any of them. It shouldnt mess with any of them but I do need to see about making an addon for the ajax username checking hack.
I'd love to see this integrated with CodeMonkey's original-and-still-the-best AJAX Live Feedback System.
Reply With Quote
  #8  
Old 04-24-2007, 01:23 AM
speedway's Avatar
speedway speedway is offline
 
Join Date: Nov 2001
Location: Sydney, Australia
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Downloaded and installed. There is a problem with the SQL code that looks up possible matches. The table names are not using any TABLE_PREFIX.

I have added them to overcome this issue. You might want to update the code on here.

Code:
                    // lookup possible imposter matches 
                    $imposter = $db->query_read(" 
                        SELECT imposter_lookup.userid, username FROM " . TABLE_PREFIX . "imposter_lookup 
                        JOIN " . TABLE_PREFIX . "user ON " . TABLE_PREFIX . "user.userid = " . TABLE_PREFIX . "imposter_lookup.userid 
                        WHERE soundex_value = '" . $soundex . "' OR metaphone_value = '" . $metaphone . "' 
                    ");
Cheers
Bruce
Reply With Quote
  #9  
Old 04-24-2007, 03:12 AM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for pointing that out.
Reply With Quote
  #10  
Old 06-15-2007, 03:27 AM
icarian_pow icarian_pow is offline
 
Join Date: Feb 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Had an issues on a few boards with some names. This should help a lot! Thanks
Reply With Quote
Reply


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 04:33 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.05182 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete