WordPress.org

Ready to get started?Download WordPress

Forums

Customising Comments (7 posts)

  1. adeking
    Member
    Posted 7 years ago #

    Hi,

    I havent had much look with my last thread so let me re-phrase my question.

    Can anybody give me advice or point me in the direction of documentation telling me how to customise comments. I need to be able to change the required fields and the appearence depending on who is adding the comment.

  2. yosemite
    Member
    Posted 7 years ago #

    Found these under 'alternating': http://wordpress.org/tags/alternating

  3. adeking
    Member
    Posted 7 years ago #

    Hi,

    Thanks for these, they are useful. However this mainly looks at changing the comments so that every other comment has a particular colour.

    I want my blog to recognise that the user adding the comment is an administrator and apply a different css style to the comment box.

    Can anyone offer the php if statement that would be required to make this change?

    A good example of this is in Andreas blog where his posted comments differ in style from others.

    http://andreasviklund.com/

    Thanks

  4. yosemite
    Member
    Posted 7 years ago #

    I've seen some examples around here, didn't save a link though. Seem to remember a 'My Comments' plugin that allowed you to apply different css to 'your' comment...

    EDIT: Found the author of that one: Martin H´┐Żegh Mortensen

  5. adeking
    Member
    Posted 7 years ago #

    Hi,

    Thanks for that Yosemite, sorry for me being a pain, but I cannot speak any other languages and I cannot understand the blog you sent me.

    Sorry about that, do you know where I can simply click to download the plugin / widget?

    Thanks

  6. adeking
    Member
    Posted 7 years ago #

    Hi,

    Found this site which looks promising, cant test it yet, but will see tomorrow, thanks for your help.

    http://inner.geek.nz/archives/2005/01/12/wp-plugin-official-comments/

    ade

  7. gpence
    Member
    Posted 7 years ago #

    I've been trying to implement Brett's Official Comments plugin, but I've run into a problem with the PHP that I can't seem to troubleshoot. I've activated the plugin and added the class "commentOfficialUser" to the stylesheet, then I edited comments.php to include the following inside the loop:


    <?php if(is_wpuser_comment() != 2)
    echo "<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?> ">";
    else echo "<li class="<?php echo ' commentOfficialUser '; ?>" id="comment-<?php comment_ID() ?>">" ?>

    I'm trying to test if user #2 (me) is the user, if not then use the alternating backgrounds as normal, but if it is, use the "commentOfficialUser" class.

    Unfortunately, I get an error about an unexpected "?" in the line and I'm lost -- any ideas?

    Thanks,
    gpence

Topic Closed

This topic has been closed to new replies.

About this Topic