Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Latest Jcomment and Jdownload
Pages: [1]   Go Down
  Print  
Author Topic: Latest Jcomment and Jdownload  (Read 14158 times)
0 Members and 3 Guests are viewing this topic.
domi
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: August 23, 2008, 22:29:37 »

Hi !

I installed Jdownload and i've tried to use it with Jcomment. All is fine but the module lastest comment don't work in this contexte. The module latest does not recover good the URL.

It is of this type: index.php? option=com_jdownloads&Itemid=205#comment-8

Whereas it should be of this type: index.php? option=com_jdownloads&Itemid=205&task=view.download&cid=57#comment-8

Does somebody use it successfully with JDownload ??

Thanks in advance

domi
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: August 30, 2008, 00:05:37 »

Please, download attached archive file (com_jdownloads.plugin.zip), extract file com_jdownloads.plugin.php and copy it to /components/com_jcomments/plugins/ directory...

JComments uses plugins to discover right urls and titles for commented objects...

After copying com_jdownloads.plugin.php file  to specified directory all links must be correct...

* com_jdownloads.plugin.zip (0.78 KB - downloaded 544 times.)
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
domi
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« Reply #2 on: August 30, 2008, 00:26:07 »

A great thanks for a great support !

All is good now !

 Cheesy
Logged
_Rem_
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« Reply #3 on: December 09, 2008, 14:33:46 »

Hi !

I'm looking for a tutorial that explain how to install JComment in JDownload.

Is it possible to give a link that explain it ?

Thank you very much !

 Huh
Logged
ravi.grt
Guest
« Reply #4 on: December 14, 2008, 23:57:45 »

I installed Jcomments works great for articles.

But what about Jcomments for Jdownloads.

I dont find a clue about activating the comments for Jdownloads.

Please help me in doing this.
Logged
_Rem_
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« Reply #5 on: December 17, 2008, 14:01:29 »

Ok,

The link is on the RUS version :

http://www.joomlatune.ru/jcomments-integration-guide.html

Thx
« Last Edit: December 17, 2008, 14:04:32 by _Rem_ » Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #6 on: December 17, 2008, 14:20:23 »

Since version 1.3 RC1 jDownloads supports JComments integration. Read more here: jDownloads 1.3 RC1. So I don't translate integration manual for older version to english...
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
_Rem_
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« Reply #7 on: December 17, 2008, 14:25:28 »

A great thanks !   Smiley Smiley
Logged
thedom
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #8 on: March 30, 2010, 01:20:55 »

I installed Jcomments (latest version) and I've installed Jdownloads in his latest version too.
All is fine but the module latest comments doesn't show the last comments posted in jDownloads, only the latest comments in articles.

I installed the plugin in post #2 but the comments still do not appear.
Is it possible to release a new fix please ?
Thanks.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #9 on: March 30, 2010, 01:25:35 »

All is fine but the module latest comments doesn't show the last comments posted in jDownloads, only the latest comments in articles.
You need setup JCommens Latest. Set parameter 'Source' to com_content,com_jdownloads and it will show comments from both components: com_content and com_jdownloads.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
thedom
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #10 on: August 06, 2010, 14:18:20 »

Thank you so much Smart, everything work fine!  Cheesy
Logged
thedom
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #11 on: August 23, 2010, 16:24:55 »

Hi,

Actually, the comments  for jdownloads are displayed in the module but when I click on the link corresponding to a comment, I get a blank page.
Example : http://thedom.fr/index.php?option=com_jdownloads&task=view.download&cid=278&Itemid=0#comment-99

It doesn't happen for comments left for articles.

The same for email notifications. Blank page if I follow a jdownload comment, ok if I follow an article comment.

Can you help please ?  Angry
Thanks.
Logged
thedom
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #12 on: August 24, 2010, 15:44:36 »

Hi,

I tried to modify the original plugin posted at the beginning of this topic.

Here is the new code :

Code:
<?php
/**
 * JComments plugin for Remository objects support
 *
 * @version 1.4
 * @package JComments
 * @filename com_jdownloads.plugin.php
 * @author Sergey M. Litvinov (smart@joomlatune.ru)
 * @copyright (C) 2006-2008 by Sergey M. Litvinov (http://www.joomlatune.ru)
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 *
 * If you fork this to create your own project, 
 * please make a reference to JComments someplace in your code 
 * and provide a link to http://www.joomlatune.ru
 **/
 
(defined('_VALID_MOS') OR defined('_JEXEC')) or die('Direct Access to this location is not allowed.');

class 
jc_com_jdownloads extends JCommentsPlugin {

function getObjectTitle($id) {

$db = & JCommentsFactory::getDBO();
$db->setQuery'SELECT file_title FROM #__jdownloads_files WHERE file_id = ' $id );
return $db->loadResult();
}

function getObjectLink($id) {

$_Itemid JCommentsPlugin::getItemid'com_jdownloads' );

$link JoomlaTuneRoute::_'index.php?option=com_jdownloads&amp;task=view.download&amp;cid=' $id '&amp;Itemid=' $_Itemid 

);
return $link;
}
}
?>


Actually, I had to replace

Code:
$_Itemid = JCommentsPlugin::getItemid( 'com_jdownloads' );
with 
Code:
$_Itemid = 54;
because it get 0 instead of 54.

Any idea why and how to get the right value ?
Thanks for your help.
Logged
santoshwilson
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« Reply #13 on: February 21, 2012, 10:16:22 »

Please, download attached archive file (com_jdownloads.plugin.zip), extract file com_jdownloads.plugin.php and copy it to /components/com_jcomments/plugins/ directory...

JComments uses plugins to discover right urls and titles for commented objects...

After copying com_jdownloads.plugin.php file  to specified directory all links must be correct...

Hi Dear Friend, I have done as per above instructions but my site is giving a php error. I have Joomla 1.5 environment. Is it that the above com_jdownloads.plugin.php is written for another version of joomla?

What correction should I make?

thanks in advance

santosh
Logged
ABTOP
Full Member
***

Karma: 8
Offline Offline

Posts: 191



WWW
« Reply #14 on: February 21, 2012, 10:26:36 »

...but my site is giving a php error.
Copy the error here please.
Logged

No personal messages unless you are a friend or you have money for me.
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Latest Jcomment and Jdownload
 
Jump to: