Results 1 to 5 of 5

Thread: HELP! Need date format in 2.7 like in 2.6 "added 10 days ago" and so on...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default

    I find out in tag pages is still used the "old format"... i vant to use also in most recent page...

    so from tag.tpl i copied the code in video.tpl

    this code:
    Code:
    {insert name=time_range assign=rtime field=video_add_time IDFR=video_id id=$video_info[i].video_id tbl=videos}
                     Added: {$rtime}
    NOT WORK, show something but instead to show "2days ago" show "14482 days ago"...

    anybody can help me to adapt this code for video.tpl?

    thank you.

  2. #2

    Default

    Nobody can help, please? :(

  3. #3

    Default

    use the following code

    {insert name=time_range assign=rtime field=video_add_time IDFR=video_id id=$view.videos[i].video_id tbl=videos}
    this video was uploaded:{$rtime}

  4. #4

    Default

    Quote Originally Posted by buyscripts View Post
    use the following code

    {insert name=time_range assign=rtime field=video_add_time IDFR=video_id id=$view.videos[i].video_id tbl=videos}
    this video was uploaded:{$rtime}
    Hello, sorry for late reply.

    Seems to work fine your code, thank you very much!!!!

Tags for this Thread

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
  •