Accessoires WP utiles

http://inner.geek.nz/archives/2005/02/11/wordpress-plugin-smart-unread-comments/

Download Smart Unread Comments, extract and upload wbft-smart-unread-comments.php to your wp-content/plugins directory. Log-in to your WP admin panel, go to the Plugins tab and activate the Smart Unread Comments plugin.

In your template (sidebar), add this code:
<ul>< ?php echo get_smart_unread_comments(); ?></ul>

get_smart_unread_comments() also takes options:

$limit   Default: 5.  Maximum posts with unread comments to display.

$output_when_no_unread_comments  Default: TRUE
If true, when there are no unread comments, it will output a <li class="wbftSUC_NoComments" > item containing $no_unread_comments_text</li>

$output_when_more_unread_comments_than_limit  Default: TRUE
If true, when there are more than $limit unread comments, it will output a <li class= »wbftSUC_MoreComments » > item containing $more_unread_comments_text

$mark_comments_as_read_text
Default: “Mark all comments as read”  String used in link Mark all Comments as Read link.

$no_unread_comments_text
Default: “There are no unread comments”  String used when there no unread comments and $output_when_no_unread_comments is TRUE

$more_unread_comments_text
Default: “There are %d more unread comments…” String used when there are more than $limit unread comments and $output_when_more_unread_comments_than_limit is TRUE
%d will be replaced with a count of how many more comments there are to view.</li>

* class=’wbftSUC_MarkAsRead’    Used on the Mark Comments as Unread link
* class=’wbftSUC_Recent’    Used on comments less than 6 hours old
* class=’wbftSUC_MoreComments’    Used on More Unread Comments list item
* class=’wbftSUC_NoComments’    Used on No Unread Comments list item