Пардон. Замотался.
Итак.
Joomla 1.5.11
Remository 3.5.2.3
JComments 2.0.0.20 [05/05/2009]
ковыряю
файл тот же
/components/com_remository/v-classes/remositoryFileInfoHTML.php
находим кусок
if ($this->repository->Allow_Comments) {
$commentsdb = remositoryComment::getComments($file->id);
if ($commentsdb){
$this->tabcnt = 1;
$legend = _DOWN_COMMENTS;
foreach ($commentsdb as $comment) $this->showComment($legend, $comment);
}
else {
$legend = $this->remUser->isLogged() ? _DOWN_FIRST_COMMENT : _DOWN_FIRST_COMMENT_NL;
$this->fileOutputBox('', '<strong>'.$legend.'</strong>');
}
if ($this->remUser->isLogged()) $this->commentBox($file);
// include_once('components/com_reviews/reviews.class.php');
// include_once('components/com_reviews/reviews.html.php');
// echo HTML_reviews::listItemCommentsHTML('com_remository',$file->id);
// echo HTML_reviews::solicitCommentHTML('com_remository', $file->id, "&func=fileinfo&id=$file->id");
}меняем на
if ($this->repository->Allow_Comments) {
$comments = JPATH_ROOT . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo '<div style="clear: both;">';
error_reporting(E_ALL);
echo JComments::showComments($file->id, 'com_remository', $file->filetitle);
echo '</div>';
}
}
Включаем плагин legacy, либо идем в файл
/components/com_jcomments/plugins/com_remository.plugin.php
находим
$link = sefRelToAbs( 'index.php?option=com_remository&func=fileinfo&id=' . $id . '&Itemid=' . $_Itemid );
меняем на
if (defined('_VALID_MOS'))
{
$link = sefRelToAbs( 'index.php?option=com_remository&func=fileinfo&id=' . $id . '&Itemid=' . $_Itemid );
} else {
$link = JRoute::_( 'index.php?option=com_remository&func=fileinfo&id=' . $id . '&Itemid=' . $_Itemid );
}