Results 1 to 2 of 2

Thread: Runtime in s Fix to MM:SS

  1. #1
    Join Date
    Dec 2007
    Posts
    3

    Default 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}

  2. #2
    Join Date
    May 2007
    Posts
    686

    Default 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.

Similar Threads

  1. Feature Request: Show runtime in Minutes:Seconds
    By grynmoors in forum Feature Requests
    Replies: 1
    Last Post: 07-07-2007, 09:40 AM
  2. Runtime - in Minutes/Seconds?
    By satori in forum Template Modifications
    Replies: 22
    Last Post: 07-06-2007, 11:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •