|
#1
Jan 23, 2010, 10:48 PM
|
|
[SOLVED] Random extra comment box on the bottom
HELP!!!
I've been trying to get comment boxes to appear on my pages (and not just the posts on my main page), and I found this thread: http://forum.bytesforall.com/showthread.php?t=5031
I copied and pasted that comment.zip that Juggledad provided, and it worked. The comment boxes appeared on my pages...
However....There are now TWO comment boxes, and all my comments appear TWO times for the posts on my home page! You can check it out at my blog here: http://www.burpandslurp.com/2010/01/...ayer/#comments
What is going on? How do I fix this? Please help!
|
#2
Jan 24, 2010, 06:07 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
I would suspect that you added something twice - rename the comment.php and put the original one back and see if the problem still occurs
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Jan 24, 2010, 04:37 PM
|
|
How do I rename the comment.php? And would that mean I would not have a comment box on my pages then?
|
#4
Jan 24, 2010, 04:48 PM
|
|
I've tried switching back to the original one, but it's still messed up! I don't know what happened! This is wht I have on my comment php right now:
<?php // Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) AND 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die (__('Please do not load this page directly. Thanks!','atahualpa'));
if ( post_password_required() ) {
_e('This post is password protected. Enter the password to view comments.','atahualpa');
return;
}
global $bfa_ata;
// You can start editing below:
?>
<?php // If there are any comments
if ( have_comments() ) : ?>
<a name="comments"></a><!-- named anchor for skip links -->
<h3 id="comments"><?php // Comment Area Title
comments_number(__('No comments yet to ', 'atahualpa'),
__('1 comment to ', 'atahualpa'), __('% comments to ', 'atahualpa'));
echo get_the_title(); ?></h3>
<?php bfa_next_previous_comments_links('Above'); ?>
<!-- Comment List -->
<ul class="commentlist">
<?php // Do this for every comment
if ($bfa_ata['separate_trackbacks'] == "Yes") {
wp_list_comments(array(
'avatar_size'=>$bfa_ata['avatar_size'],
'reply_text'=>__(' · Reply','atahualpa'),
'login_text'=>__('Log in to Reply','atahualpa'),
'callback' => bfa_comments,
'type' => 'comment'
));
wp_list_comments(array(
'avatar_size'=>$bfa_ata['avatar_size'],
'reply_text'=>__(' · Reply','atahualpa'),
'login_text'=>__('Log in to Reply','atahualpa'),
'callback' => bfa_comments,
'type' => 'pings'
));
} else {
wp_list_comments(array(
'avatar_size'=>$bfa_ata['avatar_size'],
'reply_text'=>__(' · Reply','atahualpa'),
'login_text'=>__('Log in to Reply','atahualpa'),
'callback' => bfa_comments,
'type' => 'all'
));
} ?>
</ul>
<!-- / Comment List -->
<?php bfa_next_previous_comments_links('Below'); ?>
<?php else : // If there are NO comments ?>
<?php // If comments are open
if ( ('open' == $post->comment_status)
OR ( is_page() and ('Yes' == $bfa_ata[comments_on_pages]) and ('open' == $post->comment_status) )) : ?>
<!-- .... -->
<?php else : // If comments are closed: ?>
<?php echo $bfa_ata['comments_are_closed_text']; ?>
<?php endif; ?>
<?php endif; // END of "If there are NO comments" ?>
<?php // If comments are open
if ('open' == $post->comment_status) : ?>
<?php // If Login is required and User is not logged in
if ( get_option('comment_registration') && !$user_ID ) : ?>
<p><?php printf(__('You must be %slogged in</a> to post a comment.', 'atahualpa'),
'<a href="' . get_option('siteurl') . '/wp-login.php?redirect_to=' .
urlencode(get_permalink()) . '">')?></p>
<?php else : // If Login is not required, or User is logged in ?>
<!-- Comment Form -->
<div id="respond">
<a name="commentform"></a><!-- named anchor for skip links -->
<h3 class="reply"><?php comment_form_title($noreplytext = __('Leave a Reply','atahualpa'),
$replytext = __('Leave a Reply to %s','atahualpa'), $linktoparent = TRUE); ?></h3>
<div id="cancel-comment-reply">
<?php cancel_comment_reply_link(__('Cancel','atahualpa') ); ?>
</div>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php"
method="post" id="commentform">
<?php // If User is logged in
if ( $user_ID ) : ?>
<p><?php printf(__('Logged in as %s.', 'atahualpa'), '<a href="' .
get_option('siteurl') . '/wp-admin/profile.php">' . $user_identity .
'</a>')?>
<a href="<?php echo wp_logout_url(get_permalink()); ?>" title="
<?php _e('Log out of this account','atahualpa'); ?>">
<?php _e('Logout »','atahualpa'); ?></a></p>
<?php // If User is not logged in: Display the form fields "Name", "Email", "URL"
else : ?>
<p>
<input class="text author" type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="30" tabindex="1" />
<label for="<?php _e('author','atahualpa'); ?>"> <strong>
<?php _e('Name ','atahualpa'); echo "</strong>";
if ($req) _e('(required)','atahualpa'); ?></label>
</p>
<p>
<input class="text email" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" />
<label for="<?php _e('email','atahualpa'); ?>"> <strong>
<?php _e('Mail</strong> (will not be published) ','atahualpa');
if ($req) _e('(required)','atahualpa'); ?></label>
</p>
<p>
<input class="text url" type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3" />
<label for="<?php _e('url','atahualpa'); ?>">
<?php _e('Website','atahualpa'); ?></label>
</p>
<?php endif; ?>
<?php // Display Quicktags or allowed XHTML Tags
if (function_exists('lmbbox_comment_quicktags_display ')) {
echo "<p>"; lmbbox_comment_quicktags_display(); echo "</p>";
} else {
if ($bfa_ata['show_xhtml_tags'] == "Yes") { ?>
<p class="thesetags clearfix">
<?php printf(__('You can use %1$sthese HTML tags</a>','atahualpa'),
'<a class="xhtmltags" href="#" onclick="return false;">'); ?></p>
<div class="xhtml-tags"><p><code><?php echo allowed_tags(); ?>
</code></p></div>
<?php }
} ?>
<!-- Comment Textarea -->
<p><textarea name="comment" id="comment" rows="10" cols="10" tabindex="4"></textarea></p>
<?php do_action('comment_form', $post->ID); ?>
<!-- Submit -->
<p><input name="submit" type="submit" class="button" id="submit"
tabindex="5" value="<?php _e('Submit Comment','atahualpa'); ?>" />
<?php comment_id_fields(); ?></p>
</form>
</div><!-- / respond -->
<!-- / Comment Form -->
<?php // End of: If Login is not required, or User is logged in
endif; ?>
<?php // End of: If comments are open
endif; ?>
|
#5
Jan 24, 2010, 08:14 PM
|
|
Please help?
|
#6
Jan 25, 2010, 04:13 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
what version of Atahualpa and WP?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#7
Jan 25, 2010, 01:05 PM
|
|
I have Atahualpa 3.4.4, and WP 2.9.1
|
|