Jus to avoid confusion i have Joomla 1.7 with JComments 2.3.0 and News Gavick Pro GK4 (mod_news_pro_gk4_for_responsive_templates). I assume this will work on Joomla 2.5 and same Gavick module...
So I managed to integrate jcomments in gavick module to display comment count within 'Information; or 'Second information' using %COMMENTS string.
Here is how:
Open: ../modules/mod_news_pro_gk4/tmpl/layout.parts.php
################ Step 1 ####################
Find:
function info($config, $news_catname, $news_cid, $news_author, $news_author_email, $news_date, $news_hits, $news_id, $rating_count, $rating_sum, $num = 1) {
Add after:
//Jcomments
$app = JFactory::getApplication();
$comments = $app->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
$jccount = JComments::getCommentsCount($news_id, 'com_content');
}
//end of Jcomments
################ Step 2 ####################
Find:
$news_info = str_replace('%RATE', $info_rate, $news_info);
Add after:
$komentar = 'Comments ('. $jccount . ')';
$news_info = str_replace('%COMMENTS',$komentar, $news_info);
################ Done ####################
Say thx if I helped xD