
Originally Posted by
grynmoors
Thank you for this hack, works great...but still need to know how to get it to show Minutes:Seconds on the "WATCH" link (which takes you to URL:
http://yourdomain.com/recent).
Anyone?
Go to video.tpl - there are two occurances, one for "Detailed View" and one for "Basic View".
Replace both.:)
Look for:
Code:
Runtime: {$answers[i].duration|string_format:"%.2f"}
Replace with:
Code:
{assign var=viddur value=$answers[i].duration}
{math equation="$viddur/60" format="%0.0f" assign=minutes}
{math equation="$viddur - ($minutes * 60)" format="%0.0f" assign=seconds}
{if $seconds < 0}
{math equation="$minutes - 1" assign=minutes}
{math equation="$seconds + 60" assign=seconds}
{/if}
Runtime: {$minutes}m - {$seconds}s
Regards, HE
Bookmarks