Mô tả: Code này sẽ show hình ảnh lần luợt giống như sử dụng jquery
Hướng dẫn:
Mở forum/index.php tìm:
''.highlight('if ($set_user['avatar'])
echo '';').''
Thêm vào sau đó:
''.highlight('$noidung = mysql_query("SELECT `id`, `refid`, `text` FROM `forum` WHERE `type`='m' AND `refid`='".$type1['id']."'");
$t = mysql_fetch_array($noidung);
$bv = mysql_result(mysql_query("select `text` from `forum` where `type` = 'm' && `id`-1 = '".$type1['id']."' limit 2"),0);
if(preg_match_all('#\[img\](https?://.+?)\[\/img\]#i', $t['text'], $Img)) {
$img=$Img[1][0];
} else {
$img='/images/noimg.png';
}