Comment count displays (0)
I've my JOOMLA article displaying the comments count as (0) event if the article has comments. The count is displayed right after the "readMore" link.
I've my JOOMLA article displaying the comments count as (0) event if the article has comments. The count is displayed right after the "readMore" link.
Support Staff 2 Posted by peter on 21 Feb, 2012 04:04 PM
Hi there. Did you upgrade from an earlier version of the DiscussIt plugin?
3 Posted by kormame on 21 Feb, 2012 04:27 PM
Thanks for responding. Actually I just installed it yesterday. I assumed that I got the latest version.
Support Staff 4 Posted by peter on 21 Feb, 2012 04:35 PM
Thanks.
I'm not sure why this is happening unless there's a javascript error on your page, can you give me the URL so I can see if this is what's happening?
5 Posted by kormame on 21 Feb, 2012 04:40 PM
Sure! Here it is:
This link shows that there are comments posted:
http://diobasse.com/index.php?view=article&catid=35:diobasse-ar...
This one shows othewise:
http://diobasse.com
Support Staff 6 Posted by peter on 21 Feb, 2012 04:52 PM
Thanks.
It's not a javascript bug but I'm confused by your site's setup. Search-Engine-Friendly (SEF) URLs are turned off and it's using 'itemid', which I think is a joomla 1 -> 1.5 feature. This may be confusing the plugin.
7 Posted by kormame on 21 Feb, 2012 04:56 PM
Are you suggesting that I should turn SEF on? I try that before and was getting redirection issues.
Support Staff 8 Posted by peter on 21 Feb, 2012 04:57 PM
Have you upgraded from a Joomla 1.5 site?
9 Posted by kormame on 21 Feb, 2012 05:20 PM
I turned on the SEF and yet still same behavior. And for the question I do upgrade from 1.7 to 2.5.
10 Posted by Kent on 21 Feb, 2012 06:51 PM
I got the same error and I upgraded too, from Joomla 1.5 to 2.5. Have been using SEF's for years now. Downloaded and installed your plugin today, so I must assume it's the latest version. Please have a look.
0 comments: http://www.segersangby.org/sbx/
1 comment: http://www.segersangby.org/sbx/aktuellt-i-byn/218-planer-pa-radhus-...
Support Staff 11 Posted by peter on 22 Feb, 2012 10:16 AM
Ok. I've worked out what's going on. There's a bug in my code. I'll release a new version of the package with the bug-fix later today.
12 Posted by kormame on 22 Feb, 2012 01:47 PM
Sounds like a good news to me. Thanks for the support.
Support Staff 13 Posted by peter on 22 Feb, 2012 01:53 PM
OK, fixed version available here:
http://www.discussit.com/joomla/DiscussItJoomlaPlugin2_0_1.zip
Unfortunately it will not count any comments that have already been made but you can withdraw these to correct the count.
14 Posted by kormame on 22 Feb, 2012 04:36 PM
I installed the latest version and it is working now.
However I noticed some other issues (I guess it should be on another thread):
- Try responding to a comment and the responder' email address will not be recognized (you have to live it blank) -Popup window if it succedes
Support Staff 15 Posted by peter on 22 Feb, 2012 04:37 PM
Thanks, I'll look into that.
Support Staff 16 Posted by peter on 22 Feb, 2012 04:47 PM
Ok, I've fixed that too. Download the package again and install over the top should fix it.
17 Posted by kormame on 22 Feb, 2012 05:54 PM
Try it again and it seems that we are back to the first issue. Did you verify the version you've added. When I got and install it it says V2.0. and not v2.0.1 as it should.
Support Staff 18 Posted by peter on 22 Feb, 2012 10:16 PM
I've just downloaded the package on my home computer and it looks right. I didn't increment the version number inside the package like I should have, but it should still work.
The last change I made was on line 80 of plg_discussit.js. I changed it from:
if (!isValidEmailAddress(jQuery("#txtdiEmail").val())) {to
if (!isValidEmailAddress(jQuery("#txtdiREmail").val())) {Also, line 5 should look like this:
jQuery("#diBtnSubmitComent").live("click",function() {jQuery("#diBtnSubmitComent").attr("href","Javascript:di_submit_form()");});and line 7 should look like this:
jQuery(".trButtons a:first").live("click",function() {jQuery(".trButtons a:first").attr("href","Javascript:di_submit_form()");});if these line are different you may have installed the wrong package or you may need to flush your browser cache.