Community Add-Ons

Maintainers: Top_Speed
Add file to this package
Top » Other

Sloppy Words Cleaner
for osCommerce Online Merchant v2.2

What does this contrib do?
Like the title says... cleans up the sloppy inputted words by customers on their registration, edit account etc. I also added a all lowercase for the email strings.

explain sloppy input?
OK, new customer creates a new account as:
JOHN DoEskY
123 noWHERe ave.
canton, NY 12345
email: BIGred@AOL.com

this will be cleaned (and stored in your db) and displayed on all invoices/screen info-text as:
John Doesky
123 Nowhere Ave.
Canton, NY 12345
email: bigred@aol.com

I also added exception words (you can add or remove these exception words to your liking!)
i.e.
"PO" for PO Box 1234 (allowing a capital "O" after the capital "P")
"IV" for John Doe IV (instead of John Doe Iv)
"RR 2" for Rural Route 2 (instead of Rr 2)

------------------------------------------
So unlike a simple ucfirst() command which just changes the 1st letter but leaves the rest of the line alone, this code will capitalize the 1st letter of every word and of course leaves out the words you input in the exception fields! (note: there is two fields, lower case and upper case exceptions).
------------------------------------------

Legend:  Download   Report

Expand All / Collapse All

Sloppy Words Cleaner 2.3 raiwa 6 Jan 2017  

-- v2.3 ===
Changed directory constants to hardcoded paths for compatibility with latest 2.3.4 BS EDGE versions
Added function to solve upper case of first accent letter(s) after apostroph used in french (Chemin de l'Écluse) reported by @milerwan
Added typical french abreviations and short words for all uppercase and all lowercase lists.
Added function to replace target words (Abreviation example: Saint => St)
Corrected some search code for installation
All original settings and lists from version 1.8 included again

Thanks to @milerwan for the initial solutions uploaded in previous versions 1.9-2.2


Works with all OsCommerce versions

Full Package
Update instructions included

Sloppy Words Cleaner 2.2 milerwan 5 Jan 2017  
Sloppy Words Cleaner 2.1 milerwan 2 Jan 2017  
Sloppy Words Cleaner 2.0 milerwan 27 Aug 2016  
Sloppy Words Cleaner 1.9 milerwan 26 Aug 2016  
Sloppy Words Cleaner 1.8 raiwa 21 Nov 2015  
Sloppy Words Cleaner 1.7 raiwa 31 Oct 2015  
Sloppy Words Cleaner 1.6 raiwa 31 Oct 2015  
Sloppy Words Cleaner 1.6 raiwa 8 Dec 2014  
Sloppy Words Cleaner 1.5 raiwa 2 Dec 2011  
Sloppy Words Cleaner 1.4 Top_Speed 30 Jun 2009  
Update magicandmischief182 14 May 2009  
Sloppy Words Cleaner 1.4 Top_Speed 29 Nov 2007  
Sloppy Words Cleaner 1.3 Top_Speed 28 Nov 2007  
Sloppy Word Cleaner 1.3 Top_Speed 27 Nov 2007  
Sloppy Word Cleaner 1.3 Top_Speed 27 Nov 2007  
Sloppy Words Cleaner 1.22 Top_Speed 23 Nov 2007  
Sloppy Words Cleaner Top_Speed 21 Nov 2007  
Sloppy Words Cleaner 1.21 Top_Speed 21 Nov 2007  
Sloppy Words Cleaner 1.21 Top_Speed 20 Nov 2007  
Sloppy Words Cleaner 1.2 Top_Speed 16 Nov 2007  
Sloppy Words Cleaner v1.02 marcusdesign 16 Nov 2007  
Sloppy Words Cleaner 1.01 Top_Speed 15 Nov 2007  
Sloppy Words Cleaner 1.01 Top_Speed 15 Nov 2007  
forum link marcusdesign 15 Nov 2007  
Support Thread twoifbysea 15 Nov 2007  
Sloppy Words Cleaner Top_Speed 14 Nov 2007  
Sloppy Words Cleaner Top_Speed 13 Nov 2007