+ Reply to Thread
Results 1 to 8 of 8

Thread: Sort after date ?

  1. #1

    Sort after date ?

    Why arent there a Sort by date ?

    If you click on any of the sort button theb its impossible to go back to its normal state that are after date, newest first.

    Can you give us any code to have a sort by date button?

  2. #2
    Flynax developer
    Join Date
    Jun 2010
    Posts
    238
    Hello,

    You can try resolve this problem the following way:

    - open file includes/controllers/listing_type.inc.php
    - find following code (~lines 124 and 317):

    PHP Code:
    Only registered members can view the code
    and before it to add this code:

    PHP Code:
    Only registered members can view the code
    Last edited by Vladimir; August 27, 2012 at 06:29 AM.

  3. #3
    So, what will this do ?

    After i added it nothing happened, i didnt get a sort by date "button"

  4. #4
    Flynax developer
    Join Date
    Jun 2010
    Posts
    238
    I am sorry, you should add line before this code:

    PHP Code:
    Only registered members can view the code
    We've fixed it on your site.

  5. #5

  6. #6
    Quote Originally Posted by Vladimir View Post
    I am sorry, you should add line before this code:

    PHP Code:
    Only registered members can view the code
    We've fixed it on your site.
    hello. i have added the new line before the code you mentioned and nothing is happening
    $sorting['Date'] = array('Key' => "Date", 'Type' => "date", 'name' => $GLOBALS['lang']['date'], 'Default' => '', 'Condition' => '');
    $rlSmarty -> assign_by_ref( 'sorting', $sorting );
    what should we do in adition? thanks

  7. #7
    Quote Originally Posted by Petrache Nicolae View Post
    hello. i have added the new line before the code you mentioned and nothing is happening


    what should we do in adition? thanks
    In vladamir's first post it says find following code (~lines 124 and 317):

    Looks like its in 2 positions have you done both? Just thought i would ask, you may have done this already

  8. #8
    thanks for this. missed the second line. works fine now
    Last edited by Petrache Nicolae; October 7, 2012 at 05:33 PM.

+ Reply to Thread