{$commentid=$comment.comment_id} {* Getting Comment Author *} {$author=comment_author($comment)} {* Marking it as spammed if either logged in user has marked it spam or its spam count is > then the limit *} {$is_comment_spam=is_comment_spam($comment)} {$is_spammed='no'} {if $is_comment_spam.user_spam || $is_comment_spam.global_spam} {$is_spammed='yes'} {/if}