jDownloadsownloads.com


Author Topic: Question, component integration  (Read 478 times)

0 Members and 1 Guest are viewing this topic.

Offline Miri

  • Newbie
  • *
  • Posts: 15
Question, component integration
« on: 26.01.2018 19:07:35 »
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

Offline Arno

  • Administrator
  • ***
  • Posts: 12.244
    • jDownloads.com
Re: Question, component integration
« Reply #1 on: 26.01.2018 22:44:22 »
Hi.
Quote
I 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!

Offline Miri

  • Newbie
  • *
  • Posts: 15
Re: Question, component integration
« Reply #2 on: 26.01.2018 22:59:35 »
exactly
I have also modified the file /components/com_jdownloads/views/download/tmpl/default.php
Code: [Select]
       // 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
« Last Edit: 26.01.2018 23:01:32 by Miri »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.244
    • jDownloads.com
Re: Question, component integration
« Reply #3 on: 26.01.2018 23:32:40 »
Please check whether in the jD configuration is activated in the TAB Frontend the option on the pic below.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline Miri

  • Newbie
  • *
  • Posts: 15
Re: Question, component integration
« Reply #4 on: 27.01.2018 08:29:39 »
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
« Last Edit: 27.01.2018 18:12:43 by Miri »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.244
    • jDownloads.com
Re: Question, component integration
« Reply #5 on: 27.01.2018 11:09:18 »
Quote
yes, 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!

Offline Arno

  • Administrator
  • ***
  • Posts: 12.244
    • jDownloads.com
Re: Question, component integration
« Reply #6 on: 27.01.2018 11:21:40 »
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!

Offline Miri

  • Newbie
  • *
  • Posts: 15
Re: Question, component integration
« Reply #7 on: 27.01.2018 12:27:21 »
Hello. It actually exists in the administrator path:
/administrator/components/com_comment/plugins/com_jdownloads/jdownloads.php

Offline Arno

  • Administrator
  • ***
  • Posts: 12.244
    • jDownloads.com
Re: Question, component integration
« Reply #8 on: 27.01.2018 14:43:50 »
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!

Offline Miri

  • Newbie
  • *
  • Posts: 15
Re: Question, component integration
« Reply #9 on: 27.01.2018 18:06:16 »
Yes, I'm using the pro version.