Support » Plugin: WP Ajaxify Comments » Conflict with Spam Plugin

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author janjonas



    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…

    Great Thanx! It works!

    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.

    Plugin Author janjonas


    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 🙂

    You can see the problem on my home page

    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.

    Plugin Author janjonas


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

    Hope this helps.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Conflict with Spam Plugin’ is closed to new replies.