Well that still didn’t work. Here is the code:
Comments.php
<?php
// Do not delete these lines
if (!empty($_SERVER[‘SCRIPT_FILENAME’]) && ‘comments.php’ == basename($_SERVER[‘SCRIPT_FILENAME’]))
die (‘Please do not load this page directly. Thanks!’);
if ( post_password_required() ) { ?>
<p class=”nocomments”>This post is password protected. Enter the password to view comments.</p>
<?php return; } ?>
<!– Begin WP 2.7+ Comment Loop –>
<div id=”blog_comm”>
<?php if ( have_comments() ) : ?>
<?php if ( ! empty($comments_by_type[‘comment’]) ) : ?>
<h2 class=”top”><?php comments_number(‘No Comments’, ‘One Comment’, ‘% Comments’ );?></h2>
<ol class=”commentlist”>
<?php wp_list_comments(‘type=comment&avatar_size=80&callback=mytheme_comment’); ?>
<?php endif; ?>
<?php if ( ! empty($comments_by_type[‘pings’]) ) : ?>
<h2>Trackbacks/Pingbacks</h2>
<ol class=”commentlist”>
<?php wp_list_comments(‘type=pings’); ?>
<?php endif; ?>
<div class=”navigation”>
<div class=”alignleft”><?php previous_comments_link() ?></div>
<div class=”alignright”><?php next_comments_link() ?></div>
</div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if (‘open’ == $post->comment_status) : ?>
<!– If comments are open, but there are no comments. –>
<?php else : // comments are closed ?>
<!– If comments are closed. –>
<p class=”nocomments”>Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<!– End WP 2.7+ Comment Loop –>
<?php if ( comments_open() ) : ?>
<div id=”respond”>
<div id=”cancel-comment-reply”>
<?php cancel_comment_reply_link(‘Cancel Comment’) ?>
</div>
<h2><?php comment_form_title( ‘Leave a Comment’ ); ?></h2>
<?php if ( get_option(‘comment_registration’) && !$user_ID ) : ?>
<p>You must be /wp-login.php?redirect_to=<?php the_permalink(); ?>”>logged in to post a comment.</p>
<?php else : ?>
<form action=”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post” class=”commentform”>
<?php comment_id_fields(); ?>
<?php if ( $user_ID ) : ?>
<p>Logged in as /wp-admin/profile.php”><?php echo $user_identity; ?>. /wp-login.php?action=logout” title=”<?php _e(‘Log out of this account’) ?>”>Logout »</p>
<?php else : ?>
<label>Name <?php if ($req) echo “(required)”; ?>:</label>
<input type=”text” name=”author” id=”author” class=”text” value=”<?php echo $comment_author; ?>” size=”60″ tabindex=”1″ <?php if ($req) echo “aria-required=’true'”; ?> />
<label>Email <?php if ($req) echo “(required)”; ?>:</label>
<input type=”text” class=”text” name=”email” id=”email” value=”<?php echo $comment_author_email; ?>” size=”60″ tabindex=”2″ <?php if ($req) echo “aria-required=’true'”; ?> />
<label>Website:</label>
<input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url; ?>” size=”60″ />
<?php endif; ?>
<label>Comments (required):</label>
<textarea name=”comment” id=”comment” rows=”5″ cols=”60″></textarea>
<p class=”center”><input name=”submit” type=”submit” class=”submit” tabindex=”5″ value=”Submit Comment” />
<input type=”hidden” value=”<?php echo $id; ?>” /></p>
<?php do_action(‘comment_form’, $post->ID); ?>
</form>
</div>
<?php endif; // If registration required and not logged in ?>
<?php else : // Comments are closed ?>
<p><?php _e(‘Sorry, the comment form is closed at this time.’); ?></p>
<?php endif; ?>
</div>
Functions.php:
<?php function mytheme_comment($comment, $args, $depth) { $GLOBALS[‘comment’] = $comment; ?>
<li <?php comment_class(); ?> id=”li-comment-<?php comment_ID() ?>”>
<div id=”comment-<?php comment_ID(); ?>”>
<?php if ($comment->comment_approved == ‘0’) : ?>
<?php _e(‘Your comment is awaiting moderation.’) ?>
<?php endif; ?>
<div class=”comm_text”>
<div class=”gravatar”>
<?php echo get_avatar($comment,$size=’80’); ?>
</div>
<div class=”reply”>
<?php comment_reply_link(array_merge( $args, array(‘depth’ => $depth, ‘max_depth’ => $args[‘max_depth’]))) ?>
</div>
<?php printf(__(‘<h5>%1$s wrote on %2$s:</h5>’), get_comment_author_link(), get_comment_date()) ?>
<p><?php comment_text() ?></p>
<?php printf(__(‘<p>Posted at %s</p>’), get_comment_time()) ?>
</div>
</div>
<?php } ?>