By Ian on Friday, 31 July 2015
Posted in General Issues
Likes 0
Views 1K
Votes 0
Hi

I would like my EasyDiscuss front page layout to be sorted by the topic post date, NOT by the latest reply.

For example, at the moment, if someone replies to a post, that post is then bumped up to the top of the page. I don't really want this to happen. I would rather the front page layout is kept sorted by the date on which the topic was posted.

Does this make sense?

Thanks

Ian
Hey Ian,

This is the default behaviour if the user replied on old thread, this thread will be display on the first one.

To change this behaviour you go modify this file JoomlaFolder\components\com_easydiscuss\models\posts.php


$orderby = ' ORDER BY a.`replied` DESC'; //used in getsticky and get created date
//Replace with

$orderby = ' ORDER BY a.`created` DESC'; //used in getsticky and get created date


Hope this helps.
·
Friday, 31 July 2015 10:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thanks, that works great.

I haven't heard back about my question here: http://stackideas.com/forums/my-blog-layout-link-url#reply-212466

Is someone working on this?

Cheers

Ian
·
Friday, 31 July 2015 11:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Ian,

Sorry for the delay, we might have missed your thread earlier and I do sincerely apologize for that as we're in the midst of transitioning all our ticketing support over to the forums. Still trying to get used to it
·
Friday, 31 July 2015 11:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I am trying to do this change as well but can't locate the path: JoomlaFolder\components\com_easydiscuss\models\posts.php. Has this path been changed in the latest release?

Thanks!!
·
Friday, 19 May 2017 02:25
·
0 Likes
·
0 Votes
·
0 Comments
·
In Easydiscuss 4, you have to modify on this line of code.
JoomlaFolder/administrator/components/com_easydiscuss/models/posts.php

// LINE 946
$orderby = " ORDER BY a.`replied` DESC"; //used in getsticky and get created date

// Replace with
$orderby = " ORDER BY a.`created` DESC"; //used in getsticky and get created date
·
Friday, 19 May 2017 10:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks!
·
Friday, 19 May 2017 10:43
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Friday, 19 May 2017 11:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post