Hey Smart,
I manged the integration by myself.
Added This code into /component/com_mmsblog/views/item/tmpl/default.php Line 55:
<?php
global $mainframe;
$comments = $mainframe->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments($this->row->id, 'com_mmsblog', $this->row->subject);
}
?>
and also wrote this plugin:
<?php
/**
* JComments plugin for mmsBlog support
**/
(defined('_VALID_MOS') OR defined('_JEXEC')) or die('Direct Access to this location is not allowed.');
class jc_com_mmsblog extends JCommentsPlugin
{
function getObjectTitle($id)
{
$db = & JCommentsFactory::getDBO();
$db->setQuery( 'SELECT subject FROM #__mmsblog_item WHERE id = ' . $id );
return $db->loadResult();
}
function getObjectLink($id)
{
$_Itemid = JCommentsPlugin::getItemid( 'com_jevents' );
$link = ( 'index.php?option=com_mmsblog&view=item&id='. $id.'&Itemid='. $Itemid );
return $link;
}
}
?>
THis was my first time in php. So I have no idea whether I did it right -> But it is working!
