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?
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?
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):
and before it to add this code:PHP Code:
Only registered members can view the code.
PHP Code:
Only registered members can view the code.
Last edited by Vladimir; August 27, 2012 at 06:29 AM.
So, what will this do ?
After i added it nothing happened, i didnt get a sort by date "button"
I am sorry, you should add line before this code:
We've fixed it on your site.PHP Code:
Only registered members can view the code.
Nice, thanks
hello. i have added the new line before the code you mentioned and nothing is happening
what should we do in adition? thanks$sorting['Date'] = array('Key' => "Date", 'Type' => "date", 'name' => $GLOBALS['lang']['date'], 'Default' => '', 'Condition' => '');
$rlSmarty -> assign_by_ref( 'sorting', $sorting );
thanks for this. missed the second line. works fine now
Last edited by Petrache Nicolae; October 7, 2012 at 05:33 PM.