Hello,
I start using Thematic and everyday realise it is a really powerful framework ! I love it.
But sometimes it gets too complex for my php level, that's why I need your help to get the comments list to display the comment number. I saw a post here on the forum about threaded comments to be numbered, but it uses a plugin and above all, it's not what I'm looking for. I know it has to deal with the thematic_comments function, something like this may work but I'm a php novice so a little help ? :)
<!-- function wprv_comments($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
$GLOBALS['comment_depth'] = $depth;
?>
<?php $i =1; ?>
<?php foreach ($comments as $comment) : ?>
<li id="comment-<?php comment_ID() ?>" class="<?php thematic_comment_class() ?>">
<div class="comment-number"><?php echo $i; ?></div>
<div class="comment-author vcard"><?php thematic_commenter_link() ?></div>
<div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'thematic'),
get_comment_date(),
get_comment_time(),
'#comment-' . get_comment_ID() );
edit_comment_link(__('Edit', 'thematic'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div>
<?php if ($comment->comment_approved == '0') _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'thematic') ?>
<div class="comment-content">
<?php comment_text() ?>
</div>
<?php // echo the comment reply link with help from Justin Tadlock http://justintadlock.com/ and Will Norris http://willnorris.com/
if($args['type'] == 'all' || get_comment_type() == 'comment') :
comment_reply_link(array_merge($args, array(
'reply_text' => __('Reply','thematic'),
'login_text' => __('Log in to reply.','thematic'),
'depth' => $depth,
'before' => '<div class="comment-reply-link">',
'after' => '</div>'
)));
endif;
?>
<?php $i++; ?>
<?php endforeach; ?>
<?php }
function my_callback() {
$content = 'type=comment&callback=wprv_comments';
return $content;
}
add_filter('list_comments_arg', 'my_callback');-->
Cheers !
P.