I use
<?php wp_list_comments('avatar_size=50&type=comment&callback=mytheme_comment'); ?>
in my theme.
And here is what “mytheme_comment” look like
function mytheme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?><?php global $cmntCnt; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<div id="comment-<?php comment_ID(); ?>">
<div class="comment-author vcard">
<?php echo get_avatar($comment); ?>
<?php printf(__('<cite class="fn">%s</cite> <span class="says">dit :</span>'), get_comment_author_link()) ?>
</div>
<div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">(#<?php echo $cmntCnt+1; ?>) <?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','') ?></div>
<?php comment_text() ?>
<div class="reply">
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
</div>
</div>
<?php $cmntCnt = $cmntCnt + 1; ?>
<?php
}
Ok that was for more information about my code. I’ll try your trick right now and reply.
EDIT : Ok so, everything work for admin and user. I will now try to adapt it for my special role… fingers cross (highly doubt right now).
EDIT 2 : Ok, it works ! For those who need the same think here is what I did…
Simply name you css class with your capability name. (.by[name])
For exemple :
Capability name : vip
css class : .byvip {}
Thank you very much alchymyth !