phpBMS

Ticket #3 (closed enhancement: fixed)

Opened 4 years ago

Last modified 2 months ago

Multiple phone formats support

Reported by: Anonymous Owned by: brieb
Priority: major Milestone: 0.7
Component: phpbms Version: 0.7
Keywords: helpWanted Cc:

Description (last modified by brieb) (diff)

Currently, phpBMS supports only US formated phone numbers. It should be able to support administrativley entered validation.

Attachments

Change History

Changed 4 years ago by iwcg

I have a patch that can be found in the patches section of SF.net that can fix this problem for you. Right now, it's the only patch in there.

It works on my system, however, like any open-sourced product, use at your own risk :)

Disclaimer:

I am not a developer for phpbms. I've been throwing the idea around of using phpbms in my company for invoices. Using this patch may break your installation, call you names, insult your mother, and/or ruin all of your data.

Changed 4 years ago by brieb

  • type changed from defect to enhancement

Changed 4 years ago by brieb

  • status changed from new to assigned
  • milestone changed from unknown to 0.70

Multiple phone formats and multiple currency formats are something we are wokring towards... We need people to submit their regular expressions for checking phone and curency formats if they want it included.

Changed 4 years ago by brieb

  • keywords review added

Changed 4 years ago by brieb

  • keywords helpWanted added; review removed

Changed 4 years ago by Krisstoffer

China: (00) 00000000

France: 00 00 00 00 00

Nigeria: 000000000

United Kingdom: 00000 000 000

United Stated: (000) 000-0000

Venuzeula: (0000) 000,00,00

Hope this helps

Changed 4 years ago by brieb

Krisstoffer, Thanks for the offer, however we are looking for some regular expressions here, mainly because you want flexibility in what you validate too. For instance, in the US, all of these are considered valid phone numbers:

555-1111 505-555-1111 (505) 555-1111 505.555.1111 505.555.1111 ext. 142 505.555.1111 x142

So, the regular expression to validate all these looks like this:

/(?:[\+]?(?:[\d]{1,3})?(?:\s*[\(\.-]?(\d{3})[\)\.-])?\s*(\d{3})[\.-](\d{4}))(?:(?:[ ]+(?:[xX]|(?:[eE][xX][tT][\.]?)))[ ]?[\d]{1,5})?$/

(Ugly, but effective)

What we are looking for is these regualr expressions that define a countries format, but is flexible enough to allow all their variations.

Changed 4 years ago by brieb

  • description modified (diff)
  • summary changed from Phone Number Check to Multiple phone formats support

Changed 4 years ago by anonymous

give us a direct link to download please

Changed 4 years ago by mipalmer

First we have to have it completed before we give you a direct link. And when its completed the direct link will come in the form of a new release of phpbms. As you can see its on the chopping block for 0.7 so it won't be long.

Changed 3 years ago by brieb

  • status changed from assigned to closed
  • resolution set to fixed

The functionality for multiple phone number support has been implemented by [186]. If you would like to see a particular regional setting for the format, please submit the regular expression, along with a description either through the phpbms.org forums or though the http://www.kreotek.com contact form, and we will make sure it get's put in the next release.

Changed 3 years ago by Jun

  • version changed from 0.61 to 0.7

I've modified and added phone number RegExp? for Australia - Strict in jstrasport.php as followed, hope helps:

case "AUS - Strict": ?>/[0]\d{1}([ ])\d{4}([ ])\d{4}|[0]\d{3}([ ])\d{3}([ ])\d{3}$/;<?php break;

Two expressions for Land line: 02 9898 8989 or Mobile: 0404 333 666

Changed 3 years ago by brieb

We would love to see these Australian rules a bit more flushed out, and submitted as a patch, so we can integrate it into the system

Changed 3 years ago by anonymous

  • priority changed from minor to major
  • status changed from closed to reopened
  • resolution fixed deleted

Need support for Norwegian phone numbers. We have 8 digits, and all of these are considered "correct", and are listed in my personally preferred order:

00000000 00 00 00 00 000 00 000 00 000 000

International versions would be:

(+47)00000000 (+47) 00 00 00 00 (+47) 000 00 000 (+47) 00 000 000

Hope to see Norwegian numbers supported soon :) I would be very happy with the (+47)00000000 version ;)

Changed 3 years ago by anonymous

Woops..

That didn't look very nice.. I'll try again:

In my preferred order, international version:

(+47)00000000

(+47) 00 00 00 00

(+47) 000 00 000

(+47) 00 000 000

(+47) 000 000 00

:)

Changed 3 years ago by brieb

  • status changed from reopened to closed
  • resolution set to fixed

Thanx for the heads up. As we discussed in the comments above, simply provide us with the regular expression that would validate your phone formating, and we will implement it in fairly easily

Also, when you get the regular expression done, go ahead and submit a new ticket for it.

Changed 2 months ago by perisi <persid100@…>

For the last decennial http://toprabota3.narod.ru/ event computers so firmly fell into our life that to dispense with them already simply impossible. Buy the computer have to each person, who does not http://toprabota1.narod.ru/ want to lag behind from life. However to buy the computer, which will greatly http://toprabota2.narod.ru/ correspond to to be entrusted on http://izmail10.narod.ru/ it problem, it is necessary to try. Notwithstanding ????????? opinion, does not exist the computer, which approached all as minimum necessary to http://karbot.narod.ru/ distinguish office and home computers.

Changed 2 months ago by perisi <persid100@…>

Besides, exists the ensemble of the other http://newrabotakap.narod.ru/ types computer, for instance, playing or multimedia. Also cost(stand)s to mention http://newrabotablog.narod.ru/ of computer, adapted for specialist from different areas. In particular, http://trekrabota.narod.ru/ such professional machines are used for ????????????, http://superabotanew.narod.ru/ design or ????????????????? of the calculations. Professional computers, http://rabota-newsyou.narod.ru/ certainly, differ high price because of high-quality completing

Add/Change #3 (Multiple phone formats support)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.
Copyright © 2010 Kreotek, LLC. All Rights reserved.