Viewing 7 replies - 1 through 7 (of 7 total)
  • 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…

    Thread Starter Geleosan

    (@geleosan)

    Great Thanx! It works!

    Thread Starter Geleosan

    (@geleosan)

    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.

    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 🙂

    Thread Starter Geleosan

    (@geleosan)

    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.

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

    Hope this helps.

    Thread Starter Geleosan

    (@geleosan)

    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.