Quote:
Originally Posted by Rukas
Is there a way to make this work so that after 24 hours of a thread being posted it is moved, regardless of when the last post in the thread was. So basically it only works off when the thread was started, not replied to, and moves aver 24 hours (I assume setting days to 1 would work  ).
|
I believe the "dateline" field is the date the thread was created. If so, replace "lastpost" with "dateline" as I've done below:
PHP Code:
$DB_site->query("
UPDATE " . TABLE_PREFIX . "thread
SET forumid = $toforuma
Where dateline <= $movedate
AND forumid = $fromforuma
");