vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Mass Delete Inactive Members and Zero Posters (https://vborg.vbsupport.ru/showthread.php?t=41722)

Gamingforce 07-30-2002 10:00 PM

Mass Delete Inactive Members and Zero Posters
 
[ Feature Description ]
After some quick calculations we found out that over 7000 of our members were both zero posters and have not visited the board in over one month. After searching first through vBulletin, I noticed there was no script that did this (although there was a script to hunt out inactive users). Deleting each user one by one would take forever so I decided to write a script that made this much easier! In the script just set the minimum number of posts and the maximum number of days inactive and the script will automatically delete these users. Instead of just deleting the user from the user table, all calendar items made by the user are deleted, all custom avatars are deleted, private mesages are deleted and even their subscription settings. I hope this script helps a lot of other people as well.

[ What you need to do ]
Open up massdelete.php, edit the two variables under CONFIGURATION. Then just drop this into your admin directory and run the file.

[ Tested on ]
vBulletin versions 2.2.6 (should work with any vBulletin 2+)

[ Future Plans ]
Probably I will add a feature that emails the user telling them their account has been deleted.

Hope everyone finds this hack useful! If you have any comments or suggestions post them here.

proxyMX 07-31-2002 03:41 AM

very COOL, Will be installing this baby thanks :)

afterlab 07-31-2002 03:54 AM

Aha, sweet work gamingforce. When I need it, i'll load it up. Thanks for this extra feature. :rambo:

Neo 07-31-2002 04:23 AM

HAHAHAH Funny but have you ever looked at the Move/Prune option in the user area of the admin cp? ;)

LOL

afterlab 07-31-2002 05:32 AM

Hmm.. Good point. I guess we don't need a hack like this then.

Birdie501 07-31-2002 06:48 AM

will the posts of this users also be deleted?

wooolF[RM] 07-31-2002 11:10 AM

]
Quote:

Originally posted by Neo
HAHAHAH Funny but have you ever looked at the Move/Prune option in the user area of the admin cp? ;)

LOL

I have the same opinion...

Gamingforce 07-31-2002 11:39 AM

Oops! Mine is easier to use though! just change 2 vars, upload and run. Takes 30 secs. ;)

Is it faster too? I dunno. You can use either, and if FireFly wants to delete this he can. Seems like many people don't know about it though.

LouChipher 07-31-2002 02:41 PM

for a second version, it would be nice when i can see everyday which users are xx days not logged in (or last activity would be better) and then i can delete this... maybe a automatic mail a week bevor and yes/not auto remind in the user cp...?

Neo 07-31-2002 09:25 PM

Quote:

Originally posted by Gamingforce
Oops! Mine is easier to use though! just change 2 vars, upload and run. Takes 30 secs. ;)

Is it faster too? I dunno. You can use either, and if FireFly wants to delete this he can. Seems like many people don't know about it though.

Yes I figured it would be. But good job anyways :)


All times are GMT. The time now is 01:46 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.01188 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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