vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=323894

Prevent Post Formatting Abuse
by MarkFL
19 Nov 2016 06:47

2 Attachment(s)
Overview:

This product allows you to prevent your users from using some commonly seen post formatting practices, which I've come to think of as abusive. For example, some users will begin and end their posts with padding in the form of a period followed by multiple line breaks at the beginning and multiple line breaks followed by a period at the end, to thwart the trimming of whitespace from the beginning and end of posts. Another example is an excessive number of line breaks between paragraphs. These practices serve to make posts taller than they need to be, requiring others to scroll farther to read threads.

I have included the post formatting abuses that have bothered me in the past, and I am open to suggestions for other abuses to prevent (so please feel free to request them). The abuses I have initially included are:

Post Padding: Using non-alphanumeric characters followed by line breaks at the beginning and/or end of a post to pad the content, making the post unnecessarily tall.
Excessive Line Breaks: More line breaks than you define as allowable in succession anywhere in a post.
Excessive Spacing: More spaces than you define as allowable in succession following a word or sentence.
Excessive Punctuation: More successive strings of punctuation than you define below.
Shouting: Two or more successive words all uppercase will be converted to lowercase.
Case Mixing: Words containing a mix of cases are converted to lowercase with the case of the first letter being preserved.
Text Speak: Abbreviations common to text messaging (although any unwanted abbreviation can be defined).
Wall Of Text: A large number of sentences without any line breaks.

These can each be independently selected as abuses to be prevented. When selected, they will be corrected/removed from the post content before a post is saved, and you can also choose to fix older (pre-existing) posts as they are viewed. Because of post caching, it may take some time before the changes are reflected in the display of the older posts. This could affect forum performance, and I would recommend against using it unless you have a large number of posts you want fixed. Once you think they are fixed, then I recommend turning off this feature. Another option would be for you to simply edit such posts, as long as you are not exempt from the product, by simply clicking "Edit" and then saving the post without making any manual changes, and the post will be fixed automatically.

You can choose to exempt certain forums from this product, as well as certain usergroups.

Updates:

Version 1.1:
  • Added setting for excessive punctuation.

Version 1.2:
  • Added setting for walls of text.

Version 1.2.1:
  • Fixed bug with walls of text.

Version 1.2.2:
  • Removed "Fix Old Posts" option.

Version 1.2.3:
  • Restored "Fix Old Posts" option after fixing issue for some installations.

Compatibility:

Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter the structure of your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:
  1. Download and extract the attached .zip file.
  2. Upload the contents of the "upload" folder to your forum's root directory.
  3. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  4. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  5. Click "Import."
  6. You MUST enable the product in the settings before it will function.
  7. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

http://www.vbulletin.org/forum/attac...1&d=1481803689

Support for this product can be found here:

In Omnibus 19 Nov 2016 12:19

Brilliant for this feature alone: Text Speak: Abbreviations common to text messaging (although any unwanted abbreviation can be defined).

I want to slap the stupid out of people who post like this.

Snowhog 20 Nov 2016 22:02

Would you add To Many Periods to this? We have a member who likes to 'post loquacious' and liberally uses long strings of periods throughout his posts, like many people who use way to much salt on their food.

MarkFL 21 Nov 2016 20:01

Update - Version 1.1:
  • Added setting for excessive punctuation.

Alan_SP 22 Nov 2016 13:28

Wow, this is excellent. Great idea. :up:

Snowhog 22 Nov 2016 23:09

Thank you for adding excessive punctuation.

For those using an Apple PC (I have an iMac), the Ctrl key doesn't work for multi-selection (Exempt Usergroups). You have to use the command key instead; at least I have to.

bazookajoe 11 Dec 2016 03:44

And then there are those that post one giant wall of words with not a paragraph break in site! Drives me nuts on my forum :(.

MarkFL 15 Dec 2016 12:10

Update - Version 1.2:
  • Added setting for walls of text.

MarkFL 16 Dec 2016 06:29

Update - Version 1.2.1:
  • Fixed bug with walls of text.

Updating existing installataion
by Snowhog
17 Dec 2016 16:51

There is only the markfl_postabuse.php file in the MarkFL - Prevent Post Formatting Abuse v1.2.3 > upload > markfl_postabuse folder.

Is this update simply a replacement of that file? Once replaced, are steps 3 - 5 of Installation instructions required:

3. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
4. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
5. Click "Import."

MarkFL 17 Dec 2016 16:56

Quote:

Originally Posted by Snowhog (Post 2579544)
There is only the markfl_postabuse.php file in the MarkFL - Prevent Post Formatting Abuse v1.2.3 > upload > markfl_postabuse folder.

Is this update simply a replacement of that file? Once replaced, are steps 3 - 5 of Installation instructions required:

3. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
4. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
5. Click "Import."

All the files are there...I just downloaded it to be sure.

Snowhog 17 Dec 2016 17:13

Got it. Thank you.

Downloaded and installed. Shows we are now using version 1.2.3 (and it is active). This is one of the most useful (and beneficial) MODs that has ever been written.

Budget101 08 Nov 2018 19:39

First of all, thank you for this Mod, the wall of text that I've been experiencing with members who have no idea how to use paragraphs has been driving me NUTS.

With the Wall of Text setting, I'm noticing that the first time the post loads it doesn't work, it must be refreshed and it works the second time. Is there a way to fix it so it works during the 1st pageload?

Or is this designed to work with cached posts; and if so, what settings do you recommend under the cached post (server settings)?

MarkFL 08 Nov 2018 19:56

Quote:

Originally Posted by Budget101 (Post 2597282)
First of all, thank you for this Mod, the wall of text that I've been experiencing with members who have no idea how to use paragraphs has been driving me NUTS.

With the Wall of Text setting, I'm noticing that the first time the post loads it doesn't work, it must be refreshed and it works the second time. Is there a way to fix it so it works during the 1st pageload?

Or is this designed to work with cached posts; and if so, what settings do you recommend under the cached post (server settings)?

Locate the plugin with this product titled "Fix Old Posts Being Viewed" and withing that plugin's code, immediately after the line:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add this line, and let me know if that works, please:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Max Taxable 08 Nov 2018 20:52

Love this. Should have been Mod of the Year.


All times are GMT. The time now is 17:38.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.