so what is Rackshare planning on giving out for Xmas? ;)~~ honestly, thanks much John this will definitely helpout.
On Fri, 5 Oct 2001, John Keegan wrote: > OK all you lazy bones. It was really not that hard. Here's your October > present from Rackshare. Just make sure you share this web site with all your > friends: > > http://www.americatriumphant.com > > One of our customers made it so we want all of you to visit it and share it > with your friends, OK? > > Now here's our solution: > > > sub correct_phonenum_for_dotinfo { > > my ($id,$prefix,$new_phone_num); > > my ($country_code,$current_phone_num) = @_; > > $new_phone_num = $current_phone_num; > > $new_phone_num =~ s/-//g; > > open (FILE, "<$PATH_TEMPLATES/phone_numbers") or die "Can't open > $PATH_TEMPLATES/phone_numbers: $!\n"; > while (<FILE>) { > > chomp; > if (/^(\w{2})\s+(.+)/) { > $id = $1; > $prefix = $2; > if ($id eq $country_code) { > $new_phone_num = "+$2.$new_phone_num"; > last; > } else { > next; > } > } > } > > if ($new_phone_num!~/^\+/) { > $new_phone_num = "+1.$new_phone_num"; > } > > close(FILE); > return $new_phone_num; > } > > > That was nice. Now make sure to call this baby like this: > > if (( $domain =~ /\.info/ ) && ($HTML{owner_phone}!~/^\+/)) { > $HTML{owner_phone} = > correct_phonenum_for_dotinfo($HTML{owner_country},$HTML{owner_phone}); > } > > And so on for each field (owner phone and fax, billing and tech too). Put > all this in verify_order. > > Maybe you want even want to stick in a little notifier to your client that > their phone number was changed like this: > > > if (( $domain =~ /\.info/ ) && ($HTML{owner_phone}!~/^\+/)) { > $HTML{owner_phone} = > correct_phonenum_for_dotinfo($HTML{owner_country},$HTML{owner_phone}); > $HTML{info_warning} = "We change your phone number!"; > } > > See what I am saying? > > No questions about this off list please. Use at your own risk. > Yes, I will post my phone_numbers file in the next message. > > -- > John Keegan > [EMAIL PROTECTED] > http://RackShare.com > > > > From: "Jonathan Eaton" <[EMAIL PROTECTED]> > > Date: Fri, 5 Oct 2001 17:15:09 -0700 > > To: <[EMAIL PROTECTED]> > > Subject: RE: 2004:Parameter value range error (CountryType:UK) > > > > Thanks for the info. I'm not sure if it has been mentioned yet, but it would > > be nice for the phonenumbers to be automatically formatted for Affilias on > > the Twocows end also. We have implemented the new error checking code that > > has been passed around in the lists, added some reminders in out templates, > > and were planning on taking the extra step and write some routines that > > would just convert the phone numbers for our customers, but gee, I sure am > > lazy and don't feel like it and that's why we have OpenSRS for anyways, > > right? :) > --------------------------------------- -erol M Life is the sieve through which my anarchy strains
