migoe wrote:
Hi SMD,
thank you very much for this mod - i searching a long time for something like this. on myxoops.org i have wrote an article about this mod and translated it to german speak.
Will you add a date view for the articles in the next release or is there a quick hack for the people who want to show the published-date of an article?
migoe
I will add this feature for the next release...
For quick hack, edit your xmspotlight_block_news.php:
add red code in line 28:
$news['hometext'] = $article->hometext();
$news['storyid'] = $article->storyid();
[b][color=ff0000]
$dateformat = "d/m/Y"; // check php manual for date format
$news['posttime'] = formatTimestamp($article->published(),$dateformat);[/b][/color]
$news['newstitle'] = "<a href="".XOOPS_URL."/modules/news/article.php?storyid=".$article->storyid()."">".$article->title()."</a>";
then, add this smarty tag to your template (news_block_xmspotlight.html) to display the post time.
<{$news.posttime}>
Happy Xoopsing!
-SMD-
Put your site @http://www.xoops-topsites.com