+ Reply to Thread
Results 1 to 10 of 10

Thread: Publishing date and time

  1. #1

    Publishing date and time

    Hello!
    How can I show the publishing date and time in my listings. Like Today 14:15, Yesterday 14:15, 10 July 14:15. Flynax 4.4, auto wide template. Thank you /Khaled

  2. #2
    Quote Originally Posted by Khaled Chammout View Post
    Hello!
    How can I show the publishing date and time in my listings. Like Today 14:15, Yesterday 14:15, 10 July 14:15. Flynax 4.4, auto wide template. Thank you /Khaled
    Hello Khaled Chammout,

    You can use the following smarty modifier for it, for ex. on listing details page: {$listing_data.Date|date_format:$smarty.const.RL_D ATE_FORMAT}
    Thank you, Curtis.
    @Flynax Company

  3. #3
    Quote Originally Posted by Curtis View Post
    Hello Khaled Chammout,

    You can use the following smarty modifier for it, for ex. on listing details page: {$listing_data.Date|date_format:$smarty.const.RL_D ATE_FORMAT}
    Thank you Curits for fast reply.
    Can you please tell me where to put the code. for ex. in listing details page.

    Thank you
    Khaled Chammout

  4. #4
    Quote Originally Posted by Khaled Chammout View Post
    Thank you Curits for fast reply.
    Can you please tell me where to put the code. for ex. in listing details page.

    Thank you
    Khaled Chammout
    So, if you want use it in the listing details page, that you can add it anywhere in file /templates/your_template/tpl/controllers/listing_details.tpl
    Thank you, Curtis.
    @Flynax Company

  5. #5
    Quote Originally Posted by Curtis View Post
    So, if you want use it in the listing details page, that you can add it anywhere in file /templates/your_template/tpl/controllers/listing_details.tpl
    I did put the code in listing_details.tpl and it worked. But I can't figure out were to put the code to show the date on every listing in list or gallery view. Like these pictures.
    List.jpgGrind.jpg

    Thank you
    Khaled Chammout

  6. #6
    I have the same problem...works great in listing_details.tpl, but not in listing.tpl, like Khaled Chammout said. Can anyone help me? Thanks!

  7. #7
    It should work OK if you install the latest version of the software. May I have a look at your website please?

  8. #8
    I have 4.4.1 version. I can't install the latest version because i'm afraid that many things could suffer modifications and it's no time for that. When i put the code, {$listing_data.Date|date_format:$smarty.const.RL_D ATE_FORMAT} in listing_details.tpl work, but when i try same code in gallery view, like the pictures above, nothing happens. How to look at my website? Thanks!

    i finally solved it, i use this code: {$listing.Date|date_format:$smarty.const.RL_DATE_F ORMAT}. Thanks!
    Last edited by Giuseppe Mollo; May 10, 2016 at 07:53 AM. Reason: solved

  9. #9
    Senior Member
    Join Date
    Jun 2016
    Posts
    185
    how about epiration date. My listings have 7, 14 and 30 days active. How to add the date it expires below the date it was created. I need the code for expired date.

  10. #10
    Hello Fadil.

    But this code already exist. You can find it on page My Listings Below line: Added. In right side of listings.
    Viktor,
    Flynax technical department,
    Best wishes.

+ Reply to Thread