sanırım oldu arkadaslar yapmanız gerekenleri aşağıda anlattım kolay gelsin..
aşağıdaki kodlarda ~~--> WHERE validate = '1'and id_cat = '1' <--~~ bu oklar arasında kalan yeri bulunn --> id_cat= '1' <-- sadece buradaki sayıyı hangi kategorinin anasayfada görüntülenmesini istiyorsaniz o kategorinin kategori sırası ile değişin ...aynı kodları kullanarak sadece id_cat sayısını değişip diğer inceleme kategoriler içinde blok yaratabilirsiniz ..yani 1.kategori için id_cat='1' yaptıysak aynı kodlarla , 2. kategori için id_cat='2' yapıp diğer kategorilerinizide bu şekilde gösterebilirsiniz..
<?
/*
+--------------------------------------------------------------------------
| MkPortal Last Reviews Block 1.1 (for side block) 14.10.2005
| for M09+ x All Boards
| by siyah_08 <artvinim.net>
| Adapted from news.php and last_forum_posts by Siyah_08
+--------------------------------------------------------------------------
| MkPortal
| ========================================
| by Siyah_08 aka Luponero <Amedeo de longis>
|
| (c) 2004 mkportal.it
| http://www.mkportal.it
| Email: luponero@mclink.it
+--------------------------------------------------------------------------
*/
$limit = 5; // number of reviews to show
$cutoff = 17; // number of characters to display in title
$dateformat = "short"; // Formats the date. Options are short, time, small, normal, or leave blank for default.
$link_user = $mklib_board->forum_link("profile");
$content = "";
$DB->query( "SELECT id, idauth, title, author, date, click FROM mkp_reviews WHERE validate = '1'and id_cat = '1' ORDER BY `id` DESC LIMIT $limit");
while( $row = $DB->fetch_row() ) {
$title = strip_tags($row['title']);
$title = str_replace( "!" , "!" ,$title );
$title = str_replace( """, "\"", $title );
if (strlen($title) > $cutoff) {
$title = substr( $title,0,($cutoff - 3) ) . "...";
$title = preg_replace( '/&(#(\d+;?)?)?(\.\.\.)?$/', '...',$title );
}
$id = $row['id'];
$id_orig_name = $row['idauth'];
$name = $row['author'];
$cdate = $this->create_date($row['date'], $dateformat);
$content .= "
<tr>
<td width=\"100%\" class=\"tdblock\">
<b><img src=\"http://i59.servimg.com/u/f59/12/29/59/06/ok10.gif\">
<b><a class=\"uno\" href=\"$this->siteurl/index.php?ind=reviews&op=entry_view&iden={$row['id']}\">$title</a></b>
</td></tr><tr>
<td class=\"tdglobal\" style=\"padding-bottom: 5px;\">
</td>
</tr>
";
}
if(!$id) {
$content = "
<tr>
<td class=\"tdblock\" align=\"center\">
No Reviews
</td>
</tr>
";
}
if(!$mkportals->member['g_access_cp'] && !$this->member['g_access_reviews']) {
$content = "
<tr>
<td class=\"tdblock\" align=\"center\">
Bu kategoriyi görme yetkiniz yok lütfen üye olun !
</td>
</tr>
";
}
unset($row);
unset($link_user);
unset($id_orig_name);
unset($title);
unset($name);
unset($cdate);
unset($dateformat);
?>