Problem with Jcomment

GK User
Sat Sep 22, 2012 2:23 am
Hi,

Me again .... :D

i have some problem with Jcomment and News Show Pro GK4,


Image


i try this code but it doesn't works

sheridan wrote:In order to use jcomment and not k2_comment you can edit the file gk.source.k2.php

replace this code
Code: Select all
$query_news = '
         SELECT
            content.id AS id,
            COUNT(comments.itemID) AS count         
         FROM
            #__k2_items AS content
            LEFT JOIN
               #__k2_comments AS comments
               ON comments.itemID = content.id       
         WHERE
            comments.published
            AND ( '.$sql_where.' )
         GROUP BY
            comments.itemID
         ;';
         


by this code

Code: Select all
// UTILISATION DE JCOMMENT A LA PLACE de K2_COMMENT
         $query_news = '
         SELECT
            content.id AS id,
            COUNT(comments.object_id) AS count         
         FROM
            #__k2_items AS content
            LEFT JOIN
               #__jcomments AS comments
               ON comments.object_id = content.id       
         WHERE
            comments.published
            AND ( '.$sql_where.' )
         GROUP BY
            comments.object_id
         
         ;';



Thank you very much for your help ;)
User avatar
Senior Boarder

GK User
Sun Sep 23, 2012 5:09 pm
Actually it works pretty well.
Try replacing the attach file on ../modules/mod_news_pro_gk4/gk_classes/gk.source.k2.php

Don't forget to install the K2 JComments plugin and enable on plugin manager.

gk.source.k2.zip


Cheers
User avatar
Platinum Boarder

GK User
Sun Sep 23, 2012 7:21 pm
Thank you so much Seichinha for your help, i didn't know for the K2 JComments plugin so i took it, and installed it with the new file gk.source.k2.php, but same result . Always %COMMENTS
User avatar
Senior Boarder

GK User
Sun Sep 23, 2012 11:13 pm
Did you add new comment after?
Can i see your website?
User avatar
Platinum Boarder

GK User
Mon Sep 24, 2012 12:24 am
Yes i tried to make a comment test for see, but nothing.
I am working on localhost actually
User avatar
Senior Boarder

GK User
Wed Sep 26, 2012 6:47 pm
any other idea please ?
User avatar
Senior Boarder

GK User
Wed Sep 26, 2012 8:12 pm
I want to precise that i don't use K2, but joomla content, is for that reason i don't see the comments ?
User avatar
Senior Boarder

GK User
Fri Oct 05, 2012 2:50 am
Problem solved, jcomments works with News Show Pro GK4 , and without K2
User avatar
Senior Boarder

GK User
Fri Oct 05, 2012 7:40 pm
Dear Team
You knew the answer to my problem since the beginning but you didn't help me for parameter Jcomment. WHY ?

I have found the solution alone.

I just want to understand how it’s works here .

Have a good week end :-)
User avatar
Senior Boarder


cron