Hi guys,
i am new in the forum and have discovered this nice extension

i wonder if somebody could help me with my code, i have added the code below to my site and i got jcomment to work with my compenent.
this is the code that works fine:
<?php
$commentsPath = JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php';
if (is_file($commentsPath)) {
require_once(JPATH_SITE.DS.'libraries'.DS.'joomla'.DS.'database'.DS.'table'.DS.'user.php');
require_once($commentsPath);
echo JComments::showComments($i->id, com_mycomp, $i->name);
}
?>
so my questions that i want to show comment quantity on another page? i tried the code below that joomtune shows in developer page, this one:
$comments = JPATH_SITE . DS .'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
if (file_exists($comments)) {
require_once($comments);
$count = JComments::getCommentsCount($id, 'com_mycomp');
echo $count ? ('Comments('. $count . ')') : 'Add comment';
}
but as i am not a coder i wonder if somebody know this by seing my working code above?
Warm regards Birken