Version: 2.00, by HaMaDa4eVeR
Developer Last Online: Nov 2012
Version: 3.5.4
Rating:
Released: 04-17-2006
Last Update: 05-09-2006
Installs: 35
Uses Plugins
Additional Files
No support by the author.
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:
Turn On/Off system "All system".
Turn On/Off Move system.
Turn On/Off Delete system.
Specific forums "this hack will work on this forums only".
Specific forums " Archive Forums".
Protected Users.
Delete Type (soft/hard).
Created days.
NO Code Modifications needed!
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
19-04-2006 Fix Uninstallation bug.
22-04-2006 adding update counter for forums.
09-05-2006 version 2.0 - Enable Hack to work in Specific forums. - Adding Move threads options with On/Off System. - Specific forums " Archive Forums".
Features:.
that's all
Any questions, comments, suggestions, pleaes let me know
Enjoy!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
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
Error on line 666! Creepy!
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'
from autodelete.php, then it would also move threads that have replies, right?
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'
from autodelete.php, then it would also move threads that have replies, right?
If I were to set the zero in
Code:
$threadman->set('sticky', 0);
to 1, then it would not move stickies?
yes you're right
Quote:
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.
make sure you don't put zero in created date option
this is sql query :
PHP Code:
$vbulletin->db->query_read("
SELECT * from `" . TABLE_PREFIX . "thread`
Where forumid IN($from) AND `replycount` = '0' AND `postuserid` NOT IN (".$vbulletin->options['Admin'].") AND `dateline` <= '" . (TIMENOW - (".$vbulletin->options['created']." * 86400)) . "'");
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?