JComments

Integration of JComments to DocMan file archive

DocMan — is a popular file archive component for Joomla. The users of DocMan and Remository (onother one file archive) dispute what component is more comfortable. Inspite of disputes no one has the comfortable comment system. Thus the offered integration will allow leave comments to all files of DocMan component.

Integration JComments DocMan 1.4.0 beta2

  1. Open file /components/com_docman/themes/default/templates/documents/document.tpl.php (for default DocMan template)
  2. Add code to the end of file:
    <?php 
      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; padding-top: 10px;"></div>';
        echo JComments::showComments($this->data->id, 'com_docman', $this->data->dmname);
            }
    ?>

Integration JComments to DocMan 1.3

  1. Open file /components/com_docman/themes/default/templates/page_docdetails.tpl.php (for default DocMan template)
  2. Find there the lines:
      <?php echo $this->html->docdetails ?>
    and insert the following code after:
    <?php 
      global $mosConfig_absolute_path;
      $comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
      if (file_exists($comments)) {
        require_once($comments);
        echo '<br />';
              echo '<div class="contentheading">'. _JCOMMENTS_HEADER .'</div>';
              echo JComments::showComments($this->gid, 'com_docman', $this->doc->data->dmname);
            }
    ?>

See also:

 
JoomlaTune