p2 theme does not send all input from comment form via ajax request
-
I am the developer of Anti-spam plugin.
Anti-spam plugin works like this:
Two extra hidden fields are added to comments form. Both them should be send and checked on the server. If the user visits site, than the hidden fields are filled automatically with javascript insted of the user. If the spammer tries to submit comment form, he will make a mistake with filling inputs and spam comment will be automatically rejected.
p2 theme submits comments via ajax and scripts sends only name, email, url, comments etc. But p2 script does not sends new added inputs to comment form via another plugins.
I checked the code and founded it in ‘js/p2.js’ file:
var dataString = {action: 'new_comment' , _ajax_post: nonce, comment: commenttext, comment_parent: comment_parent, comment_post_ID: comment_post_ID, subscribe: subscribe, subscribe_blog: subscribe_blog}; if (!isUserLoggedIn) { dataString['author'] = $('#author').val(); dataString['email'] = $('#email').val(); dataString['url'] = $('#url').val(); }
What can be done to make p2 theme work with Anti-spam and other plugins related to commenting?
- The topic ‘p2 theme does not send all input from comment form via ajax request’ is closed to new replies.