post_author); get_currentuserinfo(); if ( ($comment->comment_author_email) AND (get_comment_type() == 'comment') ) { if ( $comment->comment_author_email == $authordata->user_email ) //highlight author echo 'class="author-comment"'; elseif ( $comment->comment_author_email == $user_email ) //highlight user if not author echo 'class="user-comment"'; elseif ( $comment->comment_author_email == $comment_author_email ) //highlight commenter if not user echo 'class="user-comment"'; } if (get_comment_type() != 'comment') echo 'class="ping-comment"'; if (get_comment_type() == 'comment') echo 'class="user-comment"'; } /* this statistics function is based on Statistics Plugin For WordPress [http://www.lesterchan.net/] */ ### Function: Get Total Posts function get_totalposts() { global $wpdb; $totalposts = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->posts WHERE post_status = 'publish'"); echo $totalposts; } ### Function: Get Total Comments function get_totalcomments() { global $wpdb; $totalcomments = $wpdb->get_var("SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_approved = '1'"); echo $totalcomments; } ### Function: Get Total Comments Poster function get_totalcommentposters() { global $wpdb; $totalcommentposters = $wpdb->get_var("SELECT COUNT(DISTINCT comment_author) FROM $wpdb->comments WHERE comment_approved = '1'"); echo $totalcommentposters; } ?>