Runtime in s Fix to MM:SS
Runtime in s Fix to MM:SS
edit all *.tpl
{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}
{$minutes}:{$seconds}
Re: Runtime in s Fix to MM:SS
This has been discussed before and it isnt just that code to do,there was a few variants to change. If you look through the forums you will see the changes.