×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: K2 and ccomments

K2 and ccomments 2 years 9 months ago #30503

  • Peter Ashford
  • Peter Ashford's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 217
  • Thank you received: 33
Hello,

I have been looking to use K2 on my site and have just installed version 2.6.9 and followed your K2 integration guide for ccomments. When I create a test category and test article/item, the ccomments box isn't shown. Is ccomments still compatible with this latest version? Just thought I'd check before I look too deeply into this.

thanks

Pete

K2 and ccomments 2 years 9 months ago #30504

  • Peter Ashford
  • Peter Ashford's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 217
  • Thank you received: 33
I can see this in firebug

<div id="ccomment-k2-1" class="ccomment row-fluid"/>
<div id="ccomment-token" style="display: none;">

K2 and ccomments 2 years 9 months ago #30506

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 154
  • Thank you received: 1081
Yes, it is compatible. If you see the above code on the page this means that you have a js error and the templates are not rendered? What do you see in the firrebug console?

Regards,
Daniel

K2 and ccomments 2 years 9 months ago #30513

  • Peter Ashford
  • Peter Ashford's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 217
  • Thank you received: 33
The only other reference I can see to ccommment is when I open up the js console in chrome. Shows the line below

Uncaught ReferenceError: Ccomment is not defined


thanks Pete

K2 and ccomments 2 years 9 months ago #30514

  • Peter Ashford
  • Peter Ashford's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 217
  • Thank you received: 33
Hi Daniel,

I found the issue. The default K2 setting to use their default CSS was set. Disabled that and it all started working. Maybe an issue for other people who don't have a template designed to work with K2. Not sure if a K2 issue, template or ccomment? Or just a case of all these technologies trying to work together!

thanks for your help. Great support as ever; you and Yves are always willing to help even if the issue may not be with your software.

cheers PEte


Attachments:

K2 and ccomments 2 years 9 months ago #30518

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 154
  • Thank you received: 1081
Thanks for sharing this Peter!
However this is really strange. I've never turned off the css of k2 for the comments to work. Even on my test server it is on...
Regards,
Daniel

K2 and ccomments 2 years 9 months ago #30524

  • Peter Ashford
  • Peter Ashford's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 217
  • Thank you received: 33
Hi Daniel,

The issue definitely isn't with ccomments or K2. Is with my templates underlying framework. After I made the change to not use K2 CSS, I started seeing issues with CSS styling on my K2 items. I won't bore you with all the details, but basically I turned the CSS setting back on to use K2 CSS and worked out that an optimisation setting in my template's framework was the cause. A setting to move script from head to end of body section. Turning that off solved the problem - comments appeared :-) I also turned off js/css optimisation in my template too, but that made no difference to ccomment. I have now installed JCH module for optimisation and that is looking good so far in testing.

Anyway, certainly no issue with Ccomment or K2. If any of your customers use a JSN ( www.joomlashine.com ) template, worth mentioning this to them if they experience something similar.

cheers Pete
  • Page:
  • 1
Time to create page: 0.126 seconds