Comment count displays (0)

kormame's Avatar

kormame

21 Feb, 2012 03:25 PM via web

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.

  1. Support Staff 2 Posted by peter on 21 Feb, 2012 04:04 PM

    peter's Avatar

    Hi there. Did you upgrade from an earlier version of the DiscussIt plugin?

  2. 3 Posted by kormame on 21 Feb, 2012 04:27 PM

    kormame's Avatar

    Thanks for responding. Actually I just installed it yesterday. I assumed that I got the latest version.

  3. Support Staff 4 Posted by peter on 21 Feb, 2012 04:35 PM

    peter's Avatar

    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?

  4. 5 Posted by kormame on 21 Feb, 2012 04:40 PM

    kormame's Avatar

    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

  5. Support Staff 6 Posted by peter on 21 Feb, 2012 04:52 PM

    peter's Avatar

    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.

  6. 7 Posted by kormame on 21 Feb, 2012 04:56 PM

    kormame's Avatar

    Are you suggesting that I should turn SEF on? I try that before and was getting redirection issues.

  7. Support Staff 8 Posted by peter on 21 Feb, 2012 04:57 PM

    peter's Avatar

    Have you upgraded from a Joomla 1.5 site?

  8. 9 Posted by kormame on 21 Feb, 2012 05:20 PM

    kormame's Avatar

    I turned on the SEF and yet still same behavior. And for the question I do upgrade from 1.7 to 2.5.

  9. 10 Posted by Kent on 21 Feb, 2012 06:51 PM

    Kent's Avatar

    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-...

  10. Support Staff 11 Posted by peter on 22 Feb, 2012 10:16 AM

    peter's Avatar

    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.

  11. 12 Posted by kormame on 22 Feb, 2012 01:47 PM

    kormame's Avatar

    Sounds like a good news to me. Thanks for the support.

  12. Support Staff 13 Posted by peter on 22 Feb, 2012 01:53 PM

    peter's Avatar

    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.

  13. 14 Posted by kormame on 22 Feb, 2012 04:36 PM

    kormame's Avatar

    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

  14. Support Staff 15 Posted by peter on 22 Feb, 2012 04:37 PM

    peter's Avatar

    Thanks, I'll look into that.

  15. Support Staff 16 Posted by peter on 22 Feb, 2012 04:47 PM

    peter's Avatar

    Ok, I've fixed that too. Download the package again and install over the top should fix it.

  16. 17 Posted by kormame on 22 Feb, 2012 05:54 PM

    kormame's Avatar

    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.

  17. Support Staff 18 Posted by peter on 22 Feb, 2012 10:16 PM

    peter's Avatar

    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.

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.