i have a wordpress blog and want to give people the same user experience for adding comments that is in stackoverflow. There are a number of comments ajax plugins out there but i can’t find a working one that allows you to inline on the main page, go in and add comments without first drilling down into a seperate single post page.
Can anyone help here with either a wordpress plugin or php code to do this.
I was never able to get AJAXed WordPress to do what me (and apparently the questioner) want to do.
I use a custom solution that makes use of a plug-in called Inline Ajax Comments. I had a heck of a time finding a download link, but here’s one that still works: http://kashou.net/files/inline-ajax-comments.zip
In WordPress’ theme editor, I edit index.html. After the following:
I add (after enabling the plug-in of course):
I then edited the plugin PHP file itself. I commented out blocks of code as follows:
IIRC, that’s all I had to do, but let me know if that doesn’t work for you. I’m trying to reverse engineer my own solution since it seems to be exactly what you want to do as well.
I think AJAXed WordPress does what you’re looking for, among other things:
AJAXed WordPress
Demo is available here http://wordpress.mu/ and you can see the inline comments in action. Looks like what you were asking for.
You could repurpose code from P2 theme. It’s a rather well written theme so this should largely work without any problems. Copy all the code from their
functions.php
to the bottom of your theme’sfunctions.php
. Copy theirinc
directory andentry.php
to your theme directory.Replace in your
index.php
with
and then modify the css and other stuff in entry.php to taste.
You might want to try Ajax Comment Posting. It works for me.
You could use a
1. AJAX comments plugins (search for “Ajax comments” on wordpress)
2. Write your own custom code.
3. Use disqus.
Regardless of the option you choose from the above, you still need to expose comments on the main page. This can be done (based on the option you choose) by changing the index.php of your template, to display comments after displaying the text of every post. however, this will increase page load times, and also affect the design of your main page (plus linking to a specific page will not have much value anymore).
There are a lot of plugins doing that. Ajax Comment Posting is pretty simple to install and use. As they say:
http://wordpress.org/extend/plugins/ajax-comment-posting/
I recommend this http://wordpress.org/extend/plugins/ajax-comment-posting/ . I hope it helps.