Get an iPhone App for your Blog - Learn More
 

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 flagCroatian flagDanish flagFinnish flagHindi flagPolish flagRomanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flag
By N2H
  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!

  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?

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

  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…