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: JComments Latest in phoca gallery
Pages: [1]   Go Down
  Print  
Author Topic: JComments Latest in phoca gallery  (Read 7624 times)
0 Members and 1 Guest are viewing this topic.
Culmato
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: March 13, 2010, 21:45:12 »

Is it possible to use "latest comments" module with the comments of phoca gallery?
Thanks!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: March 17, 2010, 14:39:00 »

Yes, of course. All you need - set Source parameter of JComments Latest module to:

com_content,com_phocagallery,com_phocagallery_images

(if you want to show latest comments from com_content and com_phocagallery at once)
Logged

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

Karma: 0
Offline Offline

Posts: 2


« Reply #2 on: March 21, 2010, 23:28:46 »

Thanks smart, it works!
But it seems that "show latest commented content" doesn't work for phocagallery... too bad! It would be great
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: March 23, 2010, 22:48:16 »

But it seems that "show latest commented content" doesn't work for phocagallery...
Yes, because it works only with com_content's articles. I couldn't make same function for all other extensions because it will require include in module too much SQL-queries for each extension.
Logged

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

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #4 on: March 31, 2010, 21:53:50 »

But it seems that "show latest commented content" doesn't work for phocagallery...
Yes, because it works only with com_content's articles. I couldn't make same function for all other extensions because it will require include in module too much SQL-queries for each extension.

Hi,i try change /components/com_jcomments/plugins/com_jcomments.plugin.php for get active link to phocagalery. It is partly functional, but only for categories comments (jump into comment, but presently re-jump into right category). Also I am not sure about future issues. Please can you check it? Active link are builded only when new com_jcomments.plugin.php present in /components/com_jcomments/plugins/
THX
  Smiley

original
Code:
function getMenuItem($id)
{
$db = & JCommentsFactory::getDBO();
$query = "SELECT m.*"
. "\nFROM `#__menu` AS m"
. "\nJOIN `#__components` AS c ON c.id = m.componentid"
. "\nWHERE m.type = 'component'"
. "\nAND c.option = 'com_jcomments'"
. "\nAND c.parent = 0"
. "\nAND m.params LIKE '%object_id=" . $id . "%'"
;

$db->setQuery($query);
$menus = $db->loadObjectList();

if (count($menus)) {
return $menus[0];
} else {
return null;
}
}

modified
Code:
      function getMenuItem($id)
{
$db = & JCommentsFactory::getDBO();
$query = "SELECT m.*"
. "\nFROM `#__menu` AS m"
. "\nJOIN `#__components` AS c ON c.id = m.componentid"
. "\nWHERE m.type = 'component'"
. "\nAND ( c.option = 'com_jcomments' or c.option Like 'com_phoca%')"
. "\nAND c.parent = 0"
;

$db->setQuery($query);
$menus = $db->loadObjectList();

if (count($menus)) {
return $menus[0];
} else {
return null;
}
}
« Last Edit: April 01, 2010, 01:35:44 by tcladin » Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #5 on: April 01, 2010, 02:38:14 »

tcladin, to have correct links for PhocaGallery's objects in JComments Latest you need have special plugins for this extension. You could download them here: http://www.phoca.cz/download/category/1-phoca-gallery-component.
Logged

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

Karma: 0
Offline Offline

Posts: 2


« Reply #6 on: April 16, 2010, 04:46:51 »

Okay, I have installed PhocaGallery 2.62, JComments 2.1.0.0 and Recent JComments 2.5.4. The comments are appearing fine in my recent comments, mixing the com_content comments with my phocagallery comments. If I click on a comment link for an article then it takes me to the article and displays the comment, but if you click on the link associated with a phocagallery comment nothing happens. Should it? At the moment I have a load of photos. Someone has added a comment to a photo but I can't seem to find out which photo they've added it to!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #7 on: April 16, 2010, 11:53:40 »

but if you click on the link associated with a phocagallery comment nothing happens
seems you've forgot download and copy plugin into JComments plugins directory. Read my previous post more carefully...
Logged

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

Karma: 0
Offline Offline

Posts: 2


« Reply #8 on: April 16, 2010, 16:54:33 »

Ah, I see, I got 2.1.0.0 confused with 2.1.1.0 ! I thought I didn't need those plugin files... I dropped them in and it works fine now, thanks !
Logged
kraps
Newbie
*

Karma: 0
Offline Offline

Posts: 15


« Reply #9 on: June 07, 2010, 17:20:37 »

I have the plugins installed, but links still don't work (jcomm 2.2, latest 2.5.4,  phoca gallery 2.7.1)
Logged
zdaki
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #10 on: March 12, 2011, 04:00:58 »

Hi. I have phoca gallery and jcomment on my site makete.iz.rs . This code help me relatively to fix problem. Is it possible to click on link in "Latest comment" (mod_jcomment) and go direct on the picture? Now when click on latest comment new page is thumb and description of category.

Thank you
zdaki
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: JComments Latest in phoca gallery
 
Jump to: