Rockferd
02-15-2010, 10:00 PM
This is a small PHP script that can be run as a scheduled task to automatically send old threads to an archives forum. It will archive threads which have had no posts for the past X days. The script is forum-specific: it will only archive threads from the forums you specify, and each source forum has a specific archive forum that threads are sent to (i.e. "General" goes to "General archives", "Forum X" goes to "Forum X archives").
This is just a php script; it does not integrate into the adminCP and you will need to manually create the scheduled task. Likewise, all settings are changed within the php file, so in its current form only the site's coder can modify this script. The default script does not archive stickied threads, however you can easily modify the script to do so if you wish.
To use this script, upload the php file into /inclues/cron and create a scheduled task pointing to the uploaded file.
**The PHP script will need to be configured before use**
v1.01
Changed the switch statement to an array, halving the amount of configuration required.
This is just a php script; it does not integrate into the adminCP and you will need to manually create the scheduled task. Likewise, all settings are changed within the php file, so in its current form only the site's coder can modify this script. The default script does not archive stickied threads, however you can easily modify the script to do so if you wish.
To use this script, upload the php file into /inclues/cron and create a scheduled task pointing to the uploaded file.
**The PHP script will need to be configured before use**
v1.01
Changed the switch statement to an array, halving the amount of configuration required.