Spoiler: [ Show ]
Spoiler: [ Hide ]
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 ]--------------------------------------------------
#
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 ]--------------------------------------------------
#
It also does the cleaning before $_POST and not after $_GET