This is from the comment-functions.php – I’m not sure if this is what you’re referring to oriecat, but I couldn’t find a file called “popup-comments template”:
function comments_popup_link($zero=’No Comments’, $one=’1 Comment’, $more=’% Comments’, $CSSclass=”, $none=’Comments Off’) {
global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post, $wpdb;
global $comment_count_cache;
if (! is_single() && ! is_page()) {
if (” == $comment_count_cache[“$id”]) {
$number = $wpdb->get_var(“SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved = ‘1’;”);
} else {
$number = $comment_count_cache[“$id”];
}
if (0 == $number && ‘closed’ == $post->comment_status && ‘closed’ == $post->ping_status) {
echo $none;
return;
} else {
if (!empty($post->post_password)) { // if there’s a password
if ($_COOKIE[‘wp-postpass_’.COOKIEHASH] != $post->post_password) { // and it doesn’t match the cookie
echo(‘Enter your password to view comments’);
return;
}
}
echo ‘<a href=”‘;
if ($wpcommentsjavascript) {
if ( empty($wpcommentspopupfile) )
$home = get_settings(‘home’);
else
$home = get_settings(‘siteurl’);
echo $home . ‘/’ . $wpcommentspopupfile.’?comments_popup=’.$id;
echo ‘” onclick=”wpopen(this.href); return false”‘;
} else {
// if comments_popup_script() is not in the template, display simple comment link
comments_link();
echo ‘”‘;
}
if (!empty($CSSclass)) {
echo ‘ class=”‘.$CSSclass.'”‘;
}
echo ‘>’;
comments_number($zero, $one, $more, $number);
echo ‘‘;
}
}
}
I’m a bit of a novice at this – I do maintain my own web site, but this coding is far more complicated that what I use for my site – so, I can’t really make heads or tails of it to see where I should be looking!
The “default” theme is installed for the most part – I’ve only kept the index.php, wp-config.php, wp-layout.css, and wp-comments.php from the previous version. Is it possible my old files are conflicting with the new “default” theme?
Thanks for any assistance you may be able to provide!