OfficialComments Plugin error message
-
I’ve been trying to implement Brett Taylor’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 user #2, then use the “commentOfficialUser” class (which adds a different border — I want to keep the alternating background colors).
Unfortunately, I get a parse error about an unexpected “?” in the line and I’m lost as to why. I’ve searched and found 6-7 topics which relate to this subject, but either they are closed with the solution of “used Brett’s plugin” or they are unresolved after several months…
TIA,
gpence
The topic ‘OfficialComments Plugin error message’ is closed to new replies.