Results 1 to 10 of 17

Thread: Display age of listing

Threaded View

  1. #7
    Quote Originally Posted by Samuel Nduati View Post
    Ameer, how did you call the listing date in the .tpl file using the Smarty relative date?

    Hi Samuel Nduati,

    I make it work now for 2 language English and Arabic
    >>> http://goo.gl/jpTD79 <<<


    Here Are The Steps:-

    1.Go To ----> public_html/libs/smarty/plugins
    And Create file called >>modifier.timeAgo.php<< "note: you can create another one for other language as i did >>modifier.timeAgo-ar.php <<

    Then edit file and paste this code inside it :-
    Code:
    Only registered members can view the code.
    2.Now go to Use This to call the listing date in tpl file --> to Get Full Time use this
    Code:
    Only registered members can view the code.
    And if you want just Time Ago from posting ad use this only:-
    Code:
    Only registered members can view the code.
    3.This one used in listing detail block for category listing block or listing.tpl just use this:
    Code:
    Only registered members can view the code.
    Hope everyone be happy

    My Regards
    Ameer
    Last edited by Ameer Hassan; May 31, 2016 at 12:25 PM.