gpence
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Upgrade misdirection…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!
Forum: Installing WordPress
In reply to: Upgrade misdirection…Sorry — typo. It should read 2.9.2
Forum: Plugins
In reply to: OfficialComments Plugin error messageAs 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.
Forum: Fixing WordPress
In reply to: Customising CommentsI’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