61
so im was thinking a couple of days ago. so here what i was thinking.. .. dude the text for the categories should be links..
file:blocks/xmspotlight_block_news.php
foreach($storyarray2 as $article2)
{
if(!in_array($article2->storyid(),$txt)){
$news2['newstitle'] = "<a href="".XOOPS_URL."/modules/news/article.php?storyid=".$article2->storyid()."">".$article2->title()."</a>";
$news2['storyid'] = $article2->storyid();
$news2['posttime'] = formatTimestamp($article2->published(),$xmspotdateformat);
$xt = new XoopsTopic($xoopsDB->prefix('topics'), $article2->topicid());
$block['image1'] = $xt->topic_imgurl("S");
$block['imgpath1'] = XOOPS_URL."/modules/news/images/topics/";
//$block['category1'] = $xt->topic_title();
[color=CC0000]$block['category1']= "<a href='".XOOPS_URL."/modules/news/index.php?storytopic=".$xt->topic_id()."'>".$xt->topic_title()."</a>";[/color]
$block['stories2'][] = $news2;
}
}
i added what is in red. and i commented what was in there before so you can see.
for category2 you would use.,. and so on.
[color=CC0000]$block['category2']= "<a href='".XOOPS_URL."/modules/news/index.php?storytopic=".$xt->topic_id()."'>".$xt->topic_title()."</a>";[/color]
so what does it do.. just makes the category text link to that categories news. (im not sure on how to explain it, im not good at explaining stuff)
and some unrelated stuff-- today i finally noticed that i spelled SMD wrong. . month or so later.. lol
CBB / LatestNews / Publisher / XM-Spotlight
(ノ◕ヮ◕)ノ*:・゚✧