Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Leave link to source forum?
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2012-11-25 21:11:59
Requested by the Arcticwolf

Run SQL



ALTER TABLE `forum_topics` ADD `trace` int(11) unsigned NOT NULL DEFAULT '0';

Open forums.php



Find






$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";




1.png
1.png
2.png
2.png
Unknown User
2012-11-26 05:05:19
Very nice ty for filling this:)  But 1 option I would love is to be able to move an post itself not the whole topic.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728