[wordpress插件] wordpressAjaxCommentswordpressAjax评论

wordpress 插件 文章 2020-02-14 10:00 482 0 全屏看文

AI助手支持GPT4.0

评分

20

20

描述

Have you ever been annoyed that there are no inline-error messages for the comments?

您是否曾经因为没有内联错误消息而感到烦恼?

That the errors are displayed on a different page completely out of context?

错误完全显示在上下文之外的其他页面上吗?

Here\’s the answer.

这是答案。

The comments are send via AJAX, errors that happen will be displayed inline in the form, you can style the error-messages yourself (if you want or have to) and it is even possible to add custom fields to the comment-form, provided

注释是通过AJAX发送的,发生的错误将在表单中内嵌显示,您可以自己设置错误消息的样式(如果需要或必须),甚至可以将自定义字段添加到注释表单中,

the validation for those extra fields is done via the Ajax-Comments callback.

这些额外字段的验证是通过Ajax-Comments回调完成的。

How is this plugin different from other Ajax-Comment-plugins?

此插件与其他Ajax-Comment-plugins有何不同?

This plugin uses a comletely rewritten backend and doesn\’t use the default wordpress-backend although it is based on that.

此插件使用完全重写的后端,尽管基于此插件,但不使用默认的wordpress-backend。

This plugin displays the errors directly at the field they happened at.

该插件直接在发生错误的地方显示错误。

Therefore the error-messages are right in the context of the fields.

因此,错误消息在字段的上下文中是正确的。

This plugin uses the AJAX-functionality brought to you with the core wordpress, so there are no third-party libraries necessary This plugin can handle custom fields in the form without a problem.

该插件使用了核心wordpress所带给您的AJAX功能,因此不需要第三方库。该插件可以毫无问题地处理表单中的自定义字段。

If you want to use the error-display-functions of the plugin you will have to use the wp_ajax_comment_validate_form-filter and for storing those metadata-fields you will need to implement the wp_ajax_comment_store_metadata-action.

如果要使用插件的错误显示功能,则必须使用wp_ajax_comment_validate_form-filter,并且为了存储这些元数据字段,您将需要实现wp_ajax_comment_store_metadata-action。

If you find any issues during the usage, feel free to create an issue on the issue tracker on github

如果您在使用过程中发现任何问题,请随时在github上的问题跟踪器上创建一个问题

安装步骤

No special instructions are required.

不需要特殊说明。

    • Search for the plugin in your wordpress-admin-backend
    • 在您的wordpress-admin-backend中搜索插件

    • Click on the install button
    • 单击安装按钮

    • Activate the plugin
    • 激活插件

    There is no configuration necessary!

    没有必要配置!

下载地址

https://downloads.wordpress.org/plugin/ajaxcomments.zip

https://downloads.wordpress.org/plugin/ajaxcomments.zip

-EOF-

AI助手支持GPT4.0