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
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
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
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
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