• 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
    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
    Peace

Viewing 15 replies - 1 through 15 (of 44 total)
  • 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

    Thread Starter Laughinglizard

    (@laughinglizard)

    Fixed a linking problem that I had left out. Should be part of the hack tutorial now.

    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.

    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

    Thread Starter Laughinglizard

    (@laughinglizard)

    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.

    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?

    Is this using a recursive formula, or the dual-index containment formula? Recursion can get quite nasty =\

    sorry here

    This works Beautifully, here’s to Promoting Peace and Brotherhood! Thanks

    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

    (@laughinglizard)

    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!

    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

    (@laughinglizard)

    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

    (@laughinglizard)

    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
    </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 } ?>

    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

Viewing 15 replies - 1 through 15 (of 44 total)
  • The topic ‘Threaded comments hack – 0.72’ is closed to new replies.