Results 1 to 3 of 3

Thread: Adding "Added On" code gives wrong date

  1. #1
    Join Date
    Oct 2007
    Posts
    126

    Default Adding "Added On" code gives wrong date

    I added the code {$view.video_info.video_add_date|date_format}
    to my view_video.tpl page in the Related Videos side section, hoping to add a line that states when the video was uploaded.

    However it just adds a date for all the videos which is the same as the date of the video being played.

    What line should I put in so that the code makes a call to the database instead of using existing data from memory?

    <div class="moduleFrameDetails">
    Time: {$view.related_videos[i].video_length}<br />
    Views: {$view.related_videos[i].video_view_number}<br />
    Added: {$view.video_info.video_add_date|date_format}
    </div>

    Tks. Dave
    Last edited by jayscot; 07-24-2010 at 04:14 PM.
    CasselmanCanada.com (free access)


  2. #2
    Join Date
    Dec 2009
    Posts
    71

    Default

    you have to replace

    Code:
    Added: {$view.video_info.video_add_date|date_format}
    with

    Code:
    Added: {$view.related_videos[i].video_add_date|date_format}
    Thanks

  3. #3
    Join Date
    Oct 2007
    Posts
    126

    Default view added date

    That makes sense. It works perfectly. Thanks.

    dave
    CasselmanCanada.com (free access)


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
  •