The changes I made in version: 2.1 Release: 20070530
as follows. I suggest you BACKUP YOUR FILES. The easiest way is to rename your current file right on the server before you upload your hacked file.
ie: view-video.orig.tpl
view-video.tpl
Code:
{assign var=viddur value=$vinfo[0].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
I added the hyphen between minutes/seconds also, whatever ........
REF: http://www.tubebucket.com/
index.tpl
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
There are two changes in channel-detail.tpl
Look for:
Code:
Runtime: {$recadd[j].duration|string_format:"%.2f"}
Replace with:
Code:
{assign var=viddur value=$recadd[j].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
Look for:
Code:
Runtime: {$mostview[k].duration|string_format:"%.2f"}
Replace with:
Code:
{assign var=viddur value=$mostview[k].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