@TopCop
This will show comments on the file details page in DOCman.
Tested with
Joomla 1.5.18 and the
default theme of DOCman 1.5.7.
1. Modify
document.tpl.php in
YOUR_SITE/components/com_docman/themes/default/templates/documents.
Add following code at the end of the file:
<?php
global $mainframe;
$comments = $mainframe->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
if (file_exists($comments))
{
require_once ($comments);
echo JComments::showComments($this->data->id, 'com_docman', $this->data->dmname);
}
else {return;}
?>
2. If you want to get rid of the lightbox (when you hit "Details") and show your comments on "regular" page, then you have to modify
standardbuttons.php located in
YOUR_SITE/plugins/docman.
Find following code:
if($botParams->get('details', 1)) {
$params = new DMmosParameters('popup=1');
$buttons['details'] = new DOCMAN_Button('details', _DML_BUTTON_DETAILS, $doc->_formatLink('doc_details', array('tmpl'=>'component')), $params);
}
and replace it with:
if($botParams->get('details', 1)) {
//$params = new DMmosParameters('popup=1');
$buttons['details'] = new DOCMAN_Button('details', _DML_BUTTON_DETAILS, $doc->_formatLink('doc_details', array('tmpl'=>'component')), $params);
}
3. In order to show your default language labels, you have to modify the language file of DOCman (
YOUR_SITE/components/com_docman/themes/default/language). Place alle necessary labels at the end of the file.