السلام عليكم ورحمة الله
لعيون سوالف وزوارها اقدم هذا البلوك الذي بحثت عنه وبحث عنه الكثير فقط كل ما عليك تعديل رقم قسم المجلة في المتغير :
ورقم القسم هنا هو 3
[/PHP] where secid=3
وعدد المواضيع هنا هو 8
DESC limit 0,8"
[PHP]
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Blok Sub Artikel Khusus */
/* Dimodifikasi oleh Indonuke */
/* http://indonuke.cjb.net */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/* */
/* Change the file name (block-sub_artikel) */
/* to the new category you have create in Section Articles (block-xxxxx)*/
/* */
/* Gantilah nama file (block-sub_artikel dengan kategori */
/* baru yang telah anda buat di Section Articles (block-xxxxx) */
/************************************************************************/
if (eregi("block-Sections_Articles.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $dbi;
$result = sql_query("SELECT artid, title FROM ".$prefix."_seccont where secid=3 order by artid DESC limit 0,8", $dbi);
while(list($artid, $title) = sql_fetch_row($result, $dbi)) {
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=Sections&op=viewarticle&artid=$artid\">$title</a><br>";
}
?>
شيئ واحد فقط اتمناه دعواااتكم الطيبة والخالصة
وشكرا لكم