前言介紹
- 這款 WordPress 外掛「Limit Comments and Word Count」是 2018-07-03 上架。
- 目前有 30 個安裝啟用數。
- 上一次更新是 2025-03-02,距離現在已有 63 天。
- 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4.33 以上。
- 有 9 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
steveneray | artiosmedia | arafatrahmanbd |
外掛標籤
word limits | comment limits | comments per user | comment word limit | user comment limit |
內容簡介
這個外掛會在評論框上方添加一個活動字母計數器、單詞計數器和評論計數器,提供使用者即時的輸入活動視覺存取。任何超過單詞限制的評論,當使用者嘗試輸入更多文字時,字數計數器會變成紅色的「Change it」計數器。如果使用者還是試圖發佈,一個警告對話框會出現在評論框下方,顯示限制並且評論不會發佈。一旦使用者編輯了超過限制的文字,則可以發佈評論。當創建規則時可以定義使用者類型,從而隔離哪些使用者類型受限制。如果需要不同的規則,可以創建多個規則類型。
這個外掛從不對 WordPress 默認的用戶類型管理員、編輯、作者和投稿者設置任何限制或限制。如果博客管理員為其中任何三個角色(編輯、作者和投稿者)創建一個規則,那麼該規則將超越默認設置。其他在用戶類型下拉菜單中看到的用戶類型不是 WordPress 默認的,如果需要限制,則需要創建規則。
這個外掛還結合了限制博客管理員允許的評論數量的能力。定義的限制包含每天、每週、每月或每年。一旦根據所選時間跨度定義到達了限制,警報消息將顯示不允許進一步的評論。
在外掛設置中,您可以禁用 WordPress 默認提供的防洪通知,其中通常會導致用戶在快速連續發帖時被屏蔽,從而導致荒涼的 404 錯誤。此外,默認情況下,用戶被阻止在任何帖子下將與原評論完全相同的評論黏貼,逐字逐句地評論。這也可以禁用。
最新添加的功能包括在帖子內激活「評論規則」彈出式窗口。它可以在設置中停用,但默認情況下是啟用的。它出現在帖子評論框上方的左上角。您可以在設置中創建任何方式閱讀的規則,但請將文本規則保持短小,就像示例文本一樣,否則它們將顯示錯亂,使窗口外觀形式不正確。
作為一個整體而言,這個外掛非常簡單,幾乎不使用系統資源,並且與所有測試過的博客附加組件兼容。這包括會員平台,如 Magic Members、MemberPress、Memberships Pro、Restrict Content Pro、LearnDash、S2Member 和 WooCommerce Memberships。此外,該外掛與任何其他要求用戶在評論之前註冊的 WordPress 模塊結合使用。為了澄清,要使該插件能夠運作,使用者必須是註冊且活躍的,插件才能跟踪活動。邏輯上,沒有一個插件可以監控或限制未註冊的匿名評論。來賓不能受到插件限制的控制,只有註冊用戶可以被限制。
從版本1.1.3開始,您現在可以從每個帖子中的元框中選擇不受插件設置保存的限制規則的帖子。這是一個重複要求的功能。
註:此外掛無法與 wpDiscuz 一起使用,因為它使用自己的鉤子和模板。例如,如果將限制設置為24小時內兩個評論,但是其中一個被管理員刪除,那麼訂閱者的評論現在將顯示還有另一個評論。以前,在限制時間內的任何評論都將計入訂閱者的評論。該外掛的語言支持包括:英語、西班牙語和法語。
在多站點安裝中使用
將 zip 文件內容提取到 WordPress 安裝的 wp-content/mu-plugins/ 目錄中。(默認情況下不會創建此目錄。您必須在 wp-content 文件夾中創建它。)“mu”不再表示多用戶,而是表示“必需使用”,因為放置在該文件夾中的任何代碼都將運行,而不需要需要啟用 。
原文外掛簡介
This plugin adds an active letter counter, word counter, and comment counter above the comment box that provides a user with constant visual access to their input activity. Any comment that exceeds the word limit will result in a red change in its count as the user tries to type more words. If the users try to post anyway, a warning dialogue will appear below the comment box that will state the limit, and the comment will not post. Once the user edits the words that exceed the limit, the comment can be posted. User types are defined when the rule is created, isolating what user type is restricted by a given rule. Multiple rule types can be made if different rules are required.
The plugin never restricts or limits the WordPress default user types Administrator, Editor, Author, and Contributor. If the blog administrator creates a rule for any of the three roles separately (Editor, Author, and Contributor), then that rule supersedes the default setting. Other user types that may be seen in the user’s type dropdown do not default to WordPress and would require a rule to be created if limits are required.
This plugin also combines the ability to limit the number of comments the blog administrator allows. The defined limit is contained to each day, week, month, or per year. Once the limit is reached by the definition of the time span selected, an alert message displays the reason for not allowing further comments.
The plugin settings allow you to disable the flood protection notice provided default in WordPress, where a user is normally blocked from quick successive posts, resulting in a bleak 404 error. Along with this, a user is by default blocked from pasting the same comment, letter for letter, under any post. This can too can be disabled.
The latest addition includes the ability to activate a Comment Rules pop-up modal within the post. It can be deactivated in the settings but is active by default. It appears top left above the post’s comment box. You may create the rules to read anyway you wish in settings, but keep the text rules short as the sample text, or they will wrap and malformed the appearance of the window.
The plugin as a whole is very simple and uses nearly no system resources and is compatible with all tested blog add-ons loaded to the initial staging site. This includes membership platforms like Magic Members, MemberPress, Memberships Pro, Restrict Content Pro, LearnDash, S2Member and WooCommerce Memberships. Additionally, the plugin works in combination with any other WordPress module that requires a user to register before commenting. To clarify, for the plugin to work, a user must be a registered and active for the plugin to track activity. Logically, no plugin can monitor or limit unregistered anonymous comments. Guests cannot be controlled by the plugin limits, only registered users.
As of version 1.1.3, you now can from the metabox in each post, select the post not to be subject to the limit rules saved in the plugins settings. This has been a repeat feature request.
As of version 1.1.8, an administrator can optionally enter a global value in the settings panel, to limit the total number of comments allowed on all posts. If the field is left blank, the default value of WordPress is maintained.
Notes: This plugin will not work with wpDiscuz where it uses its own hook and templates. If the limit is set to two comments in 24 hours for example, but one was deleted by the moderator, the subscribers comments will now show another comment remains. Previously, any comments in the trash within the limited time was counted against the subscriber.
The plugin’s language support includes: English, Spanish, German, French and Russian.
Using in Multisite Installation
Extract the zip file contents in the wp-content/mu-plugins/ directory of your WordPress installation. (This is not created by default. You must create it in the wp-content folder.) The ‘mu’ does not stand for multi-user like it did for WPMU, it stands for ‘must-use’ as any code placed in that folder will run without needing to be activated.
Access the Plugins settings panel named ‘Limit Comments and Word Count’ under options.
Configure your settings with two different error messages and save settings.
Technical Details for Release 1.2.2
Load time: 0.311 s; Memory usage: 3.56 MiB
PHP up to tested version: 8.3.17
MySQL up to tested version: 8.4.4
MariaDB up to tested version: 11.8.0
cURL up to tested version: 8.12.0, OpenSSL/3.4.1
PHP 7.4, 8.0, 8.1, 8.2, and 8.3 compliant. Not tested on 8.4 yet.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Limit Comments and Word Count」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 1.1.7 | 1.1.8 | 1.1.9 | 1.2.0 | 1.2.1 | 1.2.2 | trunk |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。