vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Auto Purge Threads (https://vborg.vbsupport.ru/showthread.php?t=275314)

Seductor 12-09-2011 11:00 PM

Auto Purge Threads
 
1 Attachment(s)
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 :D

Any donation?https://vborg.vbsupport.ru/external/2011/12/12.gif
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.

karlm 12-11-2011 12:12 AM

looks good... will look into it shortly :)

mitch84 12-11-2011 07:13 AM

nice idea!

Seductor 12-11-2011 02:21 PM

Any suggestion?

THX_Ultra 01-01-2012 07:59 PM

Great! This is EXACTLY what I was searching for - a cron job that automatically moves threads from one subforum to another after a certain period of time! ;)

kingMOB 01-01-2012 10:06 PM

Nice idea =)

Could be an option to mark threads to be auto purged? So after some days from the creation date the thread would be moved to another forum?

OldSchoolDSL 01-01-2012 11:33 PM

Wonderful.

I have a forum that is dedicated for "post testing". So as you can expect it fills with junk. This will be a good way to clear this out.

Seductor 01-02-2012 11:41 AM

Quote:

Originally Posted by kingMOB (Post 2282898)
Nice idea =)

Could be an option to mark threads to be auto purged? So after some days from the creation date the thread would be moved to another forum?

Do you mean to mark them manually? I do not think it could be possible at the moment. It would require to add a lot of code, but I'll keep it in mind.

OldSchoolDSL 01-02-2012 05:25 PM

Quote:

Originally Posted by OldSchoolDSL (Post 2282912)
Wonderful.

I have a forum that is dedicated for "post testing". So as you can expect it fills with junk. This will be a good way to clear this out.

Working in 4.1.10 Alpha 2

Request: In a future version, can you please have it so I can ID more than 1 forum with more than 1 function?

That is to say, I'd like this to delete everything in forum "X" (the forum people use to test post), but move other post from from Y,W,Z into an archive forum.

As it stands now, I can only do one or the other and not both.

Seductor 01-05-2012 12:54 PM

@OldSchoolDSL, I think you are able to do it now. Please, If you find any bug, report it and I'll fix it.

@Seductor (autonote): Remove only threads without replies.

1.0.3b released: I have fixed a MYSQL error. Sorry guys, it was a silly mistake.


All times are GMT. The time now is 06:20 AM.

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.04844 seconds
  • Memory Usage 1,737KB
  • 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