Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

[SOLVED] Random extra comment box on the bottom


  #1  
Old Jan 23, 2010, 10:48 PM
burp_excuzme
 
9 posts · Jan 2010
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  
Old Jan 24, 2010, 06:07 AM
juggledad's Avatar
juggledad
 
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  
Old Jan 24, 2010, 04:37 PM
burp_excuzme
 
9 posts · Jan 2010
How do I rename the comment.php? And would that mean I would not have a comment box on my pages then?
  #4  
Old Jan 24, 2010, 04:48 PM
burp_excuzme
 
9 posts · Jan 2010
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'=>__(' &middot; 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'=>__(' &middot; 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'=>__(' &middot; 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 &raquo;','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" />&nbsp;
<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" />&nbsp;
<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" />&nbsp;
<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  
Old Jan 24, 2010, 08:14 PM
burp_excuzme
 
9 posts · Jan 2010
Please help?
  #6  
Old Jan 25, 2010, 04:13 AM
juggledad's Avatar
juggledad
 
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  
Old Jan 25, 2010, 01:05 PM
burp_excuzme
 
9 posts · Jan 2010
I have Atahualpa 3.4.4, and WP 2.9.1
  #8  
Old Jan 25, 2010, 03:00 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
please download and the comment.php in post#8 of http://forum.bytesforall.com/showthread.php?t=5031 and see what happens
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Jan 25, 2010, 03:29 PM
burp_excuzme
 
9 posts · Jan 2010
I'm sorry, it's still the same! I don't understand what happened. Even when I try to fix it back to the original one, the comment system is messed up. And in the editor section of themes, is there supposed to be another comment php called legacy.comments.php?

Is it possible for you to take a look at my editor section?
  #10  
Old Jan 25, 2010, 03:58 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
send me a PM with an admin ID and password
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old Jan 25, 2010, 05:06 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Well taking a quick look, it seems you have made other changes to the base code. bfa-post_parts.php has also been changed. Since you don't know what you did, I would suggest that you copy what is in teh atahualpa folder to a folder on your computer, then upload a fresh copy of atahualpa. You could then compare teh code to figure out what (and why) you changed things.

p.s. don't forget to go and change your admin password
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #12  
Old Jan 25, 2010, 06:11 PM
burp_excuzme
 
9 posts · Jan 2010
Thank you.
But how do I copy the one I have now into a folder? And how do I upload a new one?
  #13  
Old Jan 25, 2010, 06:14 PM
burp_excuzme
 
9 posts · Jan 2010
Also, how do I know which ones to change? Do you suggest any other particular base codes?
  #14  
Old Jan 25, 2010, 06:25 PM
burp_excuzme
 
9 posts · Jan 2010
Sorry for dominating this thread.
But I FIXED IT!!! I figured it out: the main index was messed up. Funny, because I never even touched it. I think maybe when I changed my comment.php, it automatically did something to my index php too. But it's strange that this didn't happen to other people.

Anyway, thank you very much! :D
  #15  
Old Jan 26, 2010, 03:20 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you must have changed it at some point. Editing one file doesn't cause a change to a second file. If that ever happens, we are all in BIG trouble.

Moral: If you change teh code, DOCUMENT, DOCUMENT, DOCUMENT. I don't know about you, but I but my wife will tell me to do something and 20 minutes later I can't remember it
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
comments, comments.php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comment box color mania Comments, trackbacks & pings 1 Jan 18, 2010 09:14 AM
How to place the comment Box on top !!! GoanTunes Atahualpa 3 Wordpress theme 0 Oct 31, 2009 10:20 AM
[SOLVED] How can I have a comment box on the homepage? JFG Comments, trackbacks & pings 2 Oct 8, 2009 07:03 AM
Comment box in Pages Zero Page & Category Menu Bars 0 Aug 1, 2009 02:57 PM
[SOLVED] Rounded corners at the bottom of the headline box? wildangelone Post-Kicker, -Byline & -Footer 2 Jul 26, 2009 09:25 AM


All times are GMT -6. The time now is 12:23 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.