user_id); $author_level = $authordata->user_level; // Check to see if the commenter is the post author if ($comment->user_id == $post->post_author) { // Commenter is the Post Author $comment_class = 'commentPostAuthor'; } else { // Based on their author level, set the $comment_class switch($author_level) { case 10: // User is the admin $comment_class = 'commentOfficialUser'; break; case 1: case 2: // User is a contributer $comment_class = 'commentContrib'; break; case 7: // User is an editor $comment_class = 'commentEditor'; break; default: $comment_class = ''; } } ?>