![]() |
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. |
looks good... will look into it shortly :)
|
nice idea!
|
Any suggestion?
|
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! ;)
|
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? |
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. |
Quote:
|
Quote:
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. |
@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. |
Hi, I don't know why, but it seems that the Plugin does not work anymore since the 1.03b update.
Just for my understanding - If I want to move threads after 3 days from one forum to another. I enter at "Thread must have been created earlier than X days." the number 3 - right? So everything worked fine until I updated to 1.03b - now It doesn't move threads anymore, even If i start the cron job manually. Do I have to completely uninstall the addon before updating, or is there anything I missed? I'd appreciate your help, because the addon would be extremely helpful for me. |
It seems to be broken. However, it works If I run it manually.
The cron path seems to be right. The scheduled hour seems to be okay too. @THX_Ultra could you help me? Go to Scheduled Tasks > Scheduled Task Log and check if there is any Auto Purge Threads action. I have one everyday at 5 AM. Do you have any? Btw, I have edited the AutoPurge options, perhaps you should recheck them. Do you have Enable Plugin set to "yes" and Move threads and/or Delete threads to "yes" too? @Trangalleiro: I have received your PM, however you have set you don't want to receive PMs. I can't answer you through private messaging. |
This is the error I got on every version of this modification. The error happen only when I enabled this.
Code:
Invalid SQL: |
Quote:
One more thing - I realised that the field for protected users have to be filled with something, but for moving threads, I do not want to have any user protected. Can I enter 0 instead of eg. 1 or any other userid? Does this affect the addon? |
Oh, @OldSchoolDSL, It is an easy error. I have never tought that Protected Users could be void. I will fix it but, meanwhile, have you seen any other bug?
Quote:
|
Quote:
Because of the error, nothing ever happen... ie... The modification to my knowledge didn't work. I never did see the error on my screen, only got the e-mails about it. |
Yes 1.03 worked fine - when I use 1.03b and leave everything unchanged - it doesnt. If i start it manually it just does not move threads.
I have one protected user, but i just use it because I get an error messag if I leave it blank. |
Now (1.03c) you can void Protected users.
I have changed the SQL sentences and now it is easier to edit the them. Now it works like: Code:
$query = "SELECT * from `" . TABLE_PREFIX . "thread` Where forumid IN($frommove) AND `dateline` <= '" . (TIMENOW - ($whencreated * 86400)) . "'"; It seems to work for me. I have not Protected users and I don't want to move stickies. I have enabled the debug mode and it shows this: https://vborg.vbsupport.ru/external/2012/01/57.png So it seems to work perfectly. FYI: 1.04 will have "Protected threads". I'm working on it. |
Installing this, will report soon. GREAT mod, thank you!
|
Option request; Last post X days as move/delete criteria.
|
Option request; Move locked threads to specified forum or delete.
|
Quote:
I'd love this as well - it's nice to be able to delete all my for sale threads after 90 days, but it would be nicer to delete them when they've not had a reply in 30 days :) |
I was trying to rebuil all the whole system, but taking in cout the many request you are writing, perhaps I should focus on them.
|
Any chance this mod would work in 3.8.x?
|
Quote:
|
I tried to install in my vBulletin 4.1.7 Patch Level 2, but is not working
|
Quote:
|
There is a small error in script:
PHP Code:
PHP Code:
|
Thanks gocreate! I'm going to fix it.
|
I've add some features and I've fixed the forumdelete bug. Thanks again, gocreate.
NOTE: Please, don't upgrade it yet, I've found some small bugs. I'm going to fix them when I'm back at home |
Thanks Seductor
|
Fixed and added a new feature.
/me waves at Trangalleiro |
Installed and waiting to see it working. Can you add an option to move moderated thread also?
Thanks, |
Quote:
|
Request: Some sort of log file to show from, to and how many threads were moved/deleted and make it searchable say by date via the ACP. OR even simpler a PM or email notification at the least.
|
Quote:
|
It seems not work on my site. Do I have more config please?
Error: Quote:
|
Quote:
|
Just updated, run the task and see no error. I would be nice if you could add protected user groups.
Thanks, |
I'm using with this mod
https://vborg.vbsupport.ru/showthread.php?t=116605 and I want after the user buys the theme topics are moved to their previous position. |
All times are GMT. The time now is 06:21 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|