vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Prevent SHOUTING and Posts With Annoying UPdown Text Like This (https://vborg.vbsupport.ru/showthread.php?t=115634)

Reynaldovb 05-14-2006 10:00 PM

Prevent SHOUTING and Posts With Annoying UPdown Text Like This
 
Long time ago I posted a mod written for 3.0.7 to stop SHOUTING and "Jumpy" text. Since I upgraded to 3.5.x my forums became once again full of posts in FULL CAPS and let's be honest, the bultin anti-shouting functionality sucks.

With vBulletin bultin anti-shouting, you have to choose between SHOUTING TEXT or Annoying Jumpy Text (caps on first word of each letter), which makes large blocks of text difficult to read.

Essentially, what this mod does is:

1) Switch SHOUTING from the body text and from title into "normal" text.

2) Switch "Jumpy" text from both the body and title into a more readable form. Example of "Jumpy" text is the following sentence:

Quote:

"This Sentence Is A Example Of 'Jumpy' Text. The Reason Why Some Users Like To Write Sentences In This Way Eludes Me. I Just Know That After A Few Lines, It Becomes Difficult To Read. This Sentence Is A Example Of 'Jumping' Text. The Reason Why Some Users Like To Write Sentences In This Way Eludes Me. I Just Know That After A Few Lines, It Becomes Difficult To Read. I Think By Now You Are Aware Of My Point."
Known behaviour:
a) For shouting text, the mod detects it if ALL the text is in caps. This behaviour will be changed on a next release to trigger it if 80% or more of the text is in caps.

b) For "Jumpy" text, the mod is triggered if at least 2 sets of 3 words are Wrote Using Jumpy Text. This 'could' also be changed to make it trigger based on a percentage of the text.

Installation:
STEP 1
Disable vBulletin bult-in anti-shouting by going to Admin CP => vBulletin Options => Message Posting and Editing Options

STEP 2
Download the included file: product-pst_reynaldovb.xml

STEP 3
Go to Admin CP => Plugin System => Manage Products => Add/Import Product
Click the Browse button and browse to where you downloaded the file.

STEP 4
Voila! from now on your forum should be SHOUTING free.
Now take a moment and click INSTALL :-)
Please keep in mind this plugin only applies to future posts. It does nothing against posts already in the forum. If interested let me know and I could post a MySQL line that will "fix" past posts.

Reynaldovb 05-15-2006 06:25 AM

- Place holder -

Tralala 05-15-2006 06:40 AM

Great idea! Thanks for coding this, and sharing.

Atakan KOC 05-15-2006 08:04 AM

Nice. Thanks.

Snake 05-15-2006 11:58 AM

Thanks a ton!

MissKalunji 05-15-2006 04:41 PM

sweet been looking for something like that

JaMBo 05-15-2006 07:17 PM

JuMPy TeXT? WHaTS WRoNG WiTH JuMPY TeXT...lol..j/k

Thnx

jugo 05-15-2006 09:08 PM

Go ahead and post the Mysql Code...

OndaReal 05-16-2006 12:12 AM

Cool Installed

TeddyKGB 05-16-2006 03:22 PM

Hmmmm I received this error so I had to uninstall. I disabled the vB default by setting it to 0 and then installed the xml file with the Manage Products screen.

Fatal error: Call to undefined function: myremoveshouting() in /home/XXXXXXX/public_html/forum/includes/functions_newpost.php on line 360

Any ideas? Thanks

Reynaldovb 05-16-2006 04:40 PM

Quote:

Originally Posted by TeddyKGB
Hmmmm I received this error so I had to uninstall. I disabled the vB default by setting it to 0 and then installed the xml file with the Manage Products screen.

Fatal error: Call to undefined function: myremoveshouting() in /home/XXXXXXX/public_html/forum/includes/functions_newpost.php on line 360

Any ideas? Thanks

What version of PHP you got? Do you know?

TeddyKGB 05-16-2006 04:48 PM

I am on a Linux Server with Apache v1.3.34 (cgi) and PHP 4.4.2

Reynaldovb 05-16-2006 05:02 PM

Quote:

Originally Posted by TeddyKGB
I am on a Linux Server with Apache v1.3.34 (cgi) and PHP 4.4.2

Really weird, can you try with the version attached to this post? (product-pst_reynaldovb_test.xml )
All I did on this one was move the function to the beginning, before the call, although your PHP version is not supposed to be affected by things like that.

TeddyKGB 05-16-2006 05:30 PM

I didn't receive an error but it only correct shouting in the title bar, it did nothing for the message text.

Reynaldovb 05-16-2006 05:38 PM

Quote:

Originally Posted by TeddyKGB
I didn't receive an error but it only correct shouting in the title bar, it did nothing for the message text.

1.- You got to disable vBulletin built-in antishouting feature.
2.- Your whole message have to be in caps, otherwise the filter wont be triggered.
3.- If testing with 'jumpy' text, make sure you are using at least 10 words.

Neal-UK 05-16-2006 08:25 PM

I just installed this and turned off the vb default setting and i posted this message:

Quote:

JUst teStIng the ShouTing ModIFICatIon to make SURE PEOPLE caNt sHOuT likE thIS

Reynaldovb 05-16-2006 08:36 PM

Quote:

Originally Posted by Neal-UK
I just installed this and turned off the vb default setting and i posted this message:

And let me guess... it didnt work. Thats not a shout, THIS IS A SHOUT!

Also 'jumpy' text is defined as capitalizing the first letter of every word. For a reason I dont understand, some people enjoy writing like that.

In my opinion, if you have people writing like this: "JUst teStIng the ShouTing ModIFICatIon to make SURE PEOPLE caNt sHOuT likE thIS", you need more than a simple mod to correct it. Or just modify the mod to always convert text to lowercase.

If you installed it and intend to keep it, please click the INSTALL button. :)

futuredood 06-29-2006 07:38 AM

installed this hack, tested, and works like a charm

readjono 09-17-2006 01:53 PM

Amazing product.

zylstra 01-07-2007 05:37 PM

Quote:

Originally Posted by Reynaldovb (Post 977790)
if you have people writing like this: "JUst teStIng the ShouTing ModIFICatIon to make SURE PEOPLE caNt sHOuT likE thIS", you need more than a simple mod to correct it.

Yeah, you need a more complex mod.

Chadi 01-27-2007 07:25 PM

Any way to modify the options somehow?

funkmeister 02-06-2007 08:25 PM

This doesn't appear to work if using the "quick reply" option. Is that a known bug? Works everytime when using the full "post reply", but not on the ajax'd quick reply. I'm on 3.6.4 not 3.5.4 - anyword on an update for the 3.6x series?

Let me know, thanks.

Chadi 02-23-2007 11:58 PM

Quote:

Originally Posted by chadi (Post 1168509)
Any way to modify the options somehow?



Please answer this. I need this on my Christian forum, however changing GOD to god is not happening :) The hack naturally does that, which is why I'd like to know (or suggest future options) ability for 'exceptions' or custom rules of some kind.

rjmjr69 04-08-2007 09:48 AM

anyone test it in 3.6.5? Why wouldn't it work with higher versions? Different hook location? Can someone look into this and see if they can get it to work for 3.6.5 this is a very useful hack and great idea. MOTM material of you ask me.

blackvborg 05-30-2007 05:34 PM

this mod for me doesn't work on vb 3.6.7 - for you?

DevShack 01-09-2008 08:19 PM

It also doesn't work very well with UTF-8 encoding and when the text contains special chars like umlauts (? ? ? ?) ... it just displays question marks instead of the umlauts like:

Quote:

Original: DAS ist ein Text,

BEI DEM VIEL
GEBR?LLT ? ? ? ? UND SO WIRD.
Quote:

B Vers.: Das ist ein text, bei dem viel gebr�llt � � � � und so wird.
Any ideas? I can't use the unicode modifier /u, because it won't display anything at all with it.

As you can see, it also kills all line breaks? :erm:


All times are GMT. The time now is 05:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01074 seconds
  • Memory Usage 1,769KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete