[wp-hackers] Threaded Comments

Mark Jaquith mark.wordpress at txfx.net
Wed Oct 27 04:43:32 UTC 2004


Mark Shields wrote:

>It would be nice to have it as a plugin rather than a plugin+hack as
>it currently is.  I've tried several times to get it working with 1.3
>and it doesn't work.  The plugin itself functions fine (no errors
>anyways), but when I replace the wp-comments.php and
>wp-comments-post.php files it displays nothing for the comments, not
>even a place to enter them.  It would be better for it to be built-in,
>but allow it to be disabled (maybe even disabled by default).
>
I'm fairly certain that it can be done with a plugin + replacement 
wp-comments.php file.  Now that we can hook in to comment_post in 
wp-comments-post.php, that portion can be handled with a plugin.  Check 
for the "parent comment" value, and if set, update the comment in the DB 
with that info.  Then the new wp-comments.php file can take care of 
making sense of the parent > child relationships and display the 
comments accordingly.



More information about the hackers mailing list