Requested by the Arcticwolf
Run SQL
Find

Run SQL
ALTER TABLE `forum_topics` ADD `trace` int(11) unsigned NOT NULL DEFAULT '0';
Open forums.phpFind
$res = SQL_Query_exec("SELECT lastpost FROM forum_topics WHERE forumid=$forumid ORDER BY lastpost DESC LIMIT 1");
Replace With
$res = SQL_Query_exec("SELECT lastpost FROM forum_topics WHERE forumid=$forumid OR trace = $forumid ORDER BY trace, lastpost DESC LIMIT 1");
Find
print("</select> <input type='submit' value='Apply' /></div></form>\n");
Replace with
print("</select> <input type='checkbox' name='trace' value='1' /> Leave a link to the new topic in the source forum? <input type='submit' value='Apply' /></div></form>\n");
Find
if ($arr["forumid"] != $forumid)
@SQL_Query_exec("UPDATE forum_topics SET forumid=$forumid, moved='yes' WHERE id=$topicid");
Replace with
if ($arr["forumid"] != $forumid)
{
@SQL_Query_exec("UPDATE forum_topics SET forumid=$forumid, moved='yes' WHERE id=$topicid");
if ( is_valid_id( $_POST['trace'] ) )
{
SQL_Query_exec("UPDATE `forum_topics` SET `trace` = $arr[forumid] WHERE id = $topicid");
}
}
Find
$res = SQL_Query_exec("SELECT COUNT(*) FROM forum_topics WHERE forumid=$forumid");
Replace with
$res = SQL_Query_exec("SELECT COUNT(*) FROM forum_topics WHERE forumid=$forumid OR trace = $forumid");
Find
$topicsres = SQL_Query_exec("SELECT * FROM forum_topics WHERE forumid=$forumid ORDER BY sticky, lastpost DESC LIMIT $offset,$perpage");
Replace with
$topicsres = SQL_Query_exec("SELECT * FROM forum_topics WHERE forumid=$forumid OR trace = $forumid ORDER BY trace, sticky, lastpost DESC LIMIT $offset,$perpage");
Find
encodehtml(stripslashes($topicarr["subject"])) . "</b></a>$topicpages";
Replace with
encodehtml(stripslashes($topicarr["subject"])) . "</b> " . (($topicarr['trace'] && $topicarr["trace"] != $forumid) ? '[Moved]' : null) . "</a>$topicpages";
