vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - EWT - Block Users From Registering Similiar Usernames (https://vborg.vbsupport.ru/showthread.php?t=145514)

eXtremeTim 04-21-2007 10:00 PM

EWT - Block Users From Registering Similiar Usernames
 
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.

Tralala 04-23-2007 12:46 AM

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.

sensimilla 04-23-2007 06:03 AM

It was relesed before for previous vb version. Any changes to the code ?

eXtremeTim 04-23-2007 06:07 AM

I have taken over the development of that original code. This is the new support thread and product for it.

thedvs 04-23-2007 02:34 PM

Hey ET, will this mess with any registration hacks currently installed? or is it that simple it shouldn't affect anything?

eXtremeTim 04-23-2007 03:46 PM

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.

Tralala 04-23-2007 06:05 PM

Quote:

Originally Posted by eXtremeTim (Post 1234092)
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.

speedway 04-24-2007 01:23 AM

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

eXtremeTim 04-24-2007 03:12 AM

thanks for pointing that out.

icarian_pow 06-15-2007 03:27 AM

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


All times are GMT. The time now is 10:27 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.01145 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete