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