osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Go Back   osCommerce and osCMax shopping cart software forums > Projects > Features

Register FAQ Members List Calendar Mark Forums Read

Recent blog posts

User login

Navigation

Project navigation

Latest Activity

We read

osCMax BugTracker

Who's online
There are currently 1 user and 117 guests online.

Online users

  • Bassmaster

Syndicate
Syndicate content

 

Sloppy Words Cleaner

By ALElder at 2007-12-06 11:51

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).
------------------------------------------

**** Please note all credit for this goes to (TOP SPEED)

Releases

Resources

Support


Filename/TitleSize
Sloppy Words Cleaner 1.4.zip15.81 KB


All times are GMT -8. The time now is 08:58 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax