![]() |
Auto Delete Move Threads After X Day
What does this hack do ?
This is second version of Auto Delete/Move Hacks, this hack can delete the zero post threads that was created before X days in your specific forums or it can move the zero post threads to specific(Archive) through scheduled task, by defualt delete the zero post every ten days, sure you can change the period as you want, this is where the Auto Delete After X Days comes in handy! Features:
Install instructions: 1- Upload the file to forum/includes/cron. 2- Import the Product XML file through your Admincp. 3- Enjoy. NOTE: Do not forget to review the hacks options in vBulletin options under "Auto Delete/Move After X Days " to set it as you want, the defualt setting are:- - Soft delete for the threads that have zero replay and created before 30 days ago. - protected user that have id 1 & 2. - it will running every ten days. - check the attachments. History
that's all Any questions, comments, suggestions, pleaes let me know Enjoy! |
OK this is what i was looking for. but is there any way that, i want to auto deleted thread of a specific forum. not all forum ? thx
|
I would love to see this work on a per forum basis as well.
Also, any way to use this script to identify and transfer a post to an archive database before deleting? |
bug in your uninstall protion of the product xml
Code:
$db->query_write("DELETE FROM ". TABLE_PREFIX." WHERE filename='./includes/cron/autodelete.php'"); Code:
$db->query_write("DELETE FROM ". TABLE_PREFIX."cron WHERE filename='./includes/cron/autodelete.php'"); - James |
I thought about something similar for my board, but im no coder, at least not a pro.
Im wondering if you can make something similar to a Move after X days hack but not for 0 replys thread. let me know, cheers |
Quote:
thanks Quote:
PHPGeek2k3 : I'll fix it ,,thanks :) Quote:
thanks all |
thanks:up:
|
Quote:
|
Quote:
ahmed-samara: :) thank you :rolleyes: |
Hope your next version for specific forum(s) will come soon, because I need it much :D
|
Quote:
Sorry Mohammed :S |
Quote:
Quote:
not at all Jack, you're welcome :) and if you've more suggestions please feel free and put it here |
Quote:
I would like to know if your new mod might work with an idea like this: https://vborg.vbsupport.ru/showthread.php?t=114702? I never got to explain what I was trying to do above so I started a new thread... |
Quote:
|
Quarterbore and COBRAws I updated my hack today, feel free do install it and make sure that you read the new features
COBRAws thanks you again |
Great update ;)
|
Quote:
|
Thank you very much brother Hamada_For_Ever :)
Notes:
|
thanks
|
Quote:
thank u so much :) elrafei thank you :) |
Thanks! Worked as advertised. I'm not using the delete functions, just the move.
Now for a "request". A forum pair setting for the move function. This way I can create seperate "archive" forums. The syntax for the setting could be "(X,Y)(X1,Y1)" where "()" designates the pairs, "X" is the souruce forum and "Y" is the destination forum. In this way I could 'archive' My forums into their respective archives without dumping all the forums into one archive forum. |
WoW,
so nice may allah bless you **** installed :) |
Installed this hack, this is awesome, however, small problem that I may be able to fix on my own if someone could tell me how:
Code:
Fatal error: Maximum execution time of 30 seconds exceeded in /home/qcdnorg/public_html/includes/class_core.php on line 666 Edit: Also a suggestion, it would be nice if sticky threads were excluded from the move/delete. Or at least if there was an option to exclude stickies. Edit2:: I think I figured it out. PHP problem, doesn't have anything to do with the hack. |
I have installed this and got it to work, but not quite as I expected, it moves threads that are not older than the 7 days that I specified, i.e. it moved a thread from today with zero replies.
I have a couple of questions: If I were to remove Code:
AND `replycount` = '0' If I were to set the zero in Code:
$threadman->set('sticky', 0); |
Quote:
Quote:
this is sql query : PHP Code:
|
Thanks dear for this hack , i`v been rated toy ,
Regards |
Quote:
|
Quote:
thanks you :) |
I can't figure out why this isn't working for me. I installed and set it up, but so far the schedule hasn't run and when I click on "Run Now" it says "Done" but I have threads in the "Effected Forum" that the created date is older than 30 days (what I have it set for). Also, according to my Scheduled Task logs this cron job has not run since I installed it 2 months ago. Any ideas? I'm going to try uninstalling it and reinstalling it to see if it fixes it, but has anybody else had this kind of trouble?
|
Negative, still not working.
|
Is this removing sticky threads aswell ?
|
How would I go about setting this hack up so that it moves a thread which has replies but not been active for 14 days?
|
Just to clarify, this moves a thread which has had no reply posts at all or moves a thread which has had replies but not for x days?
|
Quote:
Code:
SELECT * from `" . TABLE_PREFIX . "thread` |
I changed the move code, starting at line 11 to:
Code:
//comma delimited Such as in the options for Effected Forums if I entered 1,2,3,4 and in Archive Forums I put 20,21,,21 Then forums 1 and 3 gets moved to forum 20 and forums 3 and 4 gets moved to forums 21 If I entered Effected Forums if I entered 1,2,3,4 and in Archive Forums I put 20 then all forums get moved into 20 enojoy! |
Quote:
Quote:
attachmentid=47281&stc=1&thumb=1&d=[/IMG] it only move/delete in X days and the thread that have 0 post , |
Quote:
|
Good Jop, louis_chypher
|
when I am trying to use this mod manually though cp - cron (hard deletion settings) I am getting this error
Database error in vBulletin 3.6.0: Invalid SQL: SELECT * FROM `vbulthread` Where forumid IN(96 , 97) AND `replycount` = '0' AND `postuserid` NOT IN () AND `dateline` <= '1160512459'; MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND `dateline` <= '1160512459'' at line 1 Error Number : 1064 Date : Tuesday, October 10th 2006 @ 10:34:19 PM Script : http://www.americasarmy.pl/forum/adm...cron&cronid=25 Referrer : http://www.americasarmy.pl/forum/adm....php?do=modify IP Address : xx.xx.xx.xx Username : Dj. Gargamel Classname : vb_database using soft deletion is working correctly |
It didn't say in the readme file, but should I create a new scheduled task for this hack??
|
All times are GMT. The time now is 06:02 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:
|