Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to make a cookbook style wordpress website, on which visitors can place comments inline. Like you do in a paper book with a pen: between the lines. Or like how MS Word handles comments.

Does anyone know a plugin that makes this possible? I've searched and searched, but all I found was this and it was of no use:

http://stackoverflow.com/questions/196993/wordpress-having-comments-inline-ajax-like-in-stackoverflow

I don't get it to work and the developers page is nothing more than a logo.

share|improve this question
The linked Q/A doesn't do what you want to have. – kaiser Mar 8 '12 at 15:35
After thinking a while about it: No, this is simply not possible. If you'd really try to do this, then it would add a major performance hit, as you'd have to count a lot, interact with single DOM elements, etc. IMHO you should leave this idea behind. +1 anyway for a nice "not in this world"-idea :) – kaiser Mar 8 '12 at 15:38
1  
Thanks Kaiser! I'm now thinking of doing it manually: Visitors can post normal comments and if they're worth sharing inline, the authors can copy the text and paste it in the post. My original idea can be simulated with a custom styled div for this copied text, that can be made with a customized tinyMCE button. – kslstn Mar 8 '12 at 16:24
Shortcode + comment ID would be a way to go. Aggree. – kaiser Mar 8 '12 at 16:26

1 Answer

It is possible, but I don’t know a plugin.

How it could be done (for the lazy web):

  • Add an id automatically to every paragraph, table, list or image.
  • Insert a small icon per Javascript after each element with an id to indicate that one can add comments. Maybe a counter for existing comments too.
  • On click move the comment form beneath the element to comment (like the native reply-script does it). Create a hidden custom comment field relates_to with the id as a value.
  • On submit save the custom field.
  • During the page output collect the comments for each element and place them wherever they should appear.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.