MyBB Community Forums

Full Version: i want display latest thread on my main home page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
You can read the error, and normally fix it yourself.
Hello,

can the latest thread show up in vertical each thread?

then it show who's posting and flash of the content like:

Admin Announcement # who's posting, and title thread if posible before Admin there's minimize avatar.
Nice to know you all # flash of the content while the original content is there're 500 char but it minized it on just 50 char.

How can be?
(2011-12-18, 08:45 AM)hamada27588 Wrote: [ -> ]
<?php

define("IN_MYBB", 1);
require_once("forum/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");

    $list = '';
    while($fetch = $db->fetch_array($query))
    {
        $list .= " | <strong><a href=\"forum/showthread.php?tid={$fetch['tid']}\" target=\"_blank\">".htmlspecialchars_uni($fetch['subject'])."</a></strong>";
        /*
		$poster = "<a href=\"forum/member.php?action=profile&uid=".$fetch['uid']."\">{$fetch['username']}</a>";
        $list .= "Created by: {$poster}  ";
        $list .= "<i>" .$fetch['replies']. " Replies</i>";
        $list .= "<i> , " .$fetch['views']. " Views</i>  ";
        $list .= " (<i>Last post by: " .$fetch['lastposter']. "</i>)<br /><hr width=\"50\"><br />";
        */
    }


//output

echo "<marquee direction='right' scrollamount='3'>";
echo $list;
echo "</marquee></p> ";

?>

Hi, is possible to use without scroll, a static output like this,


England grüsst Falkland
felilix May 28, 2018, 10:03

Janis Joplin
tinpen Mar 14, 2018, 6:03

Powernap
tinpen Mar 14, 2018, 6:00
Pages: 1 2