Enabling comments on Downloads with JComments

Comments may be added to a Download by using the free JComments component to give something like that illustrated opposite.

Note: Comments only appear in the Download Details view.

However you can also setup to show the number of comments in each Download by including the placeholder {sum_jcomments} in the active Files layout.

Most of the setup work is in the JComments component.

The number of comments may be shown in the Downloads view as described in the Configure jDownloads section below.

jComments01A
 
Configure jDownloads
The jDownloads part in setting up to use JComments is straightforward.  First enable support for JComments in Options - Front End  (it is at the last entry in Options - Frontend tab).
You may also wish to show the number of comments in each Download.  When you say 'Yes' to item 'Support JComments' it will show the second item 'View number of comments'.  Setting this to 'Yes' and then including the  placeholder {sum_jcomments}  in the active Files layout will show the number of comments. 

Because comments are only shown in the Download Details view then, as illustrated opposite, it is essential that you also set Options - Frontend  items:

          'Activate direct downloading' to 'No'
          'View Download Details page to 'Yes'
    'Use Download title as download link' to 'Yes'
jComments05 jComments22
 For more details on editing Layouts please see [NEEDS REF].
 
Upgrading from jDownloads 3.2 to jDownloads 3.9
It is assumed that you have been using JComments satisfactorily.  The current version of JComments should be 3.0.7.  If it is an earlier version then upgrade to 3.0.7.

The only action required is to replace the present version of com_jdownloads.plugin.php by downloading it with the 3.9 version of the plugin as described below in the Get Plugin section below   There will of course be an existing version of com_jdownloads.plugin.php so overwrite.  JComments will have retained all of the previous comments.

Also check out the jDownloads settings as above as the location of some settings have been changed.

If you do not replace com_jdownloads.plugin.php then you will get an HTML 404 Page Not Found Error. 
The error report might show upgrade26 somewhere in the report, usually near the bottom.

Installation of JComments
The next step is to install the jComments Component, which is available at http://www.joomlatune.com/jcomments-downloads.html
Installation is just as usual in Joomla!
Get 3.9 'Plugin'
After this has been done then download the required plugin which integrates with jComments from the jDownloads Specials for jDownloads 3.9 series - (opens in a new tab/window)  Make sure you use the one for jDownloads 3.9 series and NOT the one for the jDownloads 3.2 series.
[NEEDS REF]

This is a file called "com_jdownloads.plugin.zip".  So down load and extract the contents - I use the free 7zip.exe app from www.7-zip.org
There is only one file in the zip which is called com_jdownloads.plugin.php

The next step is to copy the file com_jdownloads.plugin.php to <yoursite>/components/com_jcomments/plugins using an ftp utility such as File Zilla, your site control panel or a Joomla files manager extension.

Note: there is probably a file with that name already at that location so overwrite it with the present one downloaded from jDownloads.  The one from jD is specific to the jDownloads v3.9 series - there is also one for the jDownloads 3.2 series so be careful which one you select.
Return to List
Configure JComments
The rest of the setup is carried out in the JComments Component.
There are many customising options available in JComments which you may explore depending on how you want the Comments to appear, so consult the JComments documentation as appropriate.  Here just the basic minimum is used.In JComments first go to Settings - General  tab and select All Categories as shown opposite. jComments03
The only other aspect that is essential is to choose which user groups will be allowed to add comments. 

For this use the JComments  Settings - Permissions tab. 

Again there are multiple options available but the critical ones are those in the New Comments section.

You need to set these up for each user group you intend to allow comments.

That's it, all done!

It is of course useful to 'experiment' a little with the jComments settings to get the style you want.  Remember you need to set up each User Group that is to be allowed to add comments.
Return to List
jComments04
Referring to a Download
If you need to refer to a Download in a  Comment then use the jDownloads Content Plugin.

The picture opposite shows two uses of the Content plugin.  One is selecting the layout, which in this  example is just the Download title as a  link.
The other one refers to the actual Download.
Note The default Download layout that the Content plugin uses is specified in Options - Plugin tab or by using  {jd_file onlinelayout==layout name} in the article.  In principle it is a different layout to the Activated one in the Layouts -Downloads settings.

jComments and jD content01A

The picture opposite shows the message as users will see it.

Please note that the Download title was modified to show in red for demo purposes.

jComments and jD content02A

If a user clicks on the link they will be taken to the Download Details as illustrated opposite

Return to List
jComments and jD content03

Making JComments Responsive
As at JComments 3.0.7 the comments were not responsive to screen size.

Additional CSS code may be added to jdownloads_custom.css in jDownloads to make JComments responsive.

The relevant css code is shown below and the results are  like the picture opposite.

/* for jcomments integration and responsive behaviour */
#jc { display: inline-block;

 width: 100%;
 }
#jc h4 {
 width: 100%;
}
#comments-form textarea {
 box-sizing:border-box;
 width: 100% !important;
}
#comments-form .grippie {
 width: auto !important;
}


Return to List
jCommentsResponsive 03C

ColinM Nov 2014, revised Oct 2015, May 2016, Updated September 2019

Print Email

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.