Minimum Post Length Enforcer

xF1 Unmaintained Minimum Post Length Enforcer 1.0.4

No permission to download
Compatible XF Versions
  1. 1.2
  2. 1.3
  3. 1.4
  4. 1.5
This simple add-on allows you to define a minimum length for user messages. It includes an option to allow you to decide whether BBCode should be included in the message length.

This mod is useful to prevent spammy posts (where the 'Like' button could well have been used) and to stop people from using empty BBCode tags if they're getting clever. This also stops image macros from being used (a one-image reply with nothing else).

There is now an optional setting that allows you to define a limit for the first post of a new thread.

There's really not a lot to this mod, as you'll see now...

Screenshots
Settings
(Located in ACP -> Options -> Messages)
xenforo_com_community_attachments_screen_shot_2013_05_09_at_18_25_45_png_45925__.png


Error Message
xenforo_com_community_attachments_screen_shot_2013_05_07_at_14_34_16_png_45777__.png


Upgrading
1. Upload the contents of the 'upload' folder to your xenForo root directory, taking care to ensure you overwrite the previous version. (Don't replace your entire library directory like my FTP client once tried to do - your forum WILL die if that happens!)

2. Head into your ACP, find 'Manage Add-ons' and 'Upgrade' the 'Minimum Post Length Enforcer' add-on.

3. Go to Options -> Messages and ensure that the settings are to your liking (some new options may have been added.)

Installation
0. If you previously installed Robbo's 'Minimum Post Length 1.0' add-on, you should uninstall it. Same goes if you have any other add-ons installed that offer similar functionality.

1. Upload the contents of the 'upload' folder to your xenForo root directory. If you don't know how to do this, then it's time to make friends with Google. :3

2. Head into your ACP and 'Install' the file 'addon-MinPostLengthEnforcer.xml'.

3. In the ACP, go to Options -> Messages, and edit the Post Length settings as you see fit.
'Minimum Length' is set to '10' by default, 'Include BBCode' is set to Enabled by default.

Change Log
1.0.3.1
* Fixed bad variable name that was causing the minimum length number in the error message to be blank.
? I didn't update the checksum for this patch, so if you do a File Integrity Check, it will probably show "unexpected contents".

1.0.3
+ Option to count or exclude Quotes from Limit
? Rewrite and minor re-structure of the main function's logic

1.0.2
+ Separate Limit for First Post in New Thread (suggested by giorgino)

1.0.1
Initial Release

Planned Future Features
  • User-group Immunity to Limit (e.g. Admins, Mods)
Credits/Thanks
Kier and Mike - For xenForo.
Robbo - For creating the original iteration of this addon.
Alteran (This Joker) - The fool that modded and re-uploaded this addon.


Open-Source
As per Robbo's wishes, his original add-on is open-source. Same thing applies here - this code is yours to do whatever the heck you like.
Author
AnimeHaxor
Size
12.3 KB
Extension
zip
Downloads
35
Views
1,435
First release
Last update

More resources from AnimeHaxor

Latest updates

  1. New Fixes, also now supports Profile Posts & Comments

    Another year, another update. This update comes with a combination of fixes and new features...

Similar resources

Adds an option to require at least X characters in a post.
sonnb - Minimum Post Length AnimeHaxor
User's post must contain at least X characters to be posted
Minimum message length AnimeHaxor
This add-on allows to limit the number of characters / words in posts / threads.
Minimum Posts AnimeHaxor
Requires a minimum number of posts to view threads.
731Threads
2,286Messages
63,735Members
KmInfoLatest member
Back