By ahmd hoshan on Friday, 07 December 2018
Posted in General
Likes 0
Views 470
Votes 0
Is there a way to sort the posts in Recent Posts section by last creation date (not by last replay date)
Hey there,

In order to do that, you can set the 'Sorting' to 'Latest' which is at your EasyDiscuss 'Frontpage Layout' Menu Item as shown in the screenshot.

Can you have a try and see how it goes?

By the way, can you include your site's access and FTP's access once at http://stackideas.com/dashboard/site so that we can have a better check and troubleshoot it for you in the future?

Thanks for your understanding.
·
Friday, 07 December 2018 11:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for your replay,

I tried to edit the menu item but i get this error:

An error has occurred.
0 Cannot use object of type stdClass as array


My site login info now in my profile

Thank you
·
Friday, 07 December 2018 17:24
·
0 Likes
·
0 Votes
·
0 Comments
·
The error was solved by delete some plugin, but i still can't sort the Recent questions list by creation date
·
Friday, 07 December 2018 17:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

but i still can't sort the Recent questions list by creation date


We can replicate it on your site.

Can you turn off your site cache from your server and see how it goes?

Also, so that we can have a better check of it.
·
Friday, 07 December 2018 18:42
·
0 Likes
·
0 Votes
·
0 Comments
·
I will contact with the host support about that
·
Friday, 07 December 2018 23:08
·
0 Likes
·
0 Votes
·
0 Comments
·
That is the support replay:

Hi,

Please refer https://docs.joomla.org/Help39:Site_Maintenance_Clear_Cache to clear cache through Joomla dashboard. There's no other cache enabled in your account. If you are facing any issues with the script, let us know exact steps to reproduce the issue from our end.
·
Saturday, 08 December 2018 02:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

After checking the code, the default behavior for 'lastest' sorting is based on the latest update of the discussions.

If you really want the 'lastest' sorting to based on the latest creation date of the discussions, you need to modify the posts.php file which is at JoomlaFolder/administrator/components/com_easydiscuss/models/posts.php.

In line 951 of posts.php file that I mentioned, you need to replace the following code:

default:
$orderby = " ORDER BY " . $featuredOrdering . "a.`replied` DESC"; //used in getsticky and get created date
break;


with the following code:

default:
$orderby = " ORDER BY " . $featuredOrdering . "a.`created` DESC"; //used in getsticky and get created date
break;


Take note that you need to back up this modified file so that you can replace it back after you update it to the next version of EasyDiscuss.

Can you have a try and see how it goes?
·
Monday, 10 December 2018 10:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Worked for me

Thank you very much
·
Monday, 10 December 2018 17:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Monday, 10 December 2018 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post