News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Question, component integration

Started by Miri, 26.01.2018 19:07:35

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Miri

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
  •  

Arno

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 ?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Miri

#2
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]
  •  

Arno

Please check whether in the jD configuration is activated in the TAB Frontend the option on the pic below.

[gelöscht durch Administrator]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Miri

#4
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
  •  

Arno

Quoteyes, I activated them both,
No. Only the first option please.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Miri

Hello. It actually exists in the administrator path:
/administrator/components/com_comment/plugins/com_jdownloads/jdownloads.php
  •  

Arno

Not in my installation. Use you the Pro version?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Miri

Yes, I'm using the pro version.
  •