Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Prevent Post Formatting Abuse Details »»
Prevent Post Formatting Abuse
Version: 1.2.3, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.2.x Rating:
Released: 11-18-2016 Last Update: 12-16-2016 Installs: 15
Uses Plugins
Additional Files Translations  
No support by the author.

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.



Support for this product can be found here:

Download Now

File Type: zip MarkFL - Prevent Post Formatting Abuse v1.2.3.zip (7.6 KB, 32 views)

Screenshots

File Type: jpg markfl_ppfa_acp.jpg (73.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
5 благодарности(ей) от:
Alan_SP, Dragonsys, In Omnibus, RichieBoy67, z3r0

Comments
  #12  
Old 12-17-2016, 02:56 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
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.
Reply With Quote
  #13  
Old 12-17-2016, 03:13 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
MarkFL
  #14  
Old 11-08-2018, 05:39 PM
Budget101 Budget101 is offline
 
Join Date: Jul 2008
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)?
Reply With Quote
Благодарность от:
MarkFL
  #15  
Old 11-08-2018, 05:56 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Budget101 View Post
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:

PHP Code:
        build_thread_counters($post['threadid']); 
Add this line, and let me know if that works, please:

PHP Code:
        $post['pagetext'] = $new_content
Reply With Quote
2 благодарности(ей) от:
Budget101, Max Taxable
  #16  
Old 11-08-2018, 06:52 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love this. Should have been Mod of the Year.
Reply With Quote
2 благодарности(ей) от:
Budget101, MarkFL
  #17  
Old 11-08-2018, 07:19 PM
Budget101 Budget101 is offline
 
Join Date: Jul 2008
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
Locate the plugin with this product titled "Fix Old Posts Being Viewed" and withing that plugin's code, immediately after the line:

PHP Code:
        build_thread_counters($post['threadid']); 
Add this line, and let me know if that works, please:

PHP Code:
        $post['pagetext'] = $new_content
Yes, that seemed to do the trick! You are AWESOME.
Reply With Quote
  #18  
Old 11-08-2018, 07:24 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Budget101 View Post
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.
Reply With Quote
  #19  
Old 11-09-2018, 03:45 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #20  
Old 11-09-2018, 04:52 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zelda-King View Post
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.
Reply With Quote
Благодарность от:
Zelda-King
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08670 seconds
  • Memory Usage 2,362KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (12)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete