Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

New modifier: phone_format - contribution requested

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
jausions
Smarty Rookie


Joined: 06 Nov 2003
Posts: 10

PostPosted: Thu Nov 06, 2003 2:31 am    Post subject: New modifier: phone_format - contribution requested Reply with quote

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
View user's profile Send private message Visit poster's website
formfunction
Smarty n00b


Joined: 04 Mar 2004
Posts: 3
Location: Cape Town, South Africa

PostPosted: Thu Mar 04, 2004 1:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Thu Mar 04, 2004 5:19 pm    Post subject: Reply with quote

I never used this plugin, but I found it using the Wiki search feature. Here it is:

http://smarty.incutio.com/?page=PhoneFormatPlugin
Back to top
View user's profile Send private message
jausions
Smarty Rookie


Joined: 06 Nov 2003
Posts: 10

PostPosted: Mon Mar 08, 2004 3:52 pm    Post subject: phone_format modifier Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP