I'm trying to integrate this component (Ccoment) for comments in jdownloads.
From his guide
https://compojoom.com/documentation/ccomment/ch03s02s16 is a very old version of jdownloads and I wanted to ask you:
Which file should I modify add their code?
Does the code match the calls of your component?
I have tested editing this file /components/com_jdownloads/views/download/tmpl/default.php
(they say to modify components / com_jdownloads / jdownloads.html.php but this file does not exist in the latest version of jdownloads)
Where do you suggest adding the code to activate comments?
Thank you
Miri
Hi.
QuoteI have tested editing this file /components/com_jdownloads/views/download/tmpl/default.php
Have you also added the placeholder {ccomment} in the activated jDownloads
Details layout ?
exactly
I have also modified the file /components/com_jdownloads/views/download/tmpl/default.php
// Option for JComments integration
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);
}
if ($jlistConfig['jcomments.active']){
$jcomments = JPATH_BASE.'/components/com_jcomments/jcomments.php';
if (file_exists($jcomments)) {
require_once($jcomments);
$obj_id = $this->item->file_id;
$obj_title = $this->item->file_title;
$body .= JComments::showComments($obj_id, 'com_jdownloads', $obj_title);
}
}
but on the user side, you see it as text instead
[gelöscht durch Administrator]
Please check whether in the jD configuration is activated in the TAB Frontend the option on the pic below.
[gelöscht durch Administrator]
yes, I activated them both, again but it does not activate. you can check yourself in this address...
https://www.web.com/download/download/5-file/37-copertina-attivita-lavorativa-mensile
Quoteyes, I activated them both,
No. Only the first option please.
Hm. It seems that this plugin not exist in the described folder:
if(file_exists(JPATH_ADMINISTRATOR . '/components/com_comment/plugins/com_jdownloads/jdownloads.php')) {
So you should contact the developer from ccomments.
Hello. It actually exists in the administrator path:
/administrator/components/com_comment/plugins/com_jdownloads/jdownloads.php
Not in my installation. Use you the Pro version?
Yes, I'm using the pro version.