Title: OfficialComments Plugin error message
Last modified: August 18, 2016

---

# OfficialComments Plugin error message

 *  [gpence](https://wordpress.org/support/users/gpence/)
 * (@gpence)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/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

Viewing 1 replies (of 1 total)

 *  Thread Starter [gpence](https://wordpress.org/support/users/gpence/)
 * (@gpence)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/officialcomments-plugin-error-message/#post-476665)
 * As a follow-up, Brett wrote the following to me:
 * > You’ve got
   > 
   >  <?php ... <?php ... ?> .. ?>
   > which is invalid.
   > You’ll want:
   > 
   >  <?php if(is_wpuser_comment() != 2) { ?> <li class="<?php echo $oddcomment;?
   > >" id="comment-<?php comment_ID() ?>"> <?php } else { ?> <li class="<?php echo'
   > commentOfficialUser'; ?>" id="comment-<?php comment_ID() ?>"> <?php } ?>
   > Hope that helps.

Viewing 1 replies (of 1 total)

The topic ‘OfficialComments Plugin error message’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 1 participant
 * Last reply from: [gpence](https://wordpress.org/support/users/gpence/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/officialcomments-plugin-error-message/#post-476665)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
