Somebody made this:
Quote:
<?php
error_reporting(E_ALL & ~E_NOTICE);
if (!is_object($DB_site))
{
exit;
}
$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET forumid = 2 WHERE forumid = 17 AND replycount >= 1");
require_once('./includes/functions_databuild.php');
build_forum_counters(2);
build_forum_counters(17);
log_cron_action('Threads with replies moved from Forum 17 to Forum 2', $nextitem);
?>
|
And it's great, but I'm wondering if there's a way to make this so that once there's more than one reply the thread is moved AND leaves a redirect.
If you're wondering why, I have this idea of bringing an RSS news feed in as threads, and over time deleting old the older news... automatically... any items that get a reply get highlighted as more interesting by being moved to a "news worth talking about" thread, and should be pulled out of the RSS feed area, as it might get deleted or pushed down into obscurity. I'd need a redirect so folks in the news area would know the thread got moved to "news worth talking about." Make sense? Help me out if you can, thanks!