+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Display age of listing

  1. #11
    Change to
    <span> {$listing_data.Date|date_format:$smarty.const.RL_D ATE_FORMAT}</span>

    This One Works

  2. #12
    Many Thanks John

    This one Worked Perfect

    https://gist.github.com/dodyrw/4943269

    But is There any way to make it work Arabic too?

    Regards
    Ameer

  3. #13
    Quote Originally Posted by Ameer Hassan View Post
    Many Thanks John

    This one Worked Perfect

    https://gist.github.com/dodyrw/4943269

    But is There any way to make it work Arabic too?

    Regards
    Ameer

    Ameer, how did you call the listing date in the .tpl file using the Smarty relative date?

  4. #14
    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.

  5. #15
    hello Ameer Hassan

    Please how to make the date like this



    thinks
    Attached Images Attached Images

  6. #16
    now its ok

    Think you very match

  7. #17
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    This was a huge help, thank you for sharing

+ Reply to Thread