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: Phoca Download and Jcomments ?
Pages: [1]   Go Down
  Print  
Author Topic: Phoca Download and Jcomments ?  (Read 9399 times)
0 Members and 2 Guests are viewing this topic.
allos
Newbie
*

Karma: 0
Offline Offline

Posts: 7


Email
« on: August 01, 2009, 02:54:17 »

Does anyone tried to integrade jcomments to phoca downloads?
Logged
era
Global Moderator
Newbie
*****

Karma: 9
Offline Offline

Gender: Male
Posts: 44


211194534
Email
« Reply #1 on: August 01, 2009, 03:18:38 »

See this
Logged

English is not my native language - so I can write with mistakes Wink
allos
Newbie
*

Karma: 0
Offline Offline

Posts: 7


Email
« Reply #2 on: August 01, 2009, 17:14:17 »

This is for PhocaGallery .
I want to intergrate Jcomments with PhocaDownload  Sad
Logged
era
Global Moderator
Newbie
*****

Karma: 9
Offline Offline

Gender: Male
Posts: 44


211194534
Email
« Reply #3 on: August 02, 2009, 10:52:02 »

Not observed. Today I am in your site will make the integration. Comments show in the category, right?
Logged

English is not my native language - so I can write with mistakes Wink
allos
Newbie
*

Karma: 0
Offline Offline

Posts: 7


Email
« Reply #4 on: August 02, 2009, 20:54:04 »

As i can see  only the category can commented Sad .

Ok if you could make it for category could be great !!! Thanks !!!!
Logged
era
Global Moderator
Newbie
*****

Karma: 9
Offline Offline

Gender: Male
Posts: 44


211194534
Email
« Reply #5 on: August 03, 2009, 01:30:29 »

integration with PhocaDownload
in your template folder create directories:
<your template>/html/com_phocadownload/category

from PhocaDownload copy category template file:
<joomla>/components/com_phocadownload/views/category/tmpl/default.php
to your template folder:
<joomla>/templates/<your template>/html/com_phocadownload/category/

Now, edit the file and paste this code is almost the end of file:
Code:
$comments = JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php';
if (is_file($comments)) {
require_once($comments);
echo JComments::showComments($this->category[0]->id, 'com_phocadownload', $this->category[0]->title);
}


So:
Code:
}
echo '</center></div>';
}
echo '</form>';
// --== This our new code ==--
$comments = JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php';
if (is_file($comments)) {
require_once($comments);
echo JComments::showComments($this->category[0]->id, 'com_phocadownload', $this->category[0]->title);
}
// --== This our new code ==--
} else {
echo '<h3>&nbsp;</h3>';
}
Logged

English is not my native language - so I can write with mistakes Wink
era
Global Moderator
Newbie
*****

Karma: 9
Offline Offline

Gender: Male
Posts: 44


211194534
Email
« Reply #6 on: August 03, 2009, 01:40:43 »

Quite forgot, for JComments BackEnd...

If your JComments version 2.0.xx, unzip and copy attached file to JComments plugin directory:
<joomla>/components/com_jcomments/plugins/

Coming soon version 2.1 - it is already included this plugin.

* com_phocadownload.plugin.zip (0.78 KB - downloaded 476 times.)
Logged

English is not my native language - so I can write with mistakes Wink
allos
Newbie
*

Karma: 0
Offline Offline

Posts: 7


Email
« Reply #7 on: August 03, 2009, 12:32:45 »

ok !! tested and it worked !!!
THANKS !!!

did you see my other post about jportfolio 1.3 ?
Logged
Randal
Newbie
*

Karma: 0
Offline Offline

Posts: 2


Email
« Reply #8 on: September 15, 2009, 04:02:41 »

This integration doesn't work with new Phoca Gallery 2.5.x
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Phoca Download and Jcomments ?
 
Jump to: