Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize FAQ entry about AJAX comment plugins #390

Closed
Zodiac1978 opened this issue May 14, 2021 · 5 comments · Fixed by #424
Closed

Optimize FAQ entry about AJAX comment plugins #390

Zodiac1978 opened this issue May 14, 2021 · 5 comments · Fixed by #424
Assignees

Comments

@Zodiac1978
Copy link
Member

In our FAQ we write:

It also won’t work with any AJAX-powered comment forms.

After the merge of #355 we should tackle #376 and also we should update the FAQ to reflect this change.

@Zodiac1978
Copy link
Member Author

We could link to my post, but it is just available in German:
https://torstenlandsiedel.de/2020/10/04/ajaxifizierte-kommentare-und-antispam-bee/

@florianbrinkmann florianbrinkmann self-assigned this Aug 5, 2021
@Zodiac1978
Copy link
Member Author

@florianbrinkmann
Copy link
Member

  • Add own FAQ entry about the AJAX topic

@Zodiac1978
Copy link
Member Author

Zodiac1978 commented Dec 14, 2021

Status Quo:

Does Antispam Bee work with Jetpack, Disqus Comments and other comment plugins?

Antispam Bee works best with default WordPress comments. It is not compatible with Jetpack or Disqus Comments as those plugins load the comment form within an iframe. Thus Antispam Bee can not access the comment form directly.
It also won’t work with any AJAX-powered comment forms.

Suggestion:

Does Antispam Bee work with Jetpack, wpDiscuz, Disqus Comments and similar comment plugins?

Antispam Bee works best with default WordPress comments. It is not compatible with Jetpack, wpDiscuz or Disqus Comments as those plugins load a new comment form within an iframe. Thus Antispam Bee can not access the comment form directly.

Does Antispam Bee work with AJAX comment plugins or similar theme features?

Whether Antispam Bee works with a comment form submitted via AJAX depends on how the AJAX request is made. If the request goes to the file that usually also receives the comments, Antispam Bee could work with it out of the box (the WP Ajaxify Comments plugin does this, for example).

If the comments are sent to the admin-ajax.php, the antispam_bee_disallow_ajax_calls filter must be used to run ASB for requests to that file as well. If the script does not send all form data to the file, but only some selected ones, further customization is probably necessary, as exemplified in this post by Torsten Landsiedel (in German).

@florianbrinkmann
Copy link
Member

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants