Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i want display latest thread on my main home page
#11
You can read the error, and normally fix it yourself.
Reply
#12
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?
Reply
#13
(12-18-2011, 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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)