Results 1 to 9 of 9

Thread: Total Guide How to add - Date to Listing tpl Block on Detail Page

Threaded View

  1. #1

    Total Guide How to add - Date to Listing tpl Block on Detail Page

    Hi Everyone,

    I Have made Time Date For 2 language English and Arabic and Want to Share with You Here



    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; June 6, 2016 at 04:15 AM.