domi
Newbie
Karma: 0
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
|
 |
« 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...
|
|
|
|
Logged
|
|
|
|
domi
Newbie
Karma: 0
Offline
Posts: 2
|
 |
« Reply #2 on: August 30, 2008, 00:26:07 » |
|
A great thanks for a great support ! All is good now ! 
|
|
|
|
|
Logged
|
|
|
|
_Rem_
Newbie
Karma: 0
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 ! 
|
|
|
|
|
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
Posts: 3
|
 |
« Reply #5 on: December 17, 2008, 14:01:29 » |
|
|
|
|
|
« Last Edit: December 17, 2008, 14:04:32 by _Rem_ »
|
Logged
|
|
|
|
|
smart
|
 |
« 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
|
|
|
|
_Rem_
Newbie
Karma: 0
Offline
Posts: 3
|
 |
« Reply #7 on: December 17, 2008, 14:25:28 » |
|
A great thanks ! 
|
|
|
|
|
Logged
|
|
|
|
thedom
Newbie
Karma: 0
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
|
 |
« 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
|
|
|
|
thedom
Newbie
Karma: 0
Offline
Posts: 5
|
 |
« Reply #10 on: August 06, 2010, 14:18:20 » |
|
Thank you so much Smart, everything work fine! 
|
|
|
|
|
Logged
|
|
|
|
thedom
Newbie
Karma: 0
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-99It 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 ?  Thanks.
|
|
|
|
|
Logged
|
|
|
|
thedom
Newbie
Karma: 0
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 : <?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&task=view.download&cid=' . $id . '&Itemid=' . $_Itemid
); return $link; } } ?>
Actually, I had to replace $_Itemid = JCommentsPlugin::getItemid( 'com_jdownloads' ); with $_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
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
|
 |
« 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.
|
|
|
|