Where to place the code?
Open:
/public_html/components/com_docman/themes
choose you theme:
/public_html/components/com_docman/themes/default/templates
choose folder categories or documents:
/public_html/components/com_docman/themes/default/templates/categories
/public_html/components/com_docman/themes/default/templates/documents
Choose file under .../categories:
category.tpl.php
list.tpl.php
list_item.tpl.php
Choose file under .../documents:
document.tpl.php
list.tpl.php
list_item.tpl.php
Open the file, you have chosen, and at the end, paste the following code (by turminator):
<?php
global $mainframe;
$lang =& JFactory::getLanguage();
$lang->load( 'com_jcomments', JPATH_SITE, null, true );
$comments = JPATH_SITE . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo '<br />';
// echo '<div class="contentheading">'. JText::_('HEADER') .'';
echo JComments::showComments($this->data->id, 'com_docman', $this->data->dmname);
}
?>
In my case, i've decided to put the code here:
/public_html/components/com_docman/themes/default/templates
page_docbrowse.tpl.php (at the end of the file)
If you prefer, you can download the file directly in my web page, and replace it on your site:
http://heldervaldez.com/downloads/cat_view/79-joomla-15/80-template-changes.htmlIt works, but docman should work in a native comment system.
Regards,
Hélder Ferreira