MyBB Community Forums

Full Version: list of recent threads in merge template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im not sure if this is in the list of 20 some pages of threads or not. 

It is very confusing to mods when merging threads which thread is going to be deleted. Also it is a PITA to go find that thread. To bypass this problem i made a list of the latest 100 threads in an iframe in the merge_moderation template. 

I put it in the root MyBB 
<?php
define("IN_MYBB", 1);
require_once("./global.php"); // Change this if needed
$tlimit = 100; // How many titles you want

$query = $db->query("SELECT * FROM ".TABLE_PREFIX."threads ORDER BY `tid` DESC LIMIT $tlimit");
while($fetch = $db->fetch_array($query)){
echo '<a href="./showthread.php?tid='.$fetch['tid'].'">'.$fetch['subject'].'</a><br />' . "\n";
}
?>


template moderation_merge
<br><br><br>
 <center><h3>Latest threads</h3></center>

<iframe src="/latest100.php" width="100%" height="400px" >
 <input type="button" value="Back" onclick="history.back()">

  <p>Your browser does not support iframes.</p>
</iframe>

then in this way when you go to a thread and select merge you get a list that you can right click and get a copy of to put into that box without much hassle. It is still a lot of confusion until you get use to it as to whether you select merge from the source or destination thread. But i think MyBB 2.0 should at least give a list of latest thread to select from such as this to make it easier on mods.