Ohhhh worked great, you're an absolute doll. Thanks!!!!
Another one I discovered to use this on is user_videos.tpl
I used Dreamweaver's "find" for the syntax and changed instances of it that it found, which were mostly in files with the word "video" as part of the name.
add_video.tpl
fvideos.tpl
gvideos.tpl
my_video.tpl
user_videos.tpl
video.tpl
view_video.tpl
search.tlp
There's one other instance of the runtime showing up funny and that is in the view_video.tpl where it says:
which is inside the "video details" box. I'm not sure how to change that to get it to show the minutes/seconds...I'll try using the same code above and see what happens...will let you know!Code:Runtime: {$vinfo[0].duration|string_format:"%.2f"}
Yeah, it worked.... just change that with this (note: I use a colon in place of the m - s thingie):
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}:{$seconds}




Reply With Quote
Bookmarks