2011-08-21, 03:02 PM
Pages: 1 2
2011-08-21, 03:10 PM
Hmm, try this one, make a file called last10.php
And paste this code
^This script will show the last 10 threads, modify this line .
0,5 to show lastest 5 threads.
And also change the http://www.yourforum.com/ to your forum link
Have fun.
And paste this code
<?php
define("IN_MYBB", 1);
require_once "./global.php";
$query = $db->query("
SELECT t.*
FROM ".TABLE_PREFIX."threads t
ORDER BY t.lastpost DESC
LIMIT 0,10"
);
while($thread = $db->fetch_array($query))
{
$thread['subject'] = htmlspecialchars_uni($thread['subject']);
$thread['threadlink'] = get_thread_link($thread['tid']);
echo "<a href=\"http://www.yourforum.com/".$thread['threadlink']."\">".$thread['subject']."</a><br>";
}
?>
^This script will show the last 10 threads, modify this line .
LIMIT 0,10"
0,5 to show lastest 5 threads.
And also change the http://www.yourforum.com/ to your forum link
Have fun.
2011-08-21, 03:11 PM
yes, i added that, took me a few mins to understand the editing but i got it working, ty so much.
Pages: 1 2