Get 20,000+ FREE LINKS. Rank #1 in Google
 

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:

Jane May said on February 26th, 2007 at 6:07 pm

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!

Reply to this comment
Jeff said on February 26th, 2007 at 6:41 pm

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.

Reply to this comment
My New Choice said on February 26th, 2007 at 6:42 pm

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.

Reply to this comment
Saman Sadeghi said on February 26th, 2007 at 8:19 pm

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!

Reply to this comment
My New Choice said on February 26th, 2007 at 8:35 pm

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.

Reply to this comment
Jane May said on February 26th, 2007 at 10:03 pm

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?

Reply to this comment
Saman Sadeghi said on February 27th, 2007 at 7:00 am

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?!

Reply to this comment
Jez said on March 5th, 2007 at 12:59 am

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

Reply to this comment
lyndonmaxewell said on March 5th, 2007 at 1:37 am

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

Reply to this comment
Jez said on March 5th, 2007 at 3:11 am

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

Reply to this comment
lyndonmaxewell said on March 5th, 2007 at 3:16 am

I doubt comments so far has allowed for edit. No one has written the plug-in yet, perhaps.

Reply to this comment
Jeff said on February 26th, 2007 at 6:44 pm

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.

Reply to this comment
My New Choice said on February 26th, 2007 at 6:57 pm

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.

Reply to this comment
Saman Sadeghi said on February 26th, 2007 at 8:21 pm

True, now that I am not using MistyLook anymore, I am not having this problem - but I upgraded anyway, just in case my next theme doesn’t play nice either!

Reply to this comment
Jez said on March 5th, 2007 at 1:00 am

Thats interesting, I use Misty Look, have you identified the issue with this theme??

Reply to this comment
Jane May said on February 26th, 2007 at 6:08 pm

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

Reply to this comment
John Chow said on February 26th, 2007 at 6:15 pm

I don’t think you’re in any danger of being bump from the list. :wink:

Reply to this comment
Bryan Baker said on February 26th, 2007 at 6:29 pm

Ahhhh…I do like this feature. Thanks for the nice widget.

Reply to this comment
Jane May said on February 26th, 2007 at 6:42 pm

hehe…just an observation :cool:

Reply to this comment
Michael Kwan said on February 26th, 2007 at 7:56 pm

Admit it, you don’t want to just be a part of the top commentators list, you want to be number one! :)

Reply to this comment
Jane May said on February 26th, 2007 at 10:07 pm

hahaha…well, I don’t think I’m going to stay up tomorrow night commenting 50 times to reach that number 1 spot. But stranger things have happened :wink:

Think I can do it??? :twisted:

Actually, I have a contest to run tomorrow, so maybe not…or will I???

Reply to this comment
Jeff said on February 26th, 2007 at 11:12 pm

Jane and I have a competition on who’s going to be higher in the comments rank.

Reply to this comment
Jane said on February 26th, 2007 at 11:45 pm

hahaha…bring it Jeff :twisted:

Reply to this comment
Saman Sadeghi said on March 1st, 2007 at 4:27 pm

Looks like I might enter in this competition!

Reply to this comment
lyndonmaxewell said on March 1st, 2007 at 4:34 pm

*Laughters. Who doesn’t want to be in the top? Be prepared to be strike off!

Reply to this comment
Jez said on March 5th, 2007 at 1:03 am

Yeah you spend a lot of time keeping on that list Jane, is it worth it??

Ive just got to No. 1 on the list after a furious comment spam fest :twisted:

I just wanted to see whether it generated any traffic.

I use forums a lot and can touch type so its not that much of a pain for me, but I dont think Ill make a habbit of it.

I could have added a couple of posts to by blog in the same time, which I think would probably be more beneficial.

I suppose tomorrows stats will give me the answer.

That said, given your persistance, there must be some benefit??

Reply to this comment
Jez said on March 5th, 2007 at 1:04 am

Sorry posting again so I can subscribe to replies by Email …

Reply to this comment
Tyler said on February 26th, 2007 at 6:15 pm

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!

Reply to this comment
John Chow said on February 26th, 2007 at 10:08 pm

It wasn’t me! It was all Stephen’s fault!

Reply to this comment
Stephen said on February 27th, 2007 at 2:31 am

So Evil, he blames it on others! :evil:

Reply to this comment
Saman Sadeghi said on February 26th, 2007 at 6:30 pm

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

Reply to this comment
Saman Sadeghi said on February 27th, 2007 at 7:07 am

Actually, I should be thanking Derek!

Reply to this comment
TheAnand said on February 27th, 2007 at 11:18 am

he is sooooo evil that you end up giving him the credit!!!!

Reply to this comment
Saman Sadeghi said on February 27th, 2007 at 2:12 pm

I know, he brain washed me! :shock:

Reply to this comment
My New Choice said on February 26th, 2007 at 6:43 pm

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

Reply to this comment
Steve said on February 26th, 2007 at 9:30 pm

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

Reply to this comment
Ajith said on February 27th, 2007 at 1:59 am

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

Reply to this comment
skintube said on February 27th, 2007 at 6:55 am

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?

Reply to this comment
Saman Sadeghi said on February 27th, 2007 at 7:08 am

I noticed that too but since I changed my theme, I haven’t seen it happening on my site - is this another issue with MistyLook?!

Reply to this comment
My New Choice said on February 27th, 2007 at 7:50 am

Yeah, I think it is an issue with the MistyLook theme and I will hopefully have a chance to look at this next.

Reply to this comment
TheAnand said on February 27th, 2007 at 11:16 am

I think the MistyLook is fine, but I started seeing these lines on my blog only after I installed some plugin….which I presume John suggested, since a lot of readers are complaining. . . :lol: not pointing fingers John!

Reply to this comment
lyndonmaxewell said on March 1st, 2007 at 4:36 pm

The lines do go away when I refreshed the page though. Not that it shows always, either.

Reply to this comment
WildBluff_Matt said on February 27th, 2007 at 9:04 am

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

Reply to this comment
My New Choice said on February 27th, 2007 at 9:12 am

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?

Reply to this comment
ilker said on March 1st, 2007 at 4:25 am

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

Reply to this comment
My New Choice said on March 1st, 2007 at 6:40 am

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.

Reply to this comment
Saman Sadeghi said on March 1st, 2007 at 4:29 pm

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

Reply to this comment
Jez said on March 5th, 2007 at 1:07 am

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…

Reply to this comment
lyndonmaxewell said on March 1st, 2007 at 6:48 am

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.

Reply to this comment
Jez said on March 5th, 2007 at 12:57 am

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…

Reply to this comment
Dan1el said on March 5th, 2007 at 1:07 am

Did you work out a solution?

Reply to this comment
Jez said on March 5th, 2007 at 1:16 am

Not yet, I just turned off the post rating plug in.

You have to add code to index.php and another page (single or something) to get the post rating into pages.

I think changing where you put this code may solve the problem, but I havent had time to play with it yet….

Reply to this comment
lyndonmaxewell said on March 5th, 2007 at 1:41 am

Well, that is truly troublesome to keep up with!

Reply to this comment
Jez said on March 5th, 2007 at 3:10 am

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…

Reply to this comment

Sorry, the comment form is closed at this time.