1. Открываем файл /components/com_phocagallery/views/category/tmpl/default_comments.php и заменяем все его содержимое на следующий код:
<?php
defined('_JEXEC') or die('Restricted access');
$comments = JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php';
if (is_file($comments)) {
require_once($comments);
echo JComments::showComments($this->category->id, 'com_phocagallery', $this->category->title);
}
?>
2. Из файла components\com_phocagallery\views\category\view.html.php удаляем вот такой блок кода:
// COMMENTS
if ((int)$tmpl['displaycomment'] == 1) {
$document->addScript(JURI::base(true).'/components/com_phocagallery/assets/js/comments.js');
$document->addCustomTag(PhocaGalleryHelperRender::renderCommentJS((int)$tmpl['maxcommentchar']));
$tmpl['alreadycommented'] = $model->checkUserComment( (int)$id, (int)$user->id );
$commentItem = $model->displayComment( (int)$id );
$this->assignRef( 'commentitem', $commentItem);
}
Открываем /components/com_PhocaGallery/assets/PhocaGallery.css
Добовляем еще один ID
#comments{
width:auto;
margin-left: 3px;
padding: 4px 10px;
}
Эврика
Короче
Лезем сюда:
\components\com_phocagallery\views\category\tmpl\default.php
Здесь код нужен стр 420
if ((int)$this->tmpl['displaycomment'] == 1) {
echo $pane->startPanel( JHTML::_( 'image.site', 'components/com_phocagallery/assets/images/icon-comment.'.$this->tmpl['formaticon'],'', '', '', '', ''). ' '.JText::_('Comments'), 'comments' );
echo $this->loadTemplate('comments');
echo $pane->endPanel();
Меняем "comments" на "phoca-comments"
if ((int)$this->tmpl['displaycomment'] == 1) {
echo $pane->startPanel( JHTML::_( 'image.site', 'components/com_phocagallery/assets/images/icon-comment.'.$this->tmpl['formaticon'],'', '', '', '', ''). ' '.JText::_('Comments'), 'phoca-comments' );
echo $this->loadTemplate('comments');
echo $pane->endPanel();
P.S. Слава Google и мне любимому!
Забыл чтобы не было ошибок в статистике в файле default_statistics.php надо удалить две строки...)))
components/com_phocagallery/views/category/tmpl/default_statistics.php on line 37
if ($this->tmpl['displayicondetail'] == 1 || $this->tmpl['displayicondownload'] == 1 || $this->tmpl['displayiconfolder == 1'] || $this->tmpl['displayiconvm'] == 1 || $this->tmpl['startpiclens'] == 1 || $this->tmpl['trash'] == 1 || $this->tmpl['publishunpublish'] == 1 || $this->tmpl['displayicongeo']) {
$imageHeight['boxsize'] = $imageHeight['boxsize'] + 20;
}
components/com_phocagallery/views/category/tmpl/default_statistics.php on line 151
if ($this->tmpl['displayicondetail'] == 1 || $this->tmpl['displayicondownload'] == 1 || $this->tmpl['displayiconfolder == 1'] || $this->tmpl['displayiconvm'] == 1 || $this->tmpl['startpiclens'] == 1 || $this->tmpl['trash'] == 1 || $this->tmpl['publishunpublish'] == 1 || $this->tmpl['displayicongeo']) {
$imageHeight['boxsize'] = $imageHeight['boxsize'] + 20;
}
Всё статистика пашет...)))