[WordPress] 外掛分享: Ajaxify Comments – Ajax and Lazy Loading Comments

首頁外掛目錄 › Ajaxify Comments – Ajax and Lazy Loading Comments
WordPress 外掛 Ajaxify Comments – Ajax and Lazy Loading Comments 的封面圖片
3,000+
安裝啟用
★★★★
4.8/5 分(91 則評價)
26 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.2+ v3.2 上架:2012-05-13

內容簡介

尋找新的外掛程式維護者 👀

請注意,此外掛程式已不再維護或支援,我們正在尋找新的外掛程式維護者(請參閱我們的公告 這裡)。

介紹

預設情況下,當使用者提交評論表單時,WordPress 會重新載入整個頁面。如果發生錯誤(例如無效的電子郵件地址或空的評論欄位),錯誤訊息會顯示在一個新的(空白)螢幕上,使用者必須使用瀏覽器的返回按鈕更正他的輸入,然後再重新發表評論。

WP Ajaxify Comments WordPress 外掛程式連接到任何 WordPress 主題中,並為評論表單添加 AJAX 功能:當使用者提交評論時,外掛程式不會重新載入整個頁面而是將數據發送到 WordPress 後端。如果發生錯誤,外掛程式會顯示一個覆蓋層,其中包含錯誤訊息,以便使用者在不需要返回的情況下更正評論。如果評論成功發表,外掛程式會將(新的)評論添加到現有評論列表中,而不需要離開頁面,並顯示信息疊加層。

此外,此外掛程式還包括一個選項,可以在使用者停留在您的頁面時自動刷新當前頁面上的評論,而不需要頁面重新載入。

tl;dr

WP Ajaxify Comments 連接到您的主題,通過驗證和添加評論,改善了評論表單的易用性,而無需再次載入頁面。

技術注意事項

由於外掛程式在客戶端 hook 到主題以攔截輸入的表單和添加新評論而避免重新載入頁面,因此外掛程式需要使用 jQuery 選擇器來訪問 DOM 節點。該外掛程式附帶了這些選擇器的默認值,已成功測試與 WordPress 的預設主題「Twenty Ten」,「Twenty Eleven」,「Twenty Twelve」,「Twenty Thirteen」,「Twenty Fourteen」,「Twenty Fifteen」,「Twenty Sixteen」相容。如果需要,可以在外掛程式的設置中自定義選擇器來符合您的主題。

重要提示

如果外掛程式在您的主題中無法正常運作,可以在外掛程式的設置中定義自定義選擇器。此外掛程式高度可自定義,我們只知道有一些與任何主題或其他外掛程式發生相衝突的問題無法解決(請參閱 FAQ 中的「已知不相容性」)。

此外掛程式的一些功能

積極開發且獲得支援
驗證和添加評論而不用重新載入頁面
幾乎與每個主題無縫集成(預設選項應該與大多數主題相容)
國際化支援(包括 ar、ca、da-DK、de-DE、es-ES、fa-IR、fr-FR、he-IL、hu-HU、nl-NL、pl-PL、pt-BR、ru-RU、sk-SK、tr-TR、uk、vi-VN、zh-CN 的本地化)
支援自定義(預設)WordPress 訊息
支援線程評論
支援等待審核的評論
支援帶有多個評論表單的頁面
與評論垃圾郵件保護外掛程式和其他擴展/操作評論表單的外掛程式相容
管理前端以自定義外觀
(自動)後備模式如果未正確配置外掛程式或檢測到任何不相容性,會使用完整的頁面重新載入
客戶端 JavaScript API(有關詳細信息,請參閱 FAQ)
使用者停留在頁面上時自動更新評論
如果頁面包含多個評論,則異步載入評論的選項可以節省頻寬

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Ajaxify Comments – Ajax and Lazy Loading Comments」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Skip page reloads and separate error screens when posting comments. Ajaxify Comments hooks into your native WordPress comment system and allows comment posting without a page reload. Lazy loading is also supported, which can help speed up your page load time.
TLDR
Getting Started | Sponsor Us | Ajaxify Home
Ajaxify Comments hooks into your theme and improves the usability of the comment form by validating and adding comments without the need of page reloads. Users can remain on the page and interact with new comments as they’re posted. This plugin also supports lazy loading of comments, which can help speed up your page load time.
Introduction
When submitting the comment form, WordPress by default reloads the entire page. This can be a disorienting experience for the user. In the case of errors in the comment (invalid email, duplicate comment, empty comment), these often require a separate error screen and the user has to use the back button to edit their comment. This can be a frustrating experience for the user. Adding to that, comments can be resource intensive, and can slow down your page load time.
With Ajaxify Comments, comments are posted without a page reload. If there are errors, the error message is shown immediately, so the user can correct their comment.
Ajaxify Comments also comes with lazy loading of the comments section. For a page with a lot of comments, this can speed things up considerably. You can load comments when the DOM is ready or when the comment section is scrolled into view.
Moreover this plugin includes an option to automatically refresh the comments on the current page while the user stays on your page without requiring a page reload. This can be helpful in busy comment sections where reply response time is important.
Quick Resource Links
Here are some helpful links to help you get started with Ajaxify Comments (docs):

Getting Started Guide
Lazy Loading Comments
Menu Helper and Selectors
Translating Using WPML

Requirements and Compatibility
Please use the native WordPress comment system with Ajaxify Comments.
The plugin has integrations with:

Confetti – Show confetti when a comment is posted.
Comment Edit Core – Allow users to edit their comments.
Comment Edit Pro – Add numerous utilities and automations to your comment section.

The following themes are supported out of the box:

Astra
Blocksy
Divi
Genesis
Ollie
GeneratePress
Neve
Twenty Ten – Twenty Twenty Three

Ajaxify Comments should be compatible with most block themes. If Menu Helper can’t find the selectors, please leave a support request.
Technical Note
Since the plugin hooks into the theme on client-side to intercept the comment form submit process, and to add new comments without reloading the page, the plugin needs to access the DOM nodes using jQuery selectors. The plugin comes with default values for these selectors that were successfully tested with WordPress’ default themes “Twenty Ten”, “Twenty Eleven”, “Twenty Twelve”, “Twenty Thirteen”, “Twenty Fourteen”, “Twenty Fifteen”, “Twenty Sixteen”. If required, the selectors can be customized to match your theme in the plugin’s settings.

Menu Helper is available to help you find the theme’s selectors.

Features
Ajaxify Comments is community supported. If you would like to add or change anything about the plugin, please consider assisting with the development on GitHub.

Post comments without a page reload.
Show error messages without a page reload.
Lazy load comments, compatible with most themes, including block theme and inline loading.
Automatically refresh comments.
Comment form validation.
Support for pages with multiple comment forms.
Support for threaded and moderated comments.
Compatible with most spam plugins.
Menu Helper to help you find the right selectors for your theme.
Appearance preview to see how the plugin will look on your site.
Simulate Ajaxify Comments enabled or disabled for testing and to compare the difference.
Translate and customize the default WordPress comment messages.

Questions/Help?
Please use the support forum to ask questions or to report issues.

Most questions can be resolved by checking out our docs site. https://docs.dlxplugins.com/v/ajaxify-comments – the Search is AI, so it should be able to find what you’re looking for.

Credits
This plugin was initially developed by Jan Jonas starting in 2012. Company weweave maintained the plugin from 2014-2022. The plugin is currently supported by Ronald Huereca of DLX Plugins.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon