2
To add one more category, edit file xmspotlight_block_news.php
Add this line before code
return $block;*Red color: your topic id
$news6 = array();
$storyarray6 = NewsStory::getByTopic([b][color=ff0000]10[/color][/b],3);
$news6 = '';
foreach($storyarray6 as $article6)
{
if(!in_array($article6->storyid(),$txt)){
$news6['newstitle'] = $article6->title();
$news6['storyid'] = $article6->storyid();
$xt = new XoopsTopic($xoopsDB->prefix('topics'), $article5->topicid());
$block['image6'] = $xt->topic_imgurl("S");
$block['imgpath6'] = XOOPS_URL."/modules/news/images/topics/";
$block['category6'] = $xt->topic_title();
$block['stories6'][] = $news6;
}
}
Edit Template. Add this code...
<{foreach item=news6 from=$block.stories6}><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news6.storyid}>"><{$news6.newstitle}>a><br><br><{/foreach}>
In the next release i will add this feature where you can more topic...
-SMD-