View Full Version : Sloppy Words Cleaner

08-27-2016, 09:31 AM
-- v2.0 === New function Replace target words:

function replace_word($str) {

// replace target words
$word = array (
// duplicate the line below if you want to add new entry
"Saint" =_ "St", // caution, first letter must be uppercase
"Saints" =_ "Saints" // plural of the word must be interpreted too in present case
return strtr($str,$word);

With this add in line 103, before the end of RemoveShouting function:

// replace target words after RemoveShouting
$str = replace_word($str);

return $str;

NB: Only the main file (account_word_cleaner.php) attached, just drag and drop it.

Works with all OsCommerce versions

More... (http://addons.oscommerce.com/info/5550)