I have created a totally custom commenting template page. Everything was working fine until we decided to add threading to posts. I obviously started in my discussion settings and turned threading on.
From there I went to my comments.php code seen below (a snippet from inside the comments foreach loop)
<div class="review hreview">
<h3 class="review"><?php global $title; echo $title; ?> Review by <span class="reviewer"><?php comment_author_link() ?></span>, <span class="dtreviewed"><?php comment_date('F j, Y') ?></span></h3>
<!-- start call for custom function ratings system -->
<?php comment_ratings_list(); ?>
<?php if (function_exists('get_average_comment_rating')) { ?> <span class="rating" style="display: none"><?php echo round(get_average_comment_rating(),1); ?></span> <?php } ?>
<!-- end call for custom function ratings system -->
<span class="summary"><?php comment_text() ?></span>
</div>
Now what I'd like to do is add a special class to this <div class="review hreview"> div if it's a threaded comment so I can indent it.
Second I'd like to add a reply button which I thought would be simple enough.
I added
comment_reply_link(array_merge( $args, array('reply_text' => 'Reply', 'add_below' =>
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'])));
but I get an error saying that the first argument in the array_merge function isn't an array. I haven't declare $args anywhere and I'm not sure what it's value should be. I tried calling it with no arguments but I get nothing at all instead of an error.
I can't use wp_list_comments because I need to insert the custom function calls and I don't want to have to rewrite all the css for the comments.
Please Help!