Jump to the post that solved this thread.
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 9 Years, 1 Week ago Seperate Latest X Threads Page
#1
Solved: 9 Years, 1 Week ago
Im lookng to have a seperate page for the latest X amount of threads.
Ive seen many threads about adding similar things to sidebars, portals etc but nothing for a seperate page.

Ive got this code which I found on the forum but I need the page to follow the MyBB template, aswell as use pagination etc.

<?php
define("IN_MYBB", 1);
require_once("./global.php"); // Change this if needed
$tlimit = 5; // 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";
}
?>

Anyone got any idea what needs to be done?

Thanks
Jump to the post that solved this thread.


Messages In This Thread
Seperate Latest X Threads Page - by BleepyEvans - 2012-06-08, 01:28 PM
RE: Seperate Latest X Threads Page - by Vernier - 2012-06-08, 01:35 PM
RE: Seperate Latest X Threads Page - by anori - 2012-06-08, 01:47 PM
RE: Seperate Latest X Threads Page - by Leefish - 2012-06-08, 01:52 PM
RE: Seperate Latest X Threads Page - by Leefish - 2012-06-08, 02:46 PM
RE: Seperate Latest X Threads Page - by febian - 2014-01-29, 03:20 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)