Customising wp-comments-post.php
It could be due to my ignorance but I find odd that WordPress templates rarely offer a customised way to show the comment’s output when the users forget to fill a field (or they fill it wrongly). Usually, they simply call wp-comments-post.php that shows quite a poor output.
I’ve tried to go over this problem with a patch for Sandbox that is basically a reshuffle of wp-comments-post.php (with a custom wp_die()).
Here you can download this patch.
wordpress latest version has a brillient comment board
The ouput of wp-comments-post.php is still the same, though.
good article
thanks
I agree that wordpress has rather strong comments-background, and there’re also lots of widgets for customizing.
I’m sorry but you missed the point. The problem is not about the layout of the comments (or the widgets), the problem is the output when you submit a comment with its fields wrongly filled!
This is really quick.
Maybe take a look at the PHP source available for example here
Best regards
You didn’t read the post, did you?
This article helped a great deal to me. ))
Hello,
How do I apply this patch? I just overwrite the wp-comments-post file? I kind of need to add a custom value to the comment form to fight spam.
Thanks,
Marco
Hi,
this patch is not designed to fight spam… there are better solutions, like plugins.
To answer your question, you can apply it using patch (unix command) but I suppose the patch is old…
See http://jungels.net/articles/diff-patch-ten-minutes.html for a guide about using diff and patch
Thanks Carlo,
What I managed to do is just close topics that are old. I might get a plug in. Sometimes I get flooded. I wanted to make a question like, what color is a tomato, what color is the sky, etc but I can’t edit the results of wp-comments once the form has been submitted.
Cheers and grazie per la risposta?
Hi,
try this
http://en.support.wordpress.com/enable-disable-comments/#automatically-closing-comments-on-old-posts
Just a thought, I have not tried this out, but what you could try is using the same codes of your index.php theme (not website), example: & so on, the same way your templates do except leave the inside part blank & put your codes there, off the top of my head that can give you customization options you are looking for within wp-comments.. As always, don’t forget to backup in case this does not work.. Hope it helps.
sorry it edited my codes {get_header():, get_footer} & so on,
Thanks Carlo,
What I managed to do is just close topics that are old. I might get a plug in. Sometimes I get flooded. I wanted to make a question like, what color is a tomato, what color is the sky, etc but I can’t edit the results of wp-comments once the form has been submitted.