https://www.icyphoenix.com/viewtopic.php?f=28&t=8796
-----------------------------------
mort
Sun 11 Nov, 2012 11:03

Remove Exclamation Point In Message VIP2.*
-----------------------------------
I found this and it's too small for a plug-in :P

[spoiler][code linenumbers=false]	Package Icy Phoenix Modifications
	File $Id: Remove_Exclamation_Points_En.txt
	Version for Icy Phoenix: 2.0.0.*
	Author: Underhill < webmaster@underhill.de >
	Copyright (c) N/A
	License: http://opensource.org/licenses/gpl-license.php GNU Public License

	Extra credits for this MOD:
		Modified for Icy Phoenix by Lopalong. 14th August 2009

	Title:
	Exclamation point in message

	Description:
		Delete unneeded exclamation points from the message body. 
		"Question??????" will be changed to "Question?"
		"Who can help!!!!!" will be changed to "Who can help!"
		"That's All..........." will be changed to "That's All."
		"Waiting,,,,,,,,,,,,," will be changed to "Waiting,"

	Files To Edit: 1
		/includes/functions_post.php

	Disclaimer:
		There is no guarantee that there are no security problems within the MOD.

	Comments:
	Author Notes: None.

	WARNING - WARNING - WARNING:
		Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 

#
#-----[ BEGIN MODIFICATION ]------------------------------------------
#

#
#-----[ OPEN ]------------------------------------------------------------------
#

includes/functions_post.php

#
#-----[ FIND ]------------------------------------------------------------------
#

	$message = trim($message);

#
#-----[ AFTER, ADD ]------------------------------------------------------------
#

	// Trim exclamation points in message START
	if (preg_match("/([\!\?\.\,])+/", $message))
	{
		$message_array = preg_split("/\n/", $message);
		for ($x = 0; $x < count($message_array); $x++)
		{
			if (!preg_match("/\[.*\//", $message_array[$x])) // Ignore BBCode...
			{
				$message_array[$x] = preg_replace("/([\!])+/", "\\1", $message_array[$x]);
				$message_array[$x] = preg_replace("/([\?])+/", "\\1", $message_array[$x]);
				$message_array[$x] = preg_replace("/([\.])+/", "\\1", $message_array[$x]);
				$message_array[$x] = preg_replace("/([\,])+/", "\\1", $message_array[$x]);
			}
			$message = implode("\n", $message_array);
		}
	}
	// Trim exclamation points in message END

#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------------------------
#[/code][/spoiler]

It also does the cleaning before $_POST and not after $_GET  :mrorange:


-----------------------------------
Mighty Gorgon
Sat 17 Nov, 2012 11:37

Re: Remove Exclamation Point In Message VIP2.*
-----------------------------------
Very nice (and small) addon.


