Brians Threaded Comments 1.5.9
Like my plugins? Try my game!
If you like my plugins, maybe you'll like the popular game I made for PC and Mac (yes, shameless plug).
Try Deep Blue Sea - it's free (Download: PC | Mac)
New version out.
You will need to go in to the options for the plugin and click "Migrate" to get your threading back, if you are upgrading from an earlier version of this plugin.
The threading plugin no longer makes changes to the database.
The textarea is now larger.
Clicking "reply here" doesn't reload the page in Safari anymore.
Support, questions, suggestions?
Please use the Project Forums.
Hello Brian,
scuse me, i'm french : i don't speak well english.
I have a problem. I want to show comments directly on homepage with this code :
is_single = true;
comments_template();
$wp_query->is_single = false;
?>
and it's ok, no problem.
But I use your plugin I read this message :
Fatal error: Cannot redeclare write_comment() (previously declared in /wp-content/themes/default/comments.php:47) in /wp-content/themes/default/comments.php on line 47
Could you help me please ?
Thanks
Hi Brian, the maximum nested comments counter was off by one in the current v1.5.9 version. So I was browsing the google code base repository and saw your changes in briansthreadedcomments.php to fix that offset for the upcomming btc v1.5.10 version. However, once I replace that file in the plugin directory, the comment page javascript is complaining it couldn't find div tag with "div-comment—1". Somehow, that last separator become double dashes instead of single so the js and the page couldn't match up. once I remove the minus one part on the $btw_cut_off variable, it worked. So I wonder if I am missing anything here in order to fix the bug and avoid the new bug in comming 1.5.10 verison. Thanks.
Just to follow up with my last comment, I am 80% sure that the problem might be related to line 47 on briansthreadedcomments.php , where $deepest_id is default to "-1" if by any chance, $deepest_id is getting a default value, there will be faulty javascript code generated on the page and looking for 'div-comment—1' because it was set to 'moveAddCommentBelow("div-comment-'
function write_comment(&$c, $deepest_id = -1) {
...
if($threaded_comments[$c->comment_ID]) {
$id = $c->comment_ID;
foreach($threaded_comments[$id] as $c) {
$GLOBALS['__writeCommentDepth']++;
if($GLOBALS['__writeCommentDepth'] == $btc_cutoff_level)
write_comment($c, $c->comment_ID);
else
write_comment($c, $deepest_id);
$GLOBALS['__writeCommentDepth']--;
}
}
But I couldn't figure it out from there, Brian can you help here?
That's exactly what I needed! Thanks!
Mee to :P
Me too…
does it still nest funny?
i sure hope not
what was the part .. where it said.. doesn't nest beyond this point.. is that still in the script?
13-1000 14-1000 15-1000 .. i can post another comment!! w00t!!
hm.. interesting
indeed!
Excellent! I've just started having problems with my comments, people can't see them, the names and everything are there but the words aren't. I think it's only in IE6 that this happens (if someone could check for me that would be sweet). Anyway, I'll try upgrading.
Is the comments.php file different to version 1.5.7? I've made changes (style and smilies etc) to my comments.php that I'd rather not do again if I can avoid it.
I can't remember – you can try and use a tool like the excellent examdiff to see the differences.
Ok, it wasn't actually that much of a hassle to find where I'd added stuff. Now that I have upgraded. I'm getting it the way I like it and testing it out – if you click "Cancel reply" a big box overtakes the screen, as if my comment form box has expanded.
Any ideas?
Using Firefox 2 incase that's a factor.
excellent plugin man!
i got it setup and running in no less than 5 minutes!
you should put up a donation page .. pple will appreciate this
Thanks.
Added a tip jar to the sidebar ;)
Hello.
Thank you for the nice plugin. I noticed something when a user cancels the comment they wanted to submit as a response to others.
Try clicking on "reply to this" to any comment, and then click on the "Reply to this comment" link. Once the comment box is open, click the "cancel" button to cancel the comment. If you click on any "Reply to this comment" link after canceling your comment submission, a pop-up box with the following comment is shown:
"Error : Threaded Comments can't find the 'addcomment' div. "
Reloading the page allows one to comment again, but canceling a comment does the same thing again.
Any ideas? :)
good site
I am trying to get it work on my template (I use a modified version of K2) but for some reason the "Reply to this comment" doesn't show up. Any one had luck with K2?
I'd love to use this plugin but as it is right now I can't.
I'm using the 3 column k2 and it's amazing. It includes a lot of nice stuff for the comments and much more. I've also installed some extra stuff, like Favatars and Live comment preview and if I use your comment-page it's all gone.
Is there any way you could provide a step by step instruction list on how to put the appropriate code in our existing comment-pages?
I'd like to see this as well. I love the idea of having threaded comments on my site, but being more of a tweaker than a programmer, the process of implementing into my site currently seems daunting.
When I installed this plugin, I followed the instructions listed in the text file. However, everytime someone wants to add a comment, they hit ADD COMMMENT and it then shows an about page. See for yourself and try it out at http://www.theagcompany.com/blog/
I'm hoping someone can tell me what I did wrong or what step I forgot. Thanks.
hello brian.I am using the k2 theme.and I have install this plugin.but it seems to do not works very well.when i reply the comments,It will display like that :'Fatal error: Cannot redeclare add_magic_quotes() (previously declared in C:Inetpubwwwrootwordpress1wp-comments-post.php:4) in C:Inetpubwwwrootwordpress1wp-includesfunctions.php on line 774'.how can i do to resolve this problem?Sorry for my ugly english!
Hey Brian, excellent comment, I just implemented it on my own blog. Though I did notice the comment information no longer saves. Has this happened to anyone else?
i've noticed the comment information doesn't show in the field, but if the person filled it in once it will show once they post their information.. it would be good to have it filled in the fields though
Excuse me. Is there any way to solve this problem?
To think it in an opposite way, I don't want to assume the information is "invisible" and then really find out it is not there (maybe due to cookie expired or something).
As a webmaster, the problem is acceptable for myself. But I don't want my visitors confused.
Thank you.
I'm having 2 problems with this otherwise AMAZING plugin :)
1) I use avatars and in the default comment the words would wrap around the picture, however the words are now running 'under' the avatar instead of wrapping
2) The permalink to the comments is now missing.. how can i get this back? I often highlight key comments in posts…
thanks :D
To fix the gravatars and text problem I think you need to use some CSS, I have my gravatars floated (I have it to the right but just float:left if you want them on the left) and there's no funny text issue.
This is going to be one of my latest favorite plugins.
Just to leave you a big thank you for this wonderfull plugin. I'm using it at my blog. Superb job Brian
I installed the latest version but I can't find out how to access the options in my WP Admin?
Any advice would be appreciated!
Jon
Options > Threaded Comments
Wow, must have been a long night for me to have missed that ;) Thanks Kristarella!
I really want this to work but the comment form shows the name,email, and url input boxes for logged in users. I tried the default theme and that didn't help. Is anyone else seeing this?
Have tried this plugin at my blog (link in name), but it doesn't seem to work. What I have done is installing the plugin and activating it, nothing more. What have I missed?
Kalle :)
You have to upload the comments.php to your theme directory.
Wow, thanks! It works now :D
I installed the plugin in my test environment and everything works fine except that the comments box is several pixels to the right (not aligned with name, email and URI boxes). I do not have the "subscribe to comments via email" check box showing. I am not very good with CSS. Is there an easy way to fix this? Thanks,
I upgraded from 1.5.7 and when I did, all my comments dethreaded. You can reply and make new threads, but all the old ones are screwed up. If I keep my old comments.php the threading is still there, but you can no longer create new comments in a threaded style. If I update the comments.php, I loose the threading but you can now thread comments.
Do you know what that's all about? Can you put up a link to download your old version of 1.5.7? Please!
Read the top of this page in a big red box it says "You will need to go in to the options for the plugin and click “Migrate” to get your threading back, if you are upgrading from an earlier version of this plugin."
Yes. I did indeed find that after I posted me comment. Mea Culpa.
Hello, I just added BTC and it is displaying the collapse/expand icon four times (in a squared pattern). Any ideas? Thank you.
I'm getting that too. Let's compare notes. I might get a chance to trouble shoot this problem this weekend (Holiday Monday!).
Check this post and compare my problem to yours.
It's probably just the theme's CSS expanding the size of the "+/-" expander icon.
Also, the "subscribe to comments via email" does not appear as an option. Thanks again for the help.
I think you actually have to have the Subscribe to Comments plugin installed to have the checkbox to show up and the function to work.
Got it, thanks Kristarella.
Andy,
That's the same thing I am getting. Here's my site. I still need to figure out what's happening with the 'subscribe to email" check box thing.
oops…my site
messed it up again. my site
Ok, so I threw this bit into css and it fixes it in Firefox….but not IE.
img.collapseicon
{
background:url(/wp-content/plugins/briansthreadedcomments.php?image=spacer.png)no repeat;
padding: 0 0 0 0;
}
Excellent, well that's something for now.
You have a typo, though: 'no repeat' should be 'no-repeat'.
img.collapseicon {
background:url(spacer.png)no-repeat;
padding: 0 0 0 0;
}
Just wanted to mention that this plugin in xhtml valid except for one spot. Well done! If you want it to validate completely you need to pop an alt="" in the img tag where it says collapseThread.
Okay, I was ignoring this problem because it only happened on some computers with some browsers but it seems to happen everywhere and I'm pretty sure it's this plugin that's causing an incompatibility. I could be wrong, I guess I just thought that because it's when it comments… I'll go check with the subscribing people though. Have you found this message anywhere?
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /nfsn/content/kristarella/htdocs/blog/wp-content/plugins/subscribe-to-comments.php on line 438Warning: Cannot modify header information - headers already sent by (output started at /nfsn/content/kristarella/htdocs/blog/wp-content/plugins/subscribe-to-comments.php:438) in /nfsn/content/kristarella/htdocs/blog/wp-includes/pluggable.php on line 275
Sorry, it was the subscribing one – I hadn't updated to the latest version and I thought I had. My bad! Feel free to delete these stupid comments.
Hello,
Would someone mind helping out with a css issue? On my site the right border of the first comment goes off the screen. An example is . This only happens in IE, it's perfect in Firefox. I have messed around with the css using #commentlist and have had no luck. I appreciate any help. Thanks, Eric
Sorry, it's fine in Camino so I can't tell what the problem is.
Try Position Is Everything. They have a lot of things about IE layout bugs.
I'd like everyone who are using the blog comments for support issues and discussion about the plugins to get used to using the new forums that created for this very purpose instead :)
Head over here:
Brians Projects Forum
Thanks a lot :)
Brian,
I noticed your date/time on your comments in your sidebar is being miscalculated. It stated that this topic was started 37 years ago. I don't think it's that old! :)
Well, I am fairly sure it's more likely that it's a problem with pesky time travellers than it being a bug in my plugin :)
Hi Brian,
This is a great plugin and it's been great making it fit in with the look and feel of my site.
I've a got as couple of questions:
1. How can I have the threaded comments alternate colors/shadings?
2. The Wordpress Comment cookie – WP default comments will automatically remember and autofill the Name, Email and URI/URL fields when a retuning commentor hit the site again.
Can your plugin do this, too?
Thanks a million for your efforts!
Actually the information is still there after you have filled them in once. They are just "invisible".
I would appreciate a solution too.
so is it AJAX? How's it diff w/ Brian's Latest Comments except this one has thread feature?
Hi just wanted to say thanks for the plugin. It works great with WP 2.12. Can't wait to try out some of your other plugins.
Nice plugin, thanks!
I agree! Kudos!
Hi, how do i make the collapse icon white? Because i have a black background.