• xerocool

    (@xerocool)


    When admins post comments, I want the color of their name to be bold red and the members to be diffcult. How would I do that? Is there a plugin for this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • satoshi

    (@satoshi)

    If you have the PHP knowledge, do a simple if else. Here’s one I whipped up quite some time ago for just this purpose:
    <?php
    $isByAuthor = false;
    if($comment->comment_author_email == '[email protected]') { /* INSERT EMAIL IN USE BY OWNER OF SITE */
    $isByAuthor = true;
    }
    ?>

    and then, I have the following:

    -<?php comment_author_link() ?> @ <?php comment_time() ?>, <?php comment_date('m/d/y') ?><?php if($isByAuthor) { ?> <span class="authorcmt">Blog Author</span> <?php } else { ?> <?php } ?>

    Everything is normal up until the if $isByAuthor. If that variable is set, it’ll display the text “Blog Author” that is then styled by the CSS class “authorcmt.” This all goes in the comments template, modify as needed.

    Thread Starter xerocool

    (@xerocool)

    ty

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘REQ: Admin = Red..’ is closed to new replies.