I have found a solution (or should i say THE solution).
You might just want to backup this file incase you messed up:
Before reading, If you are too lazy you can just skip to the end and download the file - I have uploaded copy of it - make sure you place it in the right folder.
Now to begin,
Go to this file: ...modules\mod_news_pro_gk4\tmpl\
layout.parts.phpLook for this line:
function info_k2($config, $news_catname, $news_cid, $news_cat_alias, $news_author, $news_author_id, $news_author_email, $news_date, $news_hits, $news_id, $news_alias, $comments, $rating_count, $rating_sum, $num = 1) {
Paste this after it [inside the bracket of the function]:
//Jcomments
$app = JFactory::getApplication();
$comments = $app->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
$k2jcomments = JComments::getCommentsCount($news_id, 'com_k2');
}
//end of Jcomments
THEN, look for this line (which should be about 36 lines down or so):
if($config['no_comments_text'] && (!isset($comments['art'.$news_id]) || $comments['art'.$news_id] == 0)){
$comments_amount = JText::_('MOD_NEWS_PRO_GK4_NO_COMMENTS');
} else {
$comments_amount = JText::_('MOD_NEWS_PRO_GK4_COMMENTS').' ('.(isset($comments['art'.$news_id]) ? $comments['art'.$news_id] : '0' ) . ')';
}
And Replace it with this lines:
if($config['no_comments_text'] && (!isset($comments['art'.$news_id]) || $k2jcomments == 0)){
$comments_amount = JText::_('MOD_NEWS_PRO_GK4_NO_COMMENTS');
} else {
$comments_amount = JText::_('MOD_NEWS_PRO_GK4_COMMENTS').' ('.(isset($comments['art'.$news_id]) ? $k2jcomments : '0' ) . ')';
}
Voila!!! You did it! Buy me a beer
Oh and one more thing as you may have notice clicking on the comment count link won't take you directly foced on the comment, so to fix that..
Find this line {which should be the next line right after the last lines we just replaced]:
$info_comments = '<a class="nspComments" href="'.urldecode(JRoute::_(K2HelperRoute::getItemRoute($news_id.':'.urlencode($news_alias), $news_cid.':'.urlencode($news_cat_alias)))).'#itemCommentsAnchor">'.$comments_amount.'</a>';
And replace it with this:
$info_comments = '<a class="nspComments" href="'.urldecode(JRoute::_(K2HelperRoute::getItemRoute($news_id.':'.urlencode($news_alias), $news_cid.':'.urlencode($news_cat_alias)))).'#comments">'.$comments.'</a>';
There you go..
And if you are just tooo darn lazy to go through all these, I have uploaded the edited file.. Just make sure you back up the previous file (just in case)..
Email me if you run into problems or just wanna say a thank you -
VOLTRONXD@GMAIL.COM