Search 
Search Forums:


 




How to make an inline comment form appear automatically after inline comments?

Reply to Post
UserPost

5:28 am
September 25, 2008


RidleyGriff

Guest

Hey there — really obvious newbie question here, but I’m just getting started with WordPress and AWP so all patience is appreciated…

On the blog I’m putting together, I would like to have my Main index page function so that when I click “5 comments” (the text that awp_comments_link generates) to reveal the comments inline, the comments are automatically followed by a comment form. I don’t want to have the comment form visible until the Comments themselves are visible, so “Have Add Comment Box open by default on index page?” doesn’t get me there.

Following the ReadMe instructions, I’ve been able to add both the Show Comments and Add Comment links and have them load up the respective elements, but it requires two clicks to display both elements, and having to scroll all the way up to the top of the comment thread to activate the Comment Form is a little counterintuitive. Is there a way to change my index,php file so that clicking the %count link can activate both inline comments and a comment form simultaneously?

Thank you in advance — am really impressed with all the increased functionality!

11:24 am
September 25, 2008


Aaron

Admin

posts 245

Is there a way to change my index,php file so that clicking the %count link can activate both inline comments and a comment form simultaneously?

No, but this feature has been requested many times, so I’ll be adding it in the future.

12:32 pm
October 14, 2008


BusyMom

Guest

I came up with a hack that is working for me, use at your own risk…

In your awpcomments.php at the bottom after all the comment code has processed, add the following, but change class to your appropriate name

  1. <?php do_action(awp_commentform); ?>
  2. <div id="postCommentFormWhenCommentsDisplayed">
  3. <?php do_action(awp_commentform_link); ?>
  4. </div>

The reason I threw the div in where I did is because I wanted to be able to differentiate the look of the comment form when the comments are open vs. how I wanted it to look when I am adding a comment form from the main post. Just a reminder to use at your own risk!! Always remember to back up your original before trying a hack!

Karen

Reply to Post


Reply to Topic: How to make an inline comment form appear automatically after inline comments?

Name (Required):

EMail (Required):

Website):

Guest URL (required)

Math Required!
What is the sum of: 9 + 7        (Required)

Topic Reply:


 

About the Anthology of Ideas forum

Currently Online:

5 Guests

Maximum Online: 33

Forums:

Groups: 2

Forums: 6

Topics: 214

Posts: 673

Members:

There are 1 members

There are 201 guests

Aaron has made 245 posts

Top Posters:

Administrator: Aaron