Outsource all your SEO work
 

Fixing The Threaded Comments Cancel Issue

written by John Chow on February 26th, 2007

Brian’s Threaded Comments is one of the best Wordpress Plugins I’ve ever installed on this blog. The Plugin adds “Reply to this comment” link to every blog comments. When you click the reply link, your comment is placed direct under the comment you replied to. However, there is a problem with the Plugin when you want to cancel a reply.

If you click reply to this comment and then decide to cancel, it jazzes up the screen and covers the content with a white block. My solution when first made aware of this bug was, “don’t cancel the reply.” :mrgreen:

Fortunately, Derek over at My New Choice has come up with a more elegant solution to the problem.

In the plugin code, briansthreadedcomments.php you need to edit the following line in the reRoot function:

From: var content = document.getElementById(”content”);

To: var content = document.getElementById(”content-main”);

Once I made this change, clicking the cancel link results in the behavior you would expect.

I’m happy to say it works like a charm. You can now cancel replies without fear of the white screen of death! :twisted:

Tweet This Tweet This Post!
English flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagPortuguese flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flag
  1. Hmmm, since I don’t want to encourage canceling comments, I’ll leave it out for not :wink:

    Good to know that there is this solution though…Thanks!

    • Haha well when you click the wrong comment to reply to, it can be a hassle..

      I never noticed this problem but I will address it right away.

    • Jane, I am the same way that I did not want to encourage canceling comments but the *bug* was just driving me crazy knowing it was there.

      That is why I had to figure out what the fix was and implement it on my site.

      • Well, if you want to discourage canceling comments, you should remove the code associated with:
        “Click here to cancel “reply”.”
        That would make more sense then having a bug that makes your site look unprofessional!

        • I actually thought about doing that but I like to leave the decisions up to my readers. I’m not a fan of being forced to do something so I choose not to impose that on my readers either.

          • I agree, leaving it to the readers is the way to go. Since I haven’t heard too many people complaining (actually, none for this particular problem) i’ll probably just leave it for now.

            BUT, I have been told that people have had to re-enter their comments because they wern’t showing up. Anyone else have this problem??? If so, what was causing it?

          • I haven’t had that problem on my site, but I have noticed that John’s is having SQL issues, so I have to enter my comments two or three times – anyone else notice that?!

          • Jez

            No Ive found it all working very well, perhaps John has made a modification

          • Or just refresh the site. Simple enough. Of course, it is better to solve the issue at the root.

      • Jez

        There have been times when I would have like to cance a comment, i.e. when I make a stupid mistake, in which case I would re-submit anyway.

        An edit feature would be useful

    • Well actually

      I just realized I don’t have that problem on my site.. and when I went to look for that piece of code, it was not there!!!

      I guess mine was an already upgraded version? Cause I installed this AFTER John installed it.

      • Jeff, this issue may only impact the people using the MistyLook theme that John and I are using on our sites.

        Another site I frequent, StephenFung.net, did not have this problem either but he has a different theme as well.

        FWIW, I just downloaded the latest version of this plugin tonight from the author and had a few issues with my theme. So it looks like it will be dependent on your installed theme.

  2. I just noticed John, the comments from Matt’s post yesterday didn’t change the top commentator numbers…darn!

  3. I want to know what _you_ did to break the servers!

    And don’t blame it on plug-ins!! Muahaha!

    Crazy guy you are Moto!

  4. That has been bugging me on my site! Thanks for the fix John!!

  5. John, thanks for the recognition on the fix of this issue and the link over to my site. :mrgreen:

  6. I am going to install this on my blog tomorrow, thanks.

  7. I dont think anybody would want to cancel a comment which is for you blog. Editing we may do but not cancelling

  8. What i’d like to know is what causes the ’strikethrough-like’ effect in some posts (in Firefox atleast)? I can see it above in MyNewChoice’s post. That drives me bonkers…is there a fix for it?

  9. Good implementation. Have you passed this back to the developer to get it implemented for those unaware?

    • Yeah, I posted the fix to the forums on the author’s website and he replied back.

      It does seem this fix is related to this particular theme though. Has anyone experienced the issue with other themes?

  10. I like the treaded comments.. it makes it easier to follow the conversation.

    • I’ve installed it on my site as well and like it except for one thing. On a heavily commented site like this, it makes it a little more difficult to come to a post and see which comments are new since the last time you viewed.

      The new comments can appear anywhere in the list so I find it easier to overlook a new comment.

      • It does make staying current difficult, but it does encourage comments!

        • Jez

          Indeed, I never made a bid for the top commentors list and only posted the odd comment. Due to this I have made a bid for the list.

          The only thing I would say is that it encourages quantity rather than quality in terms of the comments.

          You are encouraged to post comments to make the list, as opposed to adding comments that themselves add value.

          Still, it is fun to play with, I will be interested to see the results of doing this…

    • Not only that, it does make the site more professional. Easier to see who is replying to which comments, since ‘quoting’ would make the comments page longer than it really is.

  11. Jez

    I have had more problems with threaded comments than other plug ins, a very good plug in but it can be a pain. In particular I had a conflict between comments and the star rating plug in…

  12. Jez

    Not necessarily, try the plug in, it will probably work ok, if not just turn it back off again.

    It will only take you 10 minutes to try it.

    The problem is probably something Ive dont to my template…