By Gavin G on Wednesday, 02 April 2014
Posted in General Issues
Likes 0
Views 662
Votes 0
Guys, is there a setting somewhere to adjust the amount of text for comments on the stream? At the moment it's truncating the comments and it's a bit too short for my tastes, so I would like to adjust the amount of text shown before it shortens it.
If there isn't a setting can you please point me to the file I need to edit to hard code it?
Hello Gavin,

Take a look at the file /administrator/components/com_easysocial/tables/comments.php and look for the following codes,


// Determine if read more is needed.
$readmore = JString::strlen($rawComment) > 150;

// Perform string truncation. Since comments does not accept HTML codes in general, we don't need to do any code stripping.
$comment = JString::substr($rawComment, 0, 150);

// If there's a read more we know there are some balance text here.
$balance = '';

if ($readmore) {
$balance = JString::substr($rawComment, 150, JString::strlen($rawComment));
}


Replace 150, accordingly
·
Wednesday, 02 April 2014 11:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark
·
Wednesday, 02 April 2014 20:07
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Wednesday, 02 April 2014 23:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post