WordPress.org

Forums

WP Ajaxify Comments
[resolved] Conflict with Spam Plugin (8 posts)

  1. Geleosan
    Member
    Posted 2 years ago #

    Hello!

    Your plugin conflicts with the plugin Kama SpamBlock. I can add only first comment, but when I add a second comment, I get a message "You are a bot or java scripts does not work in your browser". Kama SpamBlock create this error because it blocks the automatic spam. But i am real user and scripts works fine. After reloading the page I can add a comment again, but only one.

    So if i use your plugin or Kama SpamBlock separately everything is okey. If you can help you can see Kama plugin in this link http://wp-kama.ru/wp-content/uploads/2010/07/kama_spamblock-v1.3.3.zip

    http://wordpress.org/extend/plugins/wp-ajaxify-comments/

  2. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    thanks for your comment. The problem is, that the Kama SpamBlock is not initialized properly after a comment was posted with AJAX.

    To fix this you can set the following JavaScript callbacks on the WP-Ajaxify-Comments settings page:

    Before select elements:
    if (!window['Kama_Nounce']) window['Kama_Nounce'] = document.getElementById('submit').onclick;

    After update comments:
    document.getElementById('submit').onclick = window['Kama_Nounce'];

    Please replace "submit" by the id of your submit button if your theme does not use the id "submit" (defined in the kama_spamblock.php in variable $sibmit_button_id)

    Hope this helps...

  3. Geleosan
    Member
    Posted 2 years ago #

    Great Thanx! It works!

  4. Geleosan
    Member
    Posted 2 years ago #

    Sorry, but i have problem again. Slider of my theme doesnot work on the home page, categories pages and tags page i.e on pages without comments. If i remove your callbacks, slider work fine.

    Maybe you now what do i need to correct in callbacks?

    And i have one sugestion. You are great programmer and you could make option "antispam" in your plugin like a Kama Spam Block or others but compatible with Ajax. I think many peaple need this option. Its more convinient than capcha.

  5. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    Could you please send me a link to the page where I can reproduce the problem?

    Thanks for the suggestion: I think, spam protection is a bit out of scope. There are other great plugins that can be used for spam protection. Maybe I will think about this point again when I've completed all other points on my wish list :)

  6. Geleosan
    Member
    Posted 2 years ago #

    You can see the problem on my home page http://life-trip.ru/

    And i noticed that i have problem not only with my slider. One of my widjet does not work too.

    So now i activate your plugin and you can see the problem on my home page, category page and tag page.

  7. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    Try to change "Before select elements" to
    if (!window['Kama_Nounce'] && document.getElementById('submit')) window['Kama_Nounce'] = document.getElementById('submit').onclick;

    Hope this helps.

  8. Geleosan
    Member
    Posted 2 years ago #

    Wow! You are magician! It works! Big big thanks for you help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Ajaxify Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.