Limit Comments and Word Count

Limit Comments and Word Count Install Statistics

11
100%
Today: 11 Yesterday: 0 All-time: 3,366 downloads
Limit Comments and Word Count Icon

Try plugin: Limit Comments and Word Count

We'll create fresh WordPress site with Limit Comments and Word Count installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Limit Comments and Word Count

This plugin will limit the number of comments and word length each user can add to a Wordpress blog post, definable by user role and length of time.

7


1


0


0


1

updated: 8 months ago
since: 6 years ago
author: Artios Media

Description

This plugin adds above the comment box an active letter counter, word counter, and comment counter, that provides a user constant visual access to their input activity. Any comment that exceeds the word limit will result in a red change it count as the user tries to type more words. If the users tries 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 exceeds 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 created if different rules are required.

The plugin never places a restriction or limits on the WordPress default user types Administrator, Editor, Author and Contributor. If the blog administrator would create a rule for any of the three roles seperately (Editor, Author and Contributor), then that rule would supersede the default setting. Other users types that may be seen in the user’s type dropdown are not default to WordPress and would require a rule created if limits are required.

This plugin also combines the ability to limit the number of comments allowed by the blog administrator. The defined limit is contained to each day, week, month, or per year. Once the limit is reached by definition of the time span selected, an alert message displays the reason for not allowing further comments.

The plugin settings allows 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 commment, 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 any way you wish in settings, but keep the text rules short as the sample text or they will wrap and malform the windows appearance.

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

  1. 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.
  2. Access the Plugins settings panel named ‘Limit Comments and Word Count’ under options.
  3. Configure your settings with two different error messages and save settings.

Technical Details for Release 1.2.0

Load time: 0.285 s; Memory usage: 3.06 MiB
PHP up to tested version: 8.3.4
MySQL up to tested version: 8.0.36
MariaDB up to tested version: 11.3.2
cURL up to tested version: 8.6.0, OpenSSL/3.2.1
PHP 7.4, 8.0, 8.1, 8.2 and 8.3 compliant.