Title: Threaded comments hack &#8211; 0.72
Last modified: August 18, 2016

---

# Threaded comments hack – 0.72

 *  [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/)
 * This is the original hack from Dodo for b2, converted (the insides are completely
   different) to work well with WordPress 0.72. You can see it at work on my blog:
   
   [http://dinki.mine.nu/weblog/index.php?p=429&more=1&c=1](http://dinki.mine.nu/weblog/index.php?p=429&more=1&c=1)
   Test it out, make lots of comments, see what you think. I have made the instructions
   as simple and lucid as possible. If you have any questions, post on here or email
   me. You might have to tweak your CSS to suit yourself. I have tested the installation
   in both IE and Moz and it looks all right. 😛 Let me know what you think! Here
   is the [link to the hack](http://dinki.mine.nu/word/b2-img/wp_threaded_comments.zip)
   Peace

Viewing 15 replies - 1 through 15 (of 44 total)

1 [2](https://wordpress.org/support/topic/threaded-comments-hack-072/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/threaded-comments-hack-072/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/threaded-comments-hack-072/page/2/?output_format=md)

 *  [labellissima](https://wordpress.org/support/users/labellissima/)
 * (@labellissima)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28127)
 * I got it working for my online journal. Thanks so much for this hack! See it 
   in action:
    [http://bellissima-x.com/index.php?p=111&c=1#comments](http://bellissima-x.com/index.php?p=111&c=1#comments)
 *  Thread Starter [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28260)
 * Fixed a linking problem that I had left out. Should be part of the hack tutorial
   now.
 *  [bbommarito](https://wordpress.org/support/users/bbommarito/)
 * (@bbommarito)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28279)
 * Does anyone know if this hack will still work with the newest CVS version? I 
   think it’s at 1.0 Pre-Alpha 1 or something like that.
 *  [mtanner](https://wordpress.org/support/users/mtanner/)
 * (@mtanner)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28378)
 * I installed the hack but it doesn’t seem to be working. I get no error messages,
   but all my replays just show up as another post. Check the support forums seems
   to be no aswer to this problem. I’m using wordpres 0.72.
    [http://vain.info/index.php?p=4&c=1#comments](http://vain.info/index.php?p=4&c=1#comments)
 *  Thread Starter [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28386)
 * mtanner, it seems to work fine. In order for the comments to be threaded, your
   commenter has to reply to the comment above. I would make the “reply to this 
   comment” bold or a different color to make it stand out a little. Hope this helps.
 *  [mtanner](https://wordpress.org/support/users/mtanner/)
 * (@mtanner)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28398)
 * Thanks LaughingLizard
    Doh, I just figured out that I need to click on the “reply”
   link on the original comment. I’ll follow your advice and make that stand out
   more. My next question is… In my reply it says “This is a reply to #(the number
   of the comment)” is there a way to change that to the commenters name or the 
   post number?
 *  Anonymous
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28400)
 * Is this using a recursive formula, or the dual-index containment formula? Recursion
   can get quite nasty =\
 *  [mtanner](https://wordpress.org/support/users/mtanner/)
 * (@mtanner)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28401)
 * sorry [here](http://vain.info/code.html)
 *  [mtanner](https://wordpress.org/support/users/mtanner/)
 * (@mtanner)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28404)
 * This works [Beautifully](http://vain.info/index.php?p=4&c=1#comments), here’s
   to Promoting Peace and Brotherhood! Thanks
 *  [kodefendant](https://wordpress.org/support/users/kodefendant/)
 * (@kodefendant)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28431)
 * Yes, I love this hack. Question, how would I make a more prominent indent for
   the replies to each individual comment? As it is now, it’s rather slight.
 *  Thread Starter [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28467)
 * Look at the CSS modification towards the end of the tutorial. It reads:
    #commentswithin{
   min-width: 100px; margin-left: 10px; } Increase the margin-left to anything you
   think is fit. And thanks again for your positive feedback!
 *  [icer5k](https://wordpress.org/support/users/icer5k/)
 * (@icer5k)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28527)
 * I like the hack. 🙂
    However, I think the hack would have been better if the 
   following was implemented: – comments enclosed in box in alternating colors what
   i mean is kinda like what they have here at the wp forums. each comment is either
   the tint or the shade of the color that they have picked to be the background
   for each post. – comments are linked by a line instead of having comments indented
   right below each other, i think there should also be a line to connect comments
   to each other to show which comments were in reply to which.\ of course, these
   are just suggestions. thanks for the conversion.
 *  Thread Starter [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28529)
 * Look at my website. I have the alternating colors somewhat implemented. If you
   like it I could share the code changes. I have left it up to the person using
   this hack to make those changes
 *  Thread Starter [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28746)
 * This is what the b2 motor in my b2comments.php looks like.
    <ol id=”comments”
   > <?php $postAlternate = “odd”; ?> <?php // this line is WordPress’ motor, do
   not delete it. if ($comments) { foreach ($comments as $comment) { ?> <p id=”comment-
   <?php comment_ID() ?>”> <div class=”<?php echo $postAlternate; ?>”> “> <?php 
   comment_text() ?> <cite><?php comment_type(); ?> by <?php comment_author_link()?
   > <?php comment_date() ?> @ “><?php comment_time() ?>  [‘)” title=”reply to this comment” target=”_self”>**Reply to this comment**](https://wordpress.org/support/topic/threaded-comments-hack-072/?output_format=md#post_a_comment)
   </cite> <? global $comment; dodos_thread($comment->comment_ID); ?> </div> <?php
   if ($postAlternate==”even”) $postAlternate=”odd”; else $postAlternate=”even”;?
   > <?php } // end for each comment } else { // this is displayed if there are 
   no comments so far ?>
    - No comments yet.
    - <?php } ?>
 *  Anonymous
 * [22 years, 5 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/#post-28764)
 * HELP!!!!
    What the hell have I done wrong..? When I try to comment I get this
   error: SQL/DB Error — [Unknown column ‘comment_approved’ in ‘field list’] Warning:
   Cannot modify header information – headers already sent by (output started at/
   home/tankgreen/proliferations/b2-include/wp-db.php:96) in /home/tankgreen/proliferations/
   b2comments.post.php on line 125 Warning: Cannot modify header information – headers
   already sent by (output started at /home/tankgreen/proliferations/b2-include/
   wp-db.php:96) in /home/tankgreen/proliferations/b2comments.post.php on line 126
   Warning: Cannot modify header information – headers already sent by (output started
   at /home/tankgreen/proliferations/b2-include/wp-db.php:96) in /home/tankgreen/
   proliferations/b2comments.post.php on line 127 Warning: Cannot modify header 
   information – headers already sent by (output started at /home/tankgreen/proliferations/
   b2-include/wp-db.php:96) in /home/tankgreen/proliferations/b2comments.post.php
   on line 129 Warning: Cannot modify header information – headers already sent 
   by (output started at /home/tankgreen/proliferations/b2-include/wp-db.php:96)
   in /home/tankgreen/proliferations/b2comments.post.php on line 130 Warning: Cannot
   modify header information – headers already sent by (output started at /home/
   tankgreen/proliferations/b2-include/wp-db.php:96) in /home/tankgreen/proliferations/
   b2comments.post.php on line 131 Warning: Cannot modify header information – headers
   already sent by (output started at /home/tankgreen/proliferations/b2-include/
   wp-db.php:96) in /home/tankgreen/proliferations/b2comments.post.php on line 132
   Warning: Cannot modify header information – headers already sent by (output started
   at /home/tankgreen/proliferations/b2-include/wp-db.php:96) in /home/tankgreen/
   proliferations/b2comments.post.php on line 137 And then every comment ever made
   on my site appears on entries that do not have any real comments… Help! [http://proliferations.tankgreen.com](http://proliferations.tankgreen.com)

Viewing 15 replies - 1 through 15 (of 44 total)

1 [2](https://wordpress.org/support/topic/threaded-comments-hack-072/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/threaded-comments-hack-072/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/threaded-comments-hack-072/page/2/?output_format=md)

The topic ‘Threaded comments hack – 0.72’ is closed to new replies.

 * 44 replies
 * 14 participants
 * Last reply from: Anonymous
 * Last activity: [21 years, 7 months ago](https://wordpress.org/support/topic/threaded-comments-hack-072/page/3/#post-28958)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
