JComments

How to integrate JComments into RokDownloads

RokDownloads is a file download manager. It provides management of files and folders for you to present downloads to your site visitors. It is a native Joomla! 1.5 component that does not hack the Joomla! code base and tracks its own separate tables. It works in both Windows and Unix environments and will recognize files and folders places on the file system via FTP or other method. It allows for a simple interface to manage your files and folders, publish them, and make them available to your users.

  1. Open file /components/com_rokdownloads/views/file/tmpl/default.php
  2. Add at the end of file next code:
    <?php
      global $mainframe;
      $comments = $mainframe->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
      if (file_exists($comments)) {
        require_once($comments);
        echo JComments::showComments($this->file->id, 'com_rokdownloads', $this->file->displayname);
      }
    ?>

See also:

 
JoomlaTune