Так, посмотрел я версию 1.23, по сути ничего принципиально не поменялось. Описываю кратко шаги (ибо детально смысла не вижу).
1. Находим код (он встречается в файле /com_datsogallery/datso.functions.php и внутри файлов в папке /com_datsogallery/includes/):
$db->setQuery('SELECT COUNT(cmtid) FROM #__datsogallery_comments WHERE cmtpic = '.$row->id.' AND published = 1');
$comments = $db->loadResult();или
$db->setQuery('SELECT COUNT(cmtid) FROM #__datsogallery_comments WHERE cmtpic = '.$row->id.$and);
$comments = $db->loadResult();и заменяем его на:
$commentsAPI = JPATH_SITE . '/components/com_jcomments/jcomments.php';
if (file_exists($commentsAPI)) {
require_once($commentsAPI);
$comments = JComments::getCommentsCount($row->id, 'com_datsogallery');
}
2. Открыть файл /com_datsogallery/includes/datso.image.php и все, что между строчками:
if ($ad_showcomment) {и
}
if ($ad_showsend2friend && ($ad_showsend2friend_public || $user->id)) {
заменяем на:
$commentsAPI = JPATH_SITE . '/components/com_jcomments/jcomments.php';
if (file_exists($commentsAPI)) {
require_once($commentsAPI);
echo JComments::show($obj->id, 'com_datsogallery', $obj->imgtitle);
}