|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jausions Smarty Rookie
Joined: 06 Nov 2003 Posts: 10
|
Posted: Thu Nov 06, 2003 2:31 am Post subject: New modifier: phone_format - contribution requested |
|
|
Hi,
I've just added a phone_format modifier in Smarty's WiKi plugin repository.
You may have guessed the modifier formats phone numbers. As of this first v0.1 release, US, Canada and France phone number formats are supported. Countries that use the US's numbering plan are also supported (Bahamas, Jamaica...)
Contributions are welcomed to add support for other countries format.
Examples:
- 1234567890 (US) => (123) 456-7890
- 1234567890 (US/Int'l) => +1 (1) 123-456-7890
- 123-456-7890 Ext. 123 (US) => (123) 456-7890 Ext.123
- 1800PHP4EVR (US) => 1-800-PHP-4EVR
- 0123456789 (FR) => (0)1 23 45 67 89
- 0123456789 (FR/Int'l) => +33 (0)1 23 45 67 89
- 0801234567 (FR) => 0801 23 45 67
Have a good one.
-Philippe |
|
Back to top |
|
formfunction Smarty n00b
Joined: 04 Mar 2004 Posts: 3 Location: Cape Town, South Africa
|
Posted: Thu Mar 04, 2004 1:02 pm Post subject: |
|
|
Hi,
Is this still available? I can't find it on http://smarty.incutio.com/?page=SmartyPlugins anywhere.
I'd happily add South African format to it if the plugin is still available, I could use somthing like this in my projects.
Thanks
Mark _________________ Technical Manager,
FormFunction
http://www.formfunction.co.za
Bespoke Application Solutions |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
|
Back to top |
|
jausions Smarty Rookie
Joined: 06 Nov 2003 Posts: 10
|
Posted: Mon Mar 08, 2004 3:52 pm Post subject: phone_format modifier |
|
|
Quote: |
"I'd happily add South African format to it if the plugin is still available"
|
Yes formfunction, please do so, and re-add it to the WiKi when you're finished.
Thanks,
-Philippe |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|