CComment docs

JDownloads - com_jdownloads (Pro feature)

This integration is tested with JDownloads 1.9.2

First go to CComment -> settings -> create a new plugin for com_jdownloads.

Now go to JDownloads -> Layouts Administration ->Files-> edit the template that you use and add a{ccomment}tag to it. After that edit theDownloads-DetailsLayout and add the{ccomment}tag .

Now you'll need to make modifications tocomponents/com_jdownloads/jdownloads.html.php

First around line 700 you can find the following code:

if ($jlistConfig['view.sum.jcomments'] && $jlistConfig['jcomments.active']){

Right before that line add the following code:

if(file_exists(JPATH_ADMINISTRATOR . '/components/com_comment/plugins/com_jdownloads/jdownloads.php')) {
    JLoader::discover('ccommentHelper', JPATH_ROOT . '/components/com_comment/helpers');
    $readmore = ccommentHelperUtils::commentInit('com_jdownloads', $files[$i]);
    $html_file = str_replace('{ccomment}', $readmore, $html_file);
}

Now in the frontend in the category view you should see a "write comment" button.

To show the comment form in the download view you'll need to go to around line 1730 and find the following code:

if ($jlistConfig['jcomments.active']){

Right before that line add the following code:

if(file_exists(JPATH_ADMINISTRATOR . '/components/com_comment/plugins/com_jdownloads/jdownloads.php')) {
    JLoader::discover('ccommentHelper', JPATH_ROOT . '/components/com_comment/helpers');
    $readmore = ccommentHelperUtils::commentInit('com_jdownloads', $file);
    $html_file = str_replace('{ccomment}', $readmore, $html_file);
}

Now in download view you should see the comment form and you should be able to comment.