1. Open file /components/com_sobipro/usr/templates/default/entry/details.xsl
2. Find code (at the begin of file)::
<div style="clear:both;"></div>
and add:
<xsl:variable name="EntryId">
<xsl:value-of select="entry/@id" />
</xsl:variable>
<xsl:variable name="EntryName">
<xsl:value-of select="entry/name" />
</xsl:variable>
<xsl:value-of select="php:function( 'TplFunctions::JComments' , $EntryId, $EntryName )" disable-output-escaping="yes" />
3. Open file /components/com_sobipro/usr/templates/default/template.php
4. Find code:
public static function Cfg( $key, $def = null, $section = 'general' )
{
return Sobi::Cfg( $key, $def, $section );
}
and add after:
public static function JComments( $id, $title )
{
$result = '';
$comments = JPATH_SITE.'/components/com_jcomments/jcomments.php';
if (is_file($comments)) {
require_once($comments);
$result = JComments::show($id, 'com_sobipro', $title);
}
return $result;
}