Enabling comments on Downloads with JComments

 

Comments may be added to a download by using the JComments component

to give something like that illustrated opposite.

Note that the 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 {sum_jcomments} placeholder in the relevant Files layout

Most of the setup work is in the JComments component.

Note that Comments only appear on the Download Detais view. However the number of comments may be shown in the Files view as described in the Configure jDownloads section below.

jComments01A

Installation

The first step is to install the jComments Component

After this has been done then download the required plugin ito integrate with jComments from

http://www.jdownloads.com/index.php/downloads/download/5-special-extensions/3-jcomments-plugin-for-jdownloads.html

This is a file called "com_jdownloads.plugin.zip". So 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 ftp, 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 ther present one.  The one from jD is specific to the v3.2 series

Configure jDownloads

  The jDownloads part in setting this up in is simple, just enable support for JComments in Configuration - Front End (its is at the end of the Front End settings)

jComments02

You may also wish to show the number of comments in each Download.  This is done by saying Yes to View number of comments? in the jD config and then including the {sum_jcomments} placeholder in the relevant Files layout.

Note that the default Files layout that the Content plugin uses is specified in Config - Plugin tab or by using {jd_file onlinelayout==layout name} in the article.  That is in general it is not the Activated one in the Layouts -Files Layout section. Please see the section http://www.jdownloads.net/documentations/category/editing-layouts if you are unsure about editing layouts.

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 bare minimumum is used.

First go to Settings - General tab in JComments 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 for each User Group who is to be allowed to add comments

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.

The picture immediately below shows the message as users will see it.

If a user clicks on the link they will be taken to the Download Details as illustrated in the other  picture.

jComments and jD content01
jComments and jD content02   jComments and jD content03
Making JComments Responsive

As at JComments 3.0.5 the comments were not responsive to screen size.

Additional CSS code has been added to jdownloads_fe.css in jDownloads 3.2 v44 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;
}

jCommentsResponsive 03

ColinM Nov 2014, revised Oct 2015 and May 2016

  • Sunday, 02 November 2014