47
-
i did what XMD said and the stuff below.
in xmspotlight_block_news.php
i added
if(!in_array($article2->storyid(),$txt)){
$news2['newstitle'] = "/modules/news/article.php?storyid=".$article2->storyid()."">".$article2->title()."";
$news2['storyid'] = $article2->storyid();
[color=CC0000]$news2['posttime'] = formatTimestamp($article2->published(),$dateformat);[/color]
$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();
$block['stories2'][] = $news2;
i did that for $news3 and $news4 and $news5
. for news_block_xmspotlight.html
i added
<{$news2.posttime}> or <{$news3.posttime}> or <{$news4.posttime}> or <{$news5.posttime}>
to the template.
example:
<td><img src="<{$block.imgpath1}>/<{$block.image1}>" align="left" style="margin: 8px;"><{foreach item=news2 from=$block.stories2}><li><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news2.storyid}>"><{$news2.newstitle}>a> (<{$news2.posttime}>) li><br><br><{/foreach}>td>
that should make the date display properly in the other boxes
CBB / LatestNews / Publisher / XM-Spotlight
(ノ◕ヮ◕)ノ*:・゚✧