By Elvira on Sunday, 06 July 2014
Posted in Technical Issues
Replies 8
Likes 0
Views 854
Votes 0
If I'm not mistaken I can set the number of comments that are shown on a status update. Right now the list of comments it getting pretty long and I'd like to show that 'show more' option.

I'm supposed to do that here right?
Back-end > Settings > Comments
Pagination Limit
This option gives you the option to limit the amount of comments that are shown per page.

No matter how much I enter i.e. 1-5, it still displays all comments.

Or am I looking in the wrong place?
Hi,

I've added a patch at the file /administrator/components/com_easysocial/models/comments.php after line 122:


if (!empty($options['limit'])) {
$loaded = array_slice($loaded, $options['start'], $options['limit']);
}


I've also tested it on your site and the pagination is now obeying the limit properly.
·
Monday, 07 July 2014 12:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Elvira,

Yes, that's the correct settings. If you have set it to 5, it will only display 5 comments. The rest would not be loaded unless you click on the load more.
·
Monday, 07 July 2014 01:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, well it's not working. It's showing all comments. I tested on several accounts. Any other setting that can cause this?
·
Monday, 07 July 2014 02:53
·
0 Likes
·
0 Votes
·
0 Comments
·
It is also showing all comments on my site.
·
Monday, 07 July 2014 03:15
·
0 Likes
·
0 Votes
·
0 Comments
·
That hack worked for me as well. Thank you.
Will this be included in future versions of EasySocial, or do I need to add it to my list of changes to make at each update?
·
Monday, 07 July 2014 12:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

You're welcome and yes it will be added in the next version of EasySocial (since this is a bug).
·
Monday, 07 July 2014 12:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks
·
Monday, 07 July 2014 13:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

You're welcome.
·
Monday, 07 July 2014 16:00
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post