Log in

View Full Version : New Posting Features - Prevent Post Formatting Abuse


MarkFL
11-18-2016, 10:00 PM
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:


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


https://vborg.vbsupport.ru/attachment.php?attachmentid=155560&stc=1&d=1481803689

Support for this product can be found here:


MHB - Prevent Post Formatting Abuse (http://mathhelpboards.com/vbulletin-products-61/prevent-post-formatting-abuse-21780.html)
TAZ - Prevent Post Formatting Abuse (https://theadminzone.com/threads/prevent-post-formatting-abuse.145007/)

In Omnibus
11-19-2016, 10:19 AM
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
11-20-2016, 08:02 PM
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
11-21-2016, 06:01 PM
Update - Version 1.1:


Added setting for excessive punctuation.

Alan_SP
11-22-2016, 11:28 AM
Wow, this is excellent. Great idea. :up:

Snowhog
11-22-2016, 09:09 PM
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
12-11-2016, 01:44 AM
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
12-15-2016, 10:10 AM
Update - Version 1.2:


Added setting for walls of text.

MarkFL
12-16-2016, 04:29 AM
Update - Version 1.2.1:


Fixed bug with walls of text.

Snowhog
12-17-2016, 02:51 PM
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
12-17-2016, 02:56 PM
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
12-17-2016, 03:13 PM
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
11-08-2018, 05:39 PM
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
11-08-2018, 05:56 PM
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:

build_thread_counters($post['threadid']);

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

$post['pagetext'] = $new_content;

Max Taxable
11-08-2018, 06:52 PM
Love this. Should have been Mod of the Year.

Budget101
11-08-2018, 07:19 PM
Locate the plugin with this product titled "Fix Old Posts Being Viewed" and withing that plugin's code, immediately after the line:

build_thread_counters($post['threadid']);

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

$post['pagetext'] = $new_content;

Yes, that seemed to do the trick! You are AWESOME.

MarkFL
11-08-2018, 07:24 PM
Yes, that seemed to do the trick! You are AWESOME.

Okay, great! :)

If I publish an update to this product, I will include this fix. Thanks for your feedback. :D

Zelda-King
11-09-2018, 03:45 PM
Nice! Got it installed fine on 4.2.5. The only thing that didn't pass my initial test was that thread titles seem immune to the punctuation check. I was able to have a thread title with a significant number of consecutive "!" in spite of setting the limit to 3. This works fine for actual post content of course. The title was however de-shouted just fine.

(I didn't test with other products disabled yet.)

MarkFL
11-09-2018, 04:52 PM
Nice! Got it installed fine on 4.2.5. The only thing that didn't pass my initial test was that thread titles seem immune to the punctuation check. I was able to have a thread title with a significant number of consecutive "!" in spite of setting the limit to 3. This works fine for actual post content of course. The title was however de-shouted just fine.

(I didn't test with other products disabled yet.)

This product is for post content, not thread titles. For thread titles, please check out the sites in my sig for my "Good Thread Titles" product.