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] BUGFIX - 3.4.1->3.4.6 - Comment form will not show up after first comment on


  #1  
Old Dec 28, 2009, 04:11 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
[SOLVED] BUGFIX - 3.4.1->3.4.6 - Comment form will not show up after first comment on

UPDATE: Note the WORDPRESS BUG code fix in post #14 you need this fixed and the comment.php in post #8
==================
Update: Grab the comment.zip in post#36 to fix this
==================

There is a bug in the comment code which causes the comment form not to show up after the first comment is made on a 'PAGE' page. To fix this bug do the following

Edit comment.php and find line 79-80 (versions 341/344) which should be
HTML Code:
<?php // If comments are open
if ('open' == $post->comment_status) : ?>
and replace them with the following
HTML Code:
<?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) )) : ?>
save the file to the host and you should be all set.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Feb 13, 2010 at 05:26 AM. Reason: fix issue with form showing when comment was closed
  #2  
Old Dec 28, 2009, 09:27 AM
Keikurono's Avatar
Keikurono
 
24 posts · Dec 2009
Colombia
Hi again Juggledad, thanks for the fix, works perfect... thanks again
  #3  
Old Dec 30, 2009, 01:06 AM
jhoff
 
3 posts · Dec 2009
works for me too! Thanks!

http://www.betsysbabyservices.com/
  #4  
Old Dec 30, 2009, 05:45 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I updated the fix so the form won't show when the comments are closed on the page - Thanks to Keikurono for spotting that!
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jan 25, 2010 at 02:56 PM.
  #5  
Old Dec 30, 2009, 07:34 AM
extremecarver
 
126 posts · Jul 2009
Well I don't know about the original fix. But the updated fix does not work for me. Form is only shown on pages without any posts. On other pages people can use "reply" but the comment form only shows for pages without any comment.
__________________
Don't settle for lousy expensive Maps - Get free Maps based on Openstreetmap with great autorouting for cyclists, hikers and Mountainbikers at http://openmtbmap.org
  #6  
Old Dec 30, 2009, 08:01 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I see I'd better go back to the drawing board and try
1) a page with no comments - comments open
2) a page with no comments - comments closed
3) a page with comments - comments open
4) a page with comments - comments closed
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Dec 29, 2009, 11:57 PM
Keikurono's Avatar
Keikurono
 
24 posts · Dec 2009
Colombia
Hidding comment form on specific pages

Hi, thanks again for the fix on the comments form but now i want to know if there is any way for hidding the form on some pages where commenting is not allowed (example > http://www.shito-anime.net/?page_id=2324)

even knowing the comments are closed, the form still appears, i want to hide it..

thanks....
  #8  
Old Feb 12, 2010, 04:03 PM
babak
 
1 posts · Feb 2010
Quote:
Originally Posted by juggledad
==================
Update: Grab the comment.zip in post#8 to fix this
==================

There is a bug in the comment code which causes the comment form not to show up after the first comment is made on a 'PAGE' page. To fix this bug do the following

Edit comment.php and find line 79-80 (versions 341/344) which should be
HTML Code:
<?php // If comments are open
if ('open' == $post->comment_status) : ?>
and replace them with the following
HTML Code:
<?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) )) : ?>
save the file to the host and you should be all set.
Hi,
I'm having the same problem.

I did replace the code in comment.php, but I'm still experiencing the same problem. Only one comment is accepted on pages.
  #9  
Old Feb 13, 2010, 05:24 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
NOTE: There are two parts to fix this problem

1) replace comment.php in the atahualpa folder with the attached file (unzip it first) and
2) fix the WordPress code described in post 14

comments.php.zip
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Apr 7, 2010, 01:57 AM
lmt's Avatar
lmt
 
29 posts · Jan 2010
Colorado
Quote:
Originally Posted by juggledad
NOTE: There are two parts to fix this problem

1) replace comment.php in the atahualpa folder with the attached file (unzip it first) and
2) fix the WordPress code described in post 14

Attachment 392
Hi Juggledad:

I am trying to fix this bug but having problems.

1. I cannot unzip the file because it says I do not have the program on my computer to open the attached file for comment.php What file can I download to unzip the comment.php file?

2. I am having problems finding the file you mentioned in post 14. Is it the same as the comment.php file or in the FTP files?
  #11  
Old Apr 7, 2010, 04:14 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
1) do a google search for 'unzip programs' and download one for your operating system

2) this is one of WordPress's files
Quote:
...edit comment-template.php (it's in the wp-includes folder) and find the function...
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Apr 18, 2010 at 06:58 PM.
  #12  
Old Apr 28, 2010, 03:53 AM
Grum
 
49 posts · Feb 2010
Scotland
Hi Juggledad;
Thanks for this bugfix. I managed to get it working yesterday after a bit of fiddling about, and I have now got multiple comments on single pages. That had been annoying me for a while.
However, I am finding that the 'highlight author comments in different colour' option in ATO > 'style and configure COMMENTS' doesn't seem to work on the single pages. I think it's still OK on the multi-post pages, but single-post comment replies all seem to be in the default comment colour, e.g. here.

I'm using WP 2.9.2 and Ata 3.4.6.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] BUGFIX - 343 - Comments show 'Leave a Comment' even when comments are clos juggledad Old Version fixes and change logs 1 Sep 29, 2009 07:07 PM
Comment form: how do I clear the data from name and email when the form is submitted? blueprairie Comments, trackbacks & pings 3 Sep 15, 2009 05:15 PM
Comment Form on Posts jackiejart Forum How-To 11 Jun 5, 2009 07:45 PM
Clicking "Leave a comment" does not lead to comment form Fux Comments, trackbacks & pings 2 May 4, 2009 11:34 PM
How do I show | Category: Introduction | Leave a comment | Edit this post on a Page? PerryM Post-Kicker, -Byline & -Footer 2 Apr 17, 2009 09:03 PM


All times are GMT -6. The time now is 12:54 AM.


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