1
Ruddle
Location of $news.date
  • 2004/7/14 2:35

  • Ruddle

  • Just popping in

  • Posts: 61

  • Since: 2003/11/10


In the news_block_new.html file, located at:

/xoops/modules/news/templates/blocks

I am trying to format the date differently


    <{foreach item=news from=$block.stories}>
  • <{$news.title}> (<{$news.date}>)

  • <{/foreach}>


Where is the code that writes $news.date? I have looked everywhere for it

Any guidence would be greatly appreciated!

Rick


2
Dave_L
Re: Location of $news.date
  • 2004/7/14 2:43

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


modules/news/blocks/news_top.php

$news['date'] = formatTimestamp($myrow['published'],"s");


P.S.

modules/news/xoops_version.php is helpful for locating things like the above:

$modversion['blocks'][4]['file'] = "[color=ff0000]news_top.php[/color]";
$modversion['blocks'][4]['name'] = _MI_NEWS_BNAME5;
$modversion['blocks'][4]['description'] = "Shows recent articles";
$modversion['blocks'][4]['show_func'] = "[color=ff0000]b_news_top_show[/color]";
$modversion['blocks'][4]['edit_func'] = "b_news_top_edit";
$modversion['blocks'][4]['options'] = "published|10|25";
$modversion['blocks'][4]['template'] = '[color=ff0000]news_block_new.html[/color]';

Login

Who's Online

281 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 281


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits