Page 2 of 2

Re: Integration with JomComment

Posted: 15 Mar 2009, 20:58
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");

Re: Intergration with JomComment

Posted: 19 Mar 2009, 22:21
by vfx
no work for me. just showed up the Comments tab. No comment form.

Re: Intergration with JomComment

Posted: 23 Mar 2009, 23:55
by Jan
Ok

Re: Intergration with JomComment

Posted: 24 Mar 2009, 23:18
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.

Re: Intergration with JomComment

Posted: 25 Mar 2009, 13:47
by Jan
Hi, I have contacted the developer who has made this integration but still got no answer :-(

Jan

Re: Integration with JomComment

Posted: 25 Mar 2009, 17:10
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?

Re: Integration with JomComment

Posted: 10 Apr 2009, 16:33
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.

Re: Intergration with JomComment

Posted: 26 May 2009, 22:54
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

Re: Intergration with JomComment

Posted: 22 Sep 2009, 20:26
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