Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Auto Purge Threads Details »
Auto Purge Threads
Mod Version: 1.05, by Seductor (Member) Seductor is offline
Developer Last Online: Oct 2013 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (8 votes - 4.75 average) Installs: 73
Released: 10 Dec 2011 Last Update: 03 Jun 2012 Downloads: 440
Not Supported Additional Files Re-usable Code Translations  

What does this hack do ?
This tool is based on Auto Delete/Move tool by HaMaDa4eVeR for vBulletin 3.6.4.

This hack can delete the threads that was created before X days in your specific forums or it can move threads to specific(Archive) through scheduled task.

Features:
Turn On the plugin
Turn On/Off Move system.
Turn On/Off Delete system.
Specific forums for move and delete.
Specific "Archive Forum".
Protected Users.
Delete Type (soft/hard).
Automatically update counters.
Choose to delete/move stickies.
Set how old must a thread be.
NO Code Modifications needed!

Installation:
1. Unzip the download package and copy the contents of the folder UPLOAD to your forum root
2. Go to the VB AdminCP->Plugins & Products click "Manage Products". Then click
"Add/Import Product" at the bottom of the page.
3. Click "Browse" button and point to the installation XML file included in this ZIP package.
4. Click "Import"
5. Once the gallery import is complete, you can setup your Auto Purge. Go to VB AdminCP -> Options -> Auto Purge Threads to setup the Auto Purge.
Also, you can change the cron setup in the task manager.

NOTE:
The default settings are:
- Soft delete for the threads that have been created before 15 days ago.
- Protected user that have id 1 & 2.
- It will running everyday at 5.00 AM.

Updates:

-------
v1.00
It is now vBulletin 4.x.x compatible.
Cron task added successfully. Removed some old SQL queries.
Removed the zero replies thread search.
Spanish translation added.

v1.01
You can set if you want to remove stickies.
If you move your threads, you can set if you want to unstick them if they are sticky.
XML tidied.

v1.02
You can set if you want to manually update your forum counters.
PHP tidied and optimized.

v1.03
Now you can move and/or delete different forums.
v1.03b
Fixed a MYSQL error.
v1.03c
Fixed a bug related to Protected users.

v1.04
Fixed a bug (thanks gocreate).
You can set if you want to remove locked threads.
You can set if you want to remove only threads without replies that match your other conditions.

v1.04b
Now you can protect some threads from moving/deletion.

v1.04d
Some bugs fixed.

v1.05
You can send PM when AutoPurge finish its work.

Next updates:
(sighs)

Special thanks to BirdOPrey5

Any donation?
I'm not begging but If you want, I would be glad to receive a small donation. There are 4.4 million unemployed in my country and It is hard to be employed.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	autopurge.png
Views:	896
Size:	136.2 KB
ID:	135481  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Expired Threads (Auto Close Threads) Logikos Modification Graveyard 78 20 May 2006 09:53

  #46  
Old 23 Sep 2012, 15:42
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Originally Posted by thunderclap82 View Post
Any plans to implement the requested feature of pruning from the last reply instead of original post? I, too, would love this feature.
Could definitely use this mod also if it added the option to go form the date of the last post in thread instead of original thread posting date.
Reply With Quote
  #47  
Old 17 Oct 2012, 10:04
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Error

I get this error when running cron job manually:

Fatal error: Call to a member function query_read_slave() on a non-object in /home/XXXXXX/public_html/forum/includes/functions.php on line 8503
functions.php: lines 8503-8598


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Edit:
If I turn off "Enable PM's" this error does not show.

Last edited by bzcomputers; 17 Oct 2012 at 10:21. Reason: Found setting causing error
Reply With Quote
  #48  
Old 18 Oct 2012, 06:05
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
There also seems to be in error in updating counters for the archive forum also.

I had to edit cronautopurge.php:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


If I change "$to" above to the actual forum id of the archive forum it works but it will not work using the archive forum input in the admin settings.

Example: If you set "20" in admin settings for archive forum it does not update, if you set "20" directly in the cronautopurge.php "build_forum_counters(20);" it works.
Reply With Quote
  #49  
Old 06 Nov 2012, 03:29
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Real name: Shawn
The only option I'm using is to move threads from one forum to the other.
I need the threads moved every night at midnight, I know there is code for a scheduled task for this as well.

If anyone can assist I will definitely make it worth your wild.
Reply With Quote
  #50  
Old 01 Jan 2013, 22:04
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Hi Seductor,

Are you planning to release an update to this with the bugs fixed? Would appreciate it.

I am looking to set up a craigslist style classifieds forum, and think i can comine this with a "forms" plugin to achieve the result.

One other extension suggestion (good to have) is to have a per thread (user selected) ad expire duration, and use that to check in the cron job rather than the standard expire duration.

TIA

ndahiya
Reply With Quote
  #51  
Old 02 Jan 2013, 14:28
Markco Markco is offline
 
Join Date: Oct 2005
I am using version vb4.20pl3 and 1.5 plug-in do not work automatically, work manually, no error message.
__________________
Excuse me I use a French/English translator
Reply With Quote
  #52  
Old 17 Jan 2013, 11:38
Barbara1 Barbara1 is offline
 
Join Date: Jun 2010
4.2.0 PL3 (test forum- closed to public and almost duplicate of the live forum). i have edited the settings the way i wanted them, i pressed the "run now" from task manager, but instantly i got the message "Done" and nothing happened.
i think i am missing something. any ideas?

edit: at the task manager everything about the hack's settings is with an asterisk. dunno if this has to do with the "run now" option

Last edited by Barbara1; 17 Jan 2013 at 12:12.
Reply With Quote
  #53  
Old 30 Jan 2013, 15:22
Big-Pete Big-Pete is offline
 
Join Date: May 2009
Anychance of this being updated to work with vB4.2 ??
Reply With Quote
  #54  
Old 31 Jan 2013, 08:53
Markco Markco is offline
 
Join Date: Oct 2005
Originally Posted by Markco View Post
I am using version vb4.20pl3 and 1.5 plug-in do not work automatically, work manually, no error message.
The cron works fine but not of log in Control Panel Log Viewer while Log Entries is yes !!!
__________________
Excuse me I use a French/English translator
Reply With Quote
  #55  
Old 27 Feb 2013, 20:09
vicius_the_one vicius_the_one is offline
 
Join Date: Dec 2010
Anyone can make me understand please ? : is it working to move/delete threads after x days of inactivity ? That is all I want
Reply With Quote
  #56  
Old 11 Mar 2013, 09:16
Klangfuzzi Klangfuzzi is offline
 
Join Date: Feb 2013
May I suggest an additional feature?
To make this mod perfect fitting for my forum, it would need the option:
"Move threads with no activity for x days"
Means. No Post since x days
Reply With Quote
  #57  
Old 14 May 2013, 14:43
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
I see many questions and issues above... does that imply that the mod doesn't work??

did anyone test it on vb4.2??

I will try that as well if I finish my updates...
Reply With Quote
  #58  
Old 11 Jun 2013, 06:20
maisev maisev is offline
 
Join Date: Apr 2012
Originally Posted by fxdigi-cash View Post
I see many questions and issues above... does that imply that the mod doesn't work??

did anyone test it on vb4.2??

I will try that as well if I finish my updates...
It is working on vb 4.2.1
Reply With Quote
  #59  
Old 06 Jul 2013, 03:01
adwade adwade is offline
 
Join Date: Aug 2006
Real name: A.D.
Question

Originally Posted by Seductor View Post
I think it could work properly in 3.8.X, but I didn't test it.
Two quick questions:
1)Has anyone tried this version with vB 3.8.x
2)Rather than the Protected Users feature, would it be possible to tweak a line or two of code and change it to function against only Targeted Users?

Allow me to explain...
We have a NewBot that automatically posts stories (via an RSS feed) and I am hunting for a way to automatically delete old stories off the board.(i.e. say after they're 1yr old) So rather than Protecting certain users, I would like to be able to run this MOD and have it ONLY function against our NewsBot's threads.
Reply With Quote
  #60  
Old 06 Jul 2013, 18:55
Seductor Seductor is offline
 
Join Date: May 2011
Sorry guys, it should be working for 4.2.1. I'll try to improve this plugin soon
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 13:42.

Layout Options | Width: Wide Color: