$commentsdb = $file->getComments();
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);
$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>';
}
不过听说1.6版要内建评论系统了?
但是和remository组件集成遇到了一些问题,依照 官方的修改方法 行不通