ờ ờ thui bê nguyên của tui về nè mết wé phải so sanh nhìn nhức cả mắt
mở forums.php ra tìm
CODE
$DB->cache_add_query('forum_topic_preview_hover', array('tids' => implode(",", $topic_ids), 'queued' => $queued_query_bit));
select cho đến
CODE
$this->output .= $this->render_entry($topic);
$total_topics_printed++;
}
nghĩa là den hết nguyên cái function đó
thay bằng
CODE
$DB->cache_add_query('forum_topic_preview_hover', array('tids' => implode(",", $topic_ids), 'queued' => $queued_query_bit));
$DB->cache_exec_query();
while ($tpr = $DB->fetch_row())
{
$tp_ids[] = $tpr;
}
}
foreach ($topic_array as $tid => $topic)
{
if ($topic['pinned'])
{
$this->pinned_topic_count++;
}
if (count($tp_ids))
{
foreach ($tp_ids as $t => $p)
{
if ($topic['tid'] == $p['topic_id'])
{
$p['post'] = preg_replace("/<img(.+?)\/>/i", "<b>*IMAGE*</b>", $p['post']);
$p['post'] = preg_replace("/<object(.+?)>(.+?)<\/object>/i", "<b>*MEDIA*</b>", $p['post']);
$p['post'] = preg_replace("#\[hide\](.+?)\[/hide\]#is", "<{HIDE1}>", $p['post'] );
$p['post'] = preg_replace("/<embed(.+?)\](.+?)<\/embed>/i", "<b>*REAL MEDIA*</b>", $p['post']);
if (strlen($p['post']) > 400)
{
$p['post'] = wordwrap($p['post'], 400, "(<--^!^-->)");
$arr = explode("(<--^!^-->)", $p['post']);
$p['post'] = $arr[0]."...";
}
//$topic['topic_preview'] = $p['post'];
$topic['topic_preview'] = $this->parser->post_db_parse( $p['post'], $p['topic_id'] );
}
}
}
$this->output .= $this->render_entry($topic);
$total_topics_printed++;
}
hỏng đc nữa thì bó chíu hehe