PDA

View Full Version : Shout filter - Allow short post shouting


Turbosport
15 Jan 2006, 00:42
Just a little quick code hack!

This simply stops short posts from going through the shout filter !

Only 1 edit :D

10 = lengh of post to skip.

FILE = includes/functions_newpost.php

// ###################### Start stopshouting #######################
function fetch_no_shouting_text($text)
{
// stops $text being all UPPER CASE
global $vbulletin;
return iif($vbulletin->options['stopshouting'] AND $text == strtoupper($text) AND strlen($text) >= 10 , ucwords(vbstrtolower($text)), $text);
}

Ziki
15 Jan 2006, 19:51
lol pretty useless but OK!*clicks install*

Razz
15 Jan 2006, 20:30
It's not useless you just don't understand its purpose.

This will stop the problem of smilies being de-capitalized when you have a low characters per post setting.

If your characters per post is 2 and you prevent shouting you cannot do this smilie :D <<

Snake
16 Jan 2006, 11:25
Installed!