Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter gpence

    (@gpence)

    Ummm, I missed the obvious there, didn’t I?

    Thanks, samboll — worked like a charm. Apparently 2.9.2 doesn’t like my old theme, but it is working now!

    Thanks!

    Thread Starter gpence

    (@gpence)

    Sorry — typo. It should read 2.9.2

    Thread Starter gpence

    (@gpence)

    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.

    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

Viewing 4 replies - 1 through 4 (of 4 total)