The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Mass Delete Inactive Members and Zero Posters Details »» | |||||||||||||||||||||||||||
Mass Delete Inactive Members and Zero Posters
Developer Last Online: Jan 2007
[ 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. Show Your Support
|
Comments |
#12
|
||||
|
||||
LOL I better add the auto email feature soon to make this feature actually useful!
EDIT: That's the thing about PHP Lou. You can't have things done really on time intervals unless you store the date in the database and every single time a page is loaded, it checks the date to see. Another option is cron though. Since PHP is a dynamic on-the-fly language, it can't be open like a program ready to run at specific intervals. |
#13
|
||||
|
||||
Very nice!
|
#14
|
||||
|
||||
What's the quickest way to set it at deleting members with posts less than X value and have not visited the forums for Y days? And..is there a way to do this automatically? Probably not, would have to use one of those cron job thingies, which I've never used. But If I could do this just through admincp it would help alot. This hack allows the members to remain, but a modified version I could really use is one that allows them to be deleted.
Thanks |
#15
|
||||
|
||||
works fine, thanks
|
#16
|
||||
|
||||
how is "inactive" defined in this script.
Inactive is when the user hasn't been online in X days? or Inactive is when the user hasn't posted in X days? I hope its the first one. |
#17
|
||||
|
||||
Quote:
|
#18
|
||||
|
||||
Posts will not be deleted in this version but is planned for a future versions. I originally designed this for 0 posters. I think it's a good idea still keeping the posts of inactive posters just for history and continunity of threads.
30 days inactive means they haven't even visited the board in over 30 days. |
#19
|
||||
|
||||
Ok, it hink it would be a great feature if the user gets an email that tells him: You have not logged on for x days. Your account will be deleted in x days if you do not reactivate your account by clicking the link below.
What do you think? |
#20
|
||||
|
||||
That would be a cool feature birdie501.
|
#21
|
|||
|
|||
Quote:
I Know. Look at the Birthday or Member Of The Day "Hack"... the first one who visit the forum at a new day induce the update.. or a cron job version... indifferently... Mail a week before or when deleted? Pro? Contra? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|