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: DONE: JPhoto Integration
Pages: [1]   Go Down
  Print  
Author Topic: DONE: JPhoto Integration  (Read 936 times)
0 Members and 2 Guests are viewing this topic.
harikaram
Newbie
*

Karma: 3
Offline Offline

Posts: 19


« on: February 03, 2011, 21:09:19 »

To add JComments to JPhoto, override the JPhoto image template by copying its views/image/tmpl/default.php file to your template's html/com_jphoto/image/ folder and replace:

Code:
<?php if($this->params->get('joomlacomment'0)): // Display JoomlaComment ?>
<div class="joomlacomment-wrapper joomlacomment-wrapper-jphoto">
<?php
$option JRequest::getCMD('option');
require_once(JPATH_ADMINISTRATOR DS 'components' DS 'com_comment' DS 'plugin' DS $option DS 'josc_com_jphoto.php');
?>

</div>
<?php endif; ?>

With...

Code:
<?php if($this->params->get('joomlacomment'0)): // Display JoomlaComment ?>
<div class="joomlacomment-wrapper joomlacomment-wrapper-jphoto">
<?php
require_once(
JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php');
  echo 
JComments::show($row->id'com_jphoto'$row->title);
  
?>

</div>
<?php endif; ?>

Note, this will allow the JPhoto setting for JoomlaComments (aka CompojoomComments) to be used for JComments.

Optionally, add the attached file to your component/com_jcomments/plugins/ folder to get better reporting and management in the backend...

* com_jphoto.plugin.php (1.22 KB - downloaded 91 times.)
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: February 14, 2011, 00:32:16 »

Thank you for sharing this solution! I'll include this plugin to the next JComments version!
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: DONE: JPhoto Integration
 
Jump to: