Quote:
Originally Posted by Simplicity
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?
|
The query is
Code:
SELECT * from `" . TABLE_PREFIX . "thread`
Where forumid =" . $forumid_from . " AND `postuserid` NOT IN (".$vbulletin->options['Admin'].") AND `dateline` <= '" . (TIMENOW - ( 45 * 86400)) . "'");
Which is a selection of threads that have not had any activity for, in the case of this query, 45 days. Those selected threads are the threads that are moved.