By John Leake on Friday, 15 August 2014
Posted in General Issues
Replies 5
Likes 0
Views 679
Votes 0
Is there a way to set the amount of characters that are shown in comments before the "more" button? It only shows about one line of text before the more button shows up which causes you to have to press "more" for almost every comment. I looked around but didn't find any setting for this.
Hello John,

I am very sorry about this. Currently, EasySocial doesn't have setting to set the limit of comment to be displayed. I am sorry for the inconvenience caused. However, you can customize this file in order to set it: \administrator\components\com_easysocial\tables\comments.php Line: 286 and 300. Look for this block of code:

// Determine if read more is needed.
$readmore = JString::strlen($comment) > 150; // change it here

// 1.2.17 Update
// We truncate to get a short preview content but in actual, we prepare 2 copies of data here.
// Instead of separating the comments into Shorten and Balance, we do Shorten and Full instead.
// Shorten contains first 150 character in raw.
// Full contains the full comment, untruncated and processed.
// The display part switches the shorten into the full content with JS.
// Preview doesn't need to be processed.

// If there's a read more, then we prepare a short preview content
$preview = '';

if ($readmore) {
$preview = JString::substr($comment, 0, 150); // change it here as well
}

If you encounter issue in customizing this, perhaps you can provide us backend access and ftp access so that we can help you put this customization in your site. If you have anymore question, please don't hesitate to ask us.

Hope this will help.
Thanks.
·
Friday, 15 August 2014 12:16
·
0 Likes
·
0 Votes
·
0 Comments
·
I've had a client complaint about this as well. Would like to see this added to administrator settings so we don't need to tweak code.

Thanks,

Dave
·
Tuesday, 23 September 2014 03:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this Dave
·
Tuesday, 23 September 2014 12:19
·
0 Likes
·
0 Votes
·
0 Comments
·
+1 for adding this option in the Settings menu.
·
Friday, 27 February 2015 23:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this.
·
Saturday, 28 February 2015 01:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post