Hi,
In helper.php replace
by something like this
Best regards,
gbx
In helper.php replace
$query = "SELECT * FROM #__chrono_comments WHERE published='1' AND verify='1' ORDER BY datetime ASC LIMIT 0,".$params->get( 'commentscount', 5 );
by something like this
$query = "SELECT count(id) FROM #__chrono_comments WHERE published='1' AND verify='1'";
$database->setQuery( $query );
$totalComments = $database->loadResult();
$commentsCount = $params->get( 'commentscount', 5 );
$startComment = 0;
if($totalComments > $commentsCount)
$startComment = $totalComments - $commentsCount;
$query = "SELECT * FROM #__chrono_comments WHERE published='1' AND verify='1' ORDER BY datetime ASC LIMIT ".$startComment.",".$commentsCount;
Best regards,
gbx