Andreas
01-25-2005, 10:00 PM
If you merge Thread A into Thread B, Thread A will be deleted afterwards.
Now your users might be confused as they can't find the thread anymore.
This hack changes this behaviour: Thread A will become a redirect to the merged Thread B.
In postings.php FIND
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "thread WHERE threadid = $mergethreadid");
REPLACE that with
$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET open = 10, pollid = $threadid WHERE threadid = $mergethreadid");
Now your users might be confused as they can't find the thread anymore.
This hack changes this behaviour: Thread A will become a redirect to the merged Thread B.
In postings.php FIND
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "thread WHERE threadid = $mergethreadid");
REPLACE that with
$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET open = 10, pollid = $threadid WHERE threadid = $mergethreadid");