JComments

Integration of JComments to Remository file archive

Remository — is a popular file archive component for Joomla. The offered to your attention integration is inteneded to replace the built-in comment system by JComments.

  1. Open file /components/com_remository/v-classes/remositoryFileInfoHTML.php
  2. Find there the line:
      $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);
    and replace them with following:
      global $mosConfig_absolute_path;
      $comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
      if (file_exists($comments)) {
        require_once($comments);
        echo '<div style="clear: both;">';
        echo JComments::showComments($file->id, 'com_remository', $file->filetitle);
        echo '</div>';
      }

See also:

 
JoomlaTune