
I am hoping you can help me as I am a paid subscriber of ccomment.
Here is what others got to work for jcomments. Perhaps you can advise me what to change to make your system POSSIBLY work in this way.
1. Put this at the end of /components/com_ohanah/views/event/tmpl/default.php
$comments = JPATH_SITE . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::show($event->id, 'com_ohanah', $event->title);
}
2. make a new file named "com_ohanah.plugin.php" , fill it with the code below and put it in /components/com_jcomments/plugins/
<?php
/**
* JComments plugin for Ohanah
*
* @version 2.3
* @package JComments
* @author Sergey M. Litvinov (smart@joomlatune.ru)
* @copyright (C) 2006-2012 by Sergey M. Litvinov (http://www.joomlatune.ru)
* @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
**/
class jc_com_ohanah extends JCommentsPlugin
{
function getObjectInfo($id, $language = null)
{
$db = JFactory::getDBO();
$db->setQuery('SELECT title, created_by FROM #__ohanah_events WHERE ohanah_event_id = ' . $id);
$row = $db->loadObject();
$info = new JCommentsObjectInfo();
if (!empty($row)) {
$Itemid = self::getItemid('com_ohanah');
$Itemid = $Itemid > 0 ? '&Itemid='.$Itemid : '';
$info->title = $row->title;
$info->userid = $row->created_by;
$info->link = JRoute::_('index.php?option=com_ohanah&task=view&id='.$id.$Itemid);
}
return $info;
}
}
?>