Add support for City and/or Zip
JStarcher - August 30, 2009 - 21:10
Description
Great module the only thing I wish is it had address support for cities or at least zip codes, especially considering the location module provides a city table. Otherwise seems solid, thanks for the commit.

#1
Yeah, cities add an extra layer of bloat (database wise) if you're expecting a cities dropdown to be populated for a particular state/province. I suppose a text field could be added to allow the user to manually enter their city. I have actually considered doing this for zip code/postal code, which would be more useful because it'd be easy to look-up the user's city.
I'll keep this in mind. A bounty would be gladly welcomed.
#2
#3
would love to have this also on D6!
#4
This script translate countries names in profile_location_country table, it need paises.txt that is attached in this post.
<?php
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$handle = fopen("paises.txt", "rb");
$contents = '';
while (!feof($handle)) {
$contents = fgets($handle, 4096);
$aux=explode(",",$contents);
db_query("UPDATE {profile_location_country} SET name = '".$aux[3]."' WHERE iso = '".$aux[2]."';");
}
fclose($handle);
?>
#5
Thanks for the sharing the script, but please leave the original title intact.
#6