PHP Code:
ob_start();
$selectthread = vB::$db->query_read("SELECT * FROM `thread` WHERE `forumid`='90' OR `forumid`='91' OR `forumid`='92' OR `forumid`='93' OR `forumid`='94' OR `forumid`='95' OR `forumid`='96' OR `forumid`='97' OR `forumid`='98' OR `forumid`='99' OR `forumid`='100' OR `forumid`='101' OR `forumid`='102' OR `forumid`='103' OR 'forumid'='104' OR 'forumid'='105' OR 'forumid'='106' OR 'forumid'='107' OR 'forumid'='108' OR 'forumid'='109' OR 'forumid'='110' OR 'forumid'='111' OR 'forumid'='112' OR 'forumid'='113' OR 'forumid'='114' OR 'forumid'='115' OR 'forumid'='116' OR 'forumid'='117' ORDER BY RAND() LIMIT 0,1");
$output_bits = '';
while($row = vB::$db->fetch_array($selectthread))
{
$fpost = $row[firstpostid] ;
$selectpost =vB::$db->query_read("SELECT * FROM `post` WHERE `postid`='{$fpost}'");
while ($apt=vB::$db->fetch_array($selectpost)) {
$output_bits .= "<a href='showthread.php?t=$row[threadid]' >$row[title]</a><br />$apt[pagetext]<br /><a href='forumdisplay.php?f=81' >Toplam: <b>1465</b> kayit var.</a> ";
}
}
$output = $output_bits;
ob_end_clean();
How can i parse BBCode in this widget or in widgets?