Intergration with JomComment

Phoca Gallery - image gallery extension
FinallyInSeattle
Phoca Member
Phoca Member
Posts: 17
Joined: 02 Jan 2009, 10:48

Re: Integration with JomComment

Post by FinallyInSeattle »

I just successfully integrated Jom Comment with Phoca Gallery. I modified components\com_phocagallery\views\category\tmpl\default.php as follows:

Look for "if ((int)$this->tmpl['displaycomment'] == 1)" (around line 365). Inside this if block there's a "echo $pane->startPanel" and an "echo $pane->endPanel". Remove all the statements between these two echo's and replace them with:

Code: Select all

include_once(JPATH_SITE.DS. "/plugins/content/jom_comment_bot.php");
echo jomcomment($this->category->id, "com_phocagallery");
vfx
Phoca Member
Phoca Member
Posts: 21
Joined: 16 Oct 2008, 00:28

Re: Intergration with JomComment

Post by vfx »

no work for me. just showed up the Comments tab. No comment form.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Intergration with JomComment

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
vfx
Phoca Member
Phoca Member
Posts: 21
Joined: 16 Oct 2008, 00:28

Re: Intergration with JomComment

Post by vfx »

Ha. I like your simple answer. It would be totally awesome if you can allow guest commenting. Must be a major feature for the next release.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Intergration with JomComment

Post by Jan »

Hi, I have contacted the developer who has made this integration but still got no answer :-(

Jan
If you find Phoca extensions useful, please support the project
FinallyInSeattle
Phoca Member
Phoca Member
Posts: 17
Joined: 02 Jan 2009, 10:48

Re: Integration with JomComment

Post by FinallyInSeattle »

FinallyInSeattle wrote:I just successfully integrated Jom Comment with Phoca Gallery. I modified components\com_phocagallery\views\category\tmpl\default.php as follows:

Look for "if ((int)$this->tmpl['displaycomment'] == 1)" (around line 365). Inside this if block there's a "echo $pane->startPanel" and an "echo $pane->endPanel". Remove all the statements between these two echo's and replace them with:

Code: Select all

include_once(JPATH_SITE.DS. "/plugins/content/jom_comment_bot.php");
echo jomcomment($this->category->id, "com_phocagallery");
I had no problems integrating JomComment as mentioned above. Do you have Version 3.0 installed?
FinallyInSeattle
Phoca Member
Phoca Member
Posts: 17
Joined: 02 Jan 2009, 10:48

Re: Integration with JomComment

Post by FinallyInSeattle »

rowby wrote:
Hi can you send a link for a demo of Phoca Gallery integrated with JomComment?

Thanks

Rowby
Sorry, I'm currently developing my site on localhost.
DirkMu
Phoca Member
Phoca Member
Posts: 15
Joined: 21 Jul 2008, 17:12

Re: Intergration with JomComment

Post by DirkMu »

I've tested the integration and it looks like this:
Phoca gallery JomComment 1.jpg
Phoca gallery JomComment 2.jpg
I modified components\com_phocagallery\views\category\tmpl\default.php as follows:

Look for "if ((int)$this->tmpl['displaycomment'] == 1)" (around line 365).

Remove:
echo $this->loadTemplate('comments');

Add:
include_once(JPATH_SITE.DS. "/plugins/content/jom_comment_bot.php");
echo jomcomment($this->category->id, "com_phocagallery");

Regards
Dirk
mtovarnet
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 22 Sep 2009, 19:52

Re: Intergration with JomComment

Post by mtovarnet »

Es facil
Is easy

My site is:
http://pasionamericanista.net/galeria-d ... logos.html

en el archivo
mas o menos en la linea 807 del archivo
/components/com_phocagallery/views/category/tmpl/default.php

quiten estas 2 lineas
Deleted this twos lines
echo $this->loadTemplate('comments');
echo $pane->endPanel();

y pongan estas 3
put this three lines

global $mosConfig_absolute_path;
include_once(JPATH_SITE.DS. "/plugins/content/jom_comment_bot.php");
echo jomcomment($this->category->id, "com_phocagallery");

y listo
ready

Club America - Pasion Americanista
www.pasionamericanista.net
Saludos desde Cancun
Post Reply