+ Reply to Thread
Results 1 to 9 of 9

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

  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.

  2. #2
    Dear Ameer,

    nice to see it worked for you. I tried but point 2 and 3 is not very clear.

    Like in your point 1 we created file name modifier.timeAgo.php in public_html/libs/smarty/plugins folder and copy pasted below code.

    In point 2, which file we have to put code and exact line were to put code.

    In point 3 as well, in which file we have to do change and were to put code.

    Please mention file path and file name were we have to make change, next exact line were we have to past your code.

    thanks hope it will work for us as well.

    thanks for your help.

  3. #3
    Hi Sanjay

    ->>>About point 2 you can put code in
    public_html/templates/YourTEmplate/tpl/controllers/listing_details.tpl

    Now edit listing_details.tpl

    Find
    Code:
    Only registered members can view the code.
    and add This Code bellow it
    Code:
    Only registered members can view the code.
    To show the Date over image on listing Detail Page


    - >>>About point 3 you can put code in
    public_html/templates/YourTEmplate/tpl/blocks/listing.tpl

    Edit listing.tpl
    Find
    Code:
    Only registered members can view the code.
    and add code before it
    Code:
    Only registered members can view the code.
    To show Date for ads in category listing page.


    [And do not forget to add some custom css style to it]

    And tell me if you still can not put it won't take more than 10 min

    Regards
    Ameer

  4. #4
    Dear Ameer,

    Thanks a lot i able to put the code successfully.

    but I dont know how to write css code, My output is not showing like it is showing on your site.

    I wanted similar to as it is shown on your site. with 'Eye icon shows, watch icon date time, location icon with city name', with blue color font were to change in css file, please tell us how to do it.

    Thanks in advance.

    Regards
    SP

  5. #5
    thanks for sharing

  6. #6
    Dear kirby-nabil,

    You welcome

  7. #7
    Senior Member
    Join Date
    Jun 2016
    Posts
    185
    Can you make one where it says "expires in" where it show how much time there is left until it expires. Or just the date on when it expires.

  8. #8
    I think i could do that with feature ads

  9. #9
    Thank you for this

+ Reply to Thread