Go!
 
 
How can I allow users to comment on docman

Open /components/com_docman/docman.php

Find:

require_once($_DOCMAN->getPath('includes_f', 'documents'));
showDocumentDetails($gid);
break;

Replace with:

require_once($_DOCMAN->getPath('includes_f', 'documents'));
showDocumentDetails($gid);

define('EC_LITE', true);
global $mainframe;
require_once($mainframe->getPath('class', 'com_easycomment'));
$xajax->registerFunction(array("showComments", "items", "showComments"), XAJAX_POST);

echo $xajax->getJavascript($mainframe->getCfg('live_site') . '/components/com_easycomment/xajax');

echo '<div id="comments"></div>' . "\n";
echo '<script type="text/javascript">' . "\n";
echo '<!--' . "\n";
echo 'ec_showComments(' . $gid . ', \'
docman\');' . "\n";
echo '//-->' . "\n";
echo '</script>' . "\n";

echo '' . "\n";
break;

That will give you a comment entry on the document details page.
Tags
75,00% of 4 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful
< Prev   Next >

Powered by EasyFAQ © 2006 Joomla-addons.org
Would you like to receive updates of new releases or other news? Enter your details below:
Joomla-addons.org © 2006 | www.bandhosting.nl | JCD-A Member | Newsletter | Sitemap |