By Fred Schonenberg on Wednesday, 09 August 2017
Posted in General Issues
Replies 11
Likes 0
Views 362
Votes 0
At the moment, a like on a post affects the timeline order.
If you like an old post, this post comes at the top and that is undesirable.

A like may not affect the order of messages.
How can we realize that?

Thanks in advance
Hey Fred,

We actually had this settings in 1.4.x but we thought that it would be best to just have it sorted by modified rather than adding a settings for this. I will review this and see if we could add this settings back into 2.1.

At the mean time, here's what you could do, edit the file /administrator/components/com_easysocial/models/stream.php and at line 33 locate the codes below,

[gist]
private $streamPaginationSort = 'modified';
[/gist]

Replace it with,

[gist]
private $streamPaginationSort = 'created';
[/gist]
·
Wednesday, 09 August 2017 21:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks a lot Mark!

People start reading posts, like a post, scrolldown and like the next post.
This way they get the order reversed because the last like is probably the oldest post.

Thanks!!!
·
Wednesday, 09 August 2017 21:37
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem Fred, I have already logged this into our internal issue tracker and I believe it would be no harm having this as a settings in the next release
·
Wednesday, 09 August 2017 21:51
·
0 Likes
·
0 Votes
·
0 Comments
·
You're right Mark.
Let the people choose themselves
·
Wednesday, 09 August 2017 21:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Fred!
·
Wednesday, 09 August 2017 21:59
·
0 Likes
·
0 Votes
·
0 Comments
·
There's just one good way to sort posts and that's last post / last reply.
So if people write a reply to a message, this message should be back on top.
Not when people like a post.

So both created and modified are second best.
·
Thursday, 10 August 2017 16:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your input Fred

Actually system will treat these like or comment on the stream item as action, when the user perform like or comment action, it will always push the stream on the top.

In Easysocial 2.1, we will probably allow admin to choose following option from backend :

Sorting Last Modified - Any stream items that was liked or commented on, will be pushed to the top
Sorting Latest First - Ordering will be based on when the stream items are created
·
Thursday, 10 August 2017 17:43
·
0 Likes
·
0 Votes
·
0 Comments
·
I know, Thanks Arlex

But both options are still second best
·
Thursday, 10 August 2017 18:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the input on this Fred, not sure if we able to only detect comments but we'll see what can be done in the future
·
Thursday, 10 August 2017 20:57
·
0 Likes
·
0 Votes
·
0 Comments
·
You guys are awesome, so I'm sure you will
·
Thursday, 10 August 2017 21:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the kind compliments Fred, appreciate it very much!
·
Thursday, 10 August 2017 22:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post