>>469
<{php}>
global $xoopsDB;
$myts =& MyTextSanitizer::getInstance();
$sql = "SELECT storyid, title, published, expired, counter FROM ".$xoopsDB->prefix("stories")." WHERE published < ".time()." AND published > 0 AND (expired = 0 OR expired > ".time().") ORDER BY published DESC";
$result = $xoopsDB->query($sql,5,0);
while ( $myrow = $xoopsDB->fetchArray($result) ) {
$title = $myts->makeTboxData4Show($myrow["title"]);
echo '<a href="'.XOOPS_URL.'/modules/news/article.php?storyid='.$myrow['storyid'].'">'.$title.'</a><br />';
}
<{/php}>
をnews_article.htmlっていうテンプレートの好きなところに貼り付ける。
なお、動作は確認していないから保証はないよ。
テンプレートの使い方解らんときは公式で調べる。