Hello,
I got this error message at install and on every articles of my template:
Your current site template doesn't have afterDisplayContent event!The funny thing is that Jcomments is working properly

I looked in the forum and found people having the problem that Jcomment doesn't display and the fix is to add this ligne to the default.php file.
<?php echo $this->article->event->afterDisplayContent; ?>
If i add this line of code the error message disapears but than I have two Jcomments modules displaying, that's not good!!!
Any idea about how i can get rid of that error message?
My template is Ja ores from Joomlart.
Here is the code of the /templates/templatename/html/com_content/article/default.php
<?php
defined('_JEXEC') or die('Restricted access');
$cparams = JComponentHelper::getParams ('com_media');
// Get layout extra setting from template parameter
$content = file_get_contents( JPATH_THEMES.DS."ja_ores".DS.'params.ini');
$params = new JParameter($content);
$blog_theme = $params->get('default_page_layouts', "");
$defaultLayout = "default_";
if($blog_theme != ""){
$blog_theme = str_replace(" ", "", $blog_theme);
$blog_theme = explode("\n", $blog_theme);
if( is_array($blog_theme) )
foreach ($blog_theme as $blt){
$blt = str_replace(" ", "", $blt);
$blt = trim($blt);
if( strpos($blt, JRequest::getVar("Itemid")."=") !== false ){
$blog_theme = str_replace(JRequest::getVar("Itemid")."=", "", $blt);
break;
} else $blog_theme = "";
}
else $blog_theme = "";
}else
$blog_theme = "default";
$blog_tmpl = dirname(__FILE__).DS.$defaultLayout.$blog_theme.'.php';
if (!is_file ($blog_tmpl))
$blog_tmpl = dirname(__FILE__).DS.$defaultLayout.'default.php';
include ($blog_tmpl);
?>
Thank you
Other than that the component is really great

Stephane