PDA

View Full Version : "ago" without time/date and sources


pepped
01-04-2006, 09:19 AM
I think these have been brought up before but I couldn't find solutions:

New headlines pulled in via cron show up with just "ago" below them, without the number of hours/days/etc. After a number of hours this problem goes away until the next set of headlines are pulled in.

Also, how do we active the source attribution as per the demo? So we get:

Bush going to Pentagon for Iraq strategy session
Topix - Top Stories | 11 minutes ago

Rather than:

Bush going to Pentagon for Iraq strategy session
11 minutes ago

Or even:

Bush going to Pentagon for Iraq strategy session
ago

Great script, mind!

viapodcast
01-11-2006, 09:44 PM
You can modify the link.tpl file where it calls this.

{/if}{$link.PUBLISHED_DATE}</span>
After the {/if} you can enter what you want to display before the published date. For example:

{/if}Published Date: {$link.PUBLISHED_DATE}</span>

pepped
01-11-2006, 09:51 PM
Thanks for that, much appreciated. Any idea how the category name could be included as in the demo?

Anyone cracked the missing hours problem?

viapodcast
01-13-2006, 08:03 PM
This tag will display the current category:
{$smarty.capture.title|strip}

pepped
01-14-2006, 11:32 AM
Great stuff - and what tag should we use for the source?