Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Automatically find and remove dupe users through Admin CP Details »»
Automatically find and remove dupe users through Admin CP
Version: 1.00, by Lanigironu Lanigironu is offline
Developer Last Online: May 2005 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-01-2003 Last Update: Never Installs: 14
 
No support by the author.

Recently, my board has had problems with two entries being created in the database when some users register. This creates all sorts of problems, including the inabillity to activate the account, or inabillity to post once activated. Modifying the users through the admin CP is also made impossible because of the safechecking feature that prevents two userids to have two usernames. I am not sure if this is a MySQL problem, or the board's problem, or maybe it's even the user's fault.


What does this hack do?
This hack will automatically search for identical users and remove the older one if neither of the entries has posts. If one of them does have posts, the hack erases the one without them. If both have posts, the hack will merge the two into the newer (higher userid) one and add the posts fromthe older one.

As a result, this hack performs two things:
1. It fixes the problem of duplicate usernames on registration.
2. It fixes any dupes that may be created when importing from another board.

How reliable is it?
The hack checks two things:
1. The username.
2. The email.
If both are the same in the two instances, the hack will then perform the appropriate process.
I can easily add more variables to check if needed.



This hack is accessed in the admin control panel through the Update Counters chooser.

I only tested this hack on vb2.2.8, but it should work on all 2.2.x versions.

I will provide support to the best of my knowledge.

Before running this hack for the first time, I recommend backing up your users database in case anything goes wrong. This hack appears to be working perfectly (now that the tiny syntax error was fixed), but you never know.


Screenshots
1. This is how it looks in the Update Counters chooser.
2. Here it merged one user and erased one dupe.
3. No dupes were found.

Show Your Support

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

Comments
  #2  
Old 01-02-2003, 10:27 AM
partang2 partang2 is offline
 
Join Date: Jun 2002
Location: Norway
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this the same as the " remove dupe mods" hack?
Reply With Quote
  #3  
Old 01-02-2003, 04:26 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Offtopic, but if people are getting added twice on your board, wouldn't it be smart to upload an unhacked register.php?
Reply With Quote
  #4  
Old 01-08-2003, 02:19 AM
Lanigironu Lanigironu is offline
 
Join Date: Mar 2002
Location: Toronto, Canada
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by partang2
Is this the same as the " remove dupe mods" hack?
I don't think so. I am not even familiar with that hack.

Link14716, I looked through register.php, it shouldn't create two entries. I am thinking that it might be some sort of glitch with MySQL. I'll have to see if there is anything hacked in register.php anyways, and maybe I'll try uploading an unhacked version. Thanks for the suggestion, though.
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 07:19 PM.


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.08188 seconds
  • Memory Usage 2,228KB
  • Queries Executed 17 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (3)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_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