Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
DEAD User Cleaner Details »»
DEAD User Cleaner
Version: 1.00, by GenSec GenSec is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 11-11-2004 Last Update: Never Installs: 7
 
No support by the author.

To whom it may concerns...

This hack was written for internal needs and made my admin's life much more comfortable

---------------------------------------------------
This hack helps to maintane your vBulletin database in condition.
It concerns first of all those cases when there is inconsistency between your current users list
and dead users information in any of the database tables ( used by addons and hacks for example).
What does it do? It helps to clean db tables from records which contain old entries with userid's deleted
from the main vBulletin user table.

You can make this script to do this boring task in secs from your ACP.

Of course you should be familiar with your db structure. Otherwise don't waste your time for this hack.

You can add/delete/change your settings, turn on and off. I used it on my live board and it's safe BUT:
\*================================================ ======================*/
Backup your board database and accept responsibility if your board stops working.
This done you can rest assured that if you follow the instructions to the letter the board will be
in the same condition it was before, only with this added functionality.
\*================================================ ======================*/



File to edit: 1
File to add: 1
Add newSQL table: 1


Very easy to install... Just 2"
---------------------------------------------------

1. Run sql to create new work db table and populate it with some examples
( I just include tables to clean from some popular hacks )

Code:
CREATE TABLE `user_cleaner` (
  `cl_id` int(10) unsigned NOT NULL auto_increment,
  `cl_userid` varchar(20) NOT NULL default '',
  `cl_table` varchar(200) NOT NULL default '',
  `cl_valid` tinyint(1) unsigned NOT NULL default '1',
  PRIMARY KEY  (`cl_id`)
) TYPE=MyISAM AUTO_INCREMENT=28 ;

#
#

INSERT INTO `user_cleaner` VALUES (1, 'userid', 'attachment', 0),
(2, 'userid', 'gamesessions', 0),
(3, 'XOWNER', 'petz_adopt', 0),
(4, 'UID', 'petz_bank', 0),
(5, 'OWNER', 'petz_petz', 0),
(6, 'userid', 'reputation', 0),
(7, 'whoadded', 'reputation', 0),
(8, 'userid', 'rpg_battle_stats', 0),
(9, 'userid', 'rpg_items_user', 0),
(10, 'userid', 'subscribethread', 0),
(11, 'userid', 'userfield', 0);
2. Upload cleanuser.php file to admincp folder

3. ...And optionally add link in you ACP

Find in admincp/index.php
Code:
	construct_nav_option($vbphrase['repair_optimize_tables'], 'repair.php?do=list', '<br />');
Add below
Code:
	construct_nav_option('User Cleaner', 'cleanuser.php', '<br />');
------------------
Thats all!


Run 'User Cleaner' from your ACP when you feel it is necessary

Show Your Support

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

Comments
  #2  
Old 11-12-2004, 08:06 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amazing. No, really - didn't expect a hack such as this to ever come along, very useful for me. Thanks!
Reply With Quote
  #3  
Old 11-16-2004, 10:25 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is indeed a great hack
Reply With Quote
  #4  
Old 11-16-2004, 08:44 PM
Jadelit Jadelit is offline
 
Join Date: Feb 2002
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what other tables should be cleaned?

I dont allow guests to post, but when I remove someone there post is still there.
Reply With Quote
  #5  
Old 12-16-2004, 12:28 PM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wonderful! The arcade game highscores were buggering up my score prunning big time and it was a major PITA to find the deleted user.

Quick question on this... would it be possible to get this to include a secondary database that uses the same loggin info as the VB tables? I have a couple of integrated scripts I would also like to also check against the main user table.
Reply With Quote
  #6  
Old 12-16-2004, 07:47 PM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The same database - yes. Any other table. And you can use it for any database that has the same user table, as a basic one in vbulletin.
Reply With Quote
  #7  
Old 09-19-2005, 09:53 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how could you remove info from users in a banned group?

curious. THanks.
Reply With Quote
Reply

Thread Tools

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 06:31 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.04350 seconds
  • Memory Usage 2,253KB
  • Queries Executed 20 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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