Aller à la page: [-1] 1 - 2

Fin
Australian Cities.
  • Envoyé: 15.04.2004, 06:21
       
    Wendell
    enregistré depuis:
     mars 2004
    Status:
    hors ligne
    dernière visite:
    11.07.04
    Messages:
    6
    Whoops, sorry, that was my post directly above. I forgot to sign in first!
  • Envoyé: 18.05.2004, 02:45
       
    reyre
    enregistré depuis:
     mai 2004
    Status:
    hors ligne
    dernière visite:
    30.05.04
    Messages:
    2
    Great work with weather 1.31, vedrine!

    I'm working on a New South Wales file right now. If no one else is doing so, I can do some of the other Australian states at a later date when I get the time.

    There is one thing I need to be added: an additional subdivision for Australia called "Australian Capital Territory". How can this be done?
  • Envoyé: 18.05.2004, 09:36
       
    vedrine
    rang:
    Site Admin Site Admin
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    12.05.08
    Messages:
    257
    reyreI'm working on a New South Wales file right now. If no one else is doing so, I can do some of the other Australian states at a later date when I get the time.

    There is one thing I need to be added: an additional subdivision for Australia called "Australian Capital Territory". How can this be done?

    Hello, I included in the 1.31 release all the country files that I currently have. To my best knowledge, no one is working on australian files for the moment. So yes you can do it, I will be happy to include them in the next release.
    Unfortunately including a new subdivision is not a simple process because you need to modify the database and if you do it with phpmyadmin, when you later upgrade to 1.32 it will break because the record will already be in the table.
    So with phpmyadmin you can add the folowing record to the table nuke_wthr_subdiv
    subdiv_id = 310
    subdiv_title = Australian Capital Territory
    subdiv_country = 5
    But be warned that
    - if you give the datafile you will make to somebody else he will not be able to use it unless he create the same record
    - when I will release the next version of the weather module you will have to comment the following lines in the pninit.php file (2 occurences)
    Code
    $sql = "INSERT INTO $subdivtable VALUES('Australian Capital Territory','310','5');";
              $dbconn->Execute($sql);

    Because if you don't suppress theese lines the upgrade fuinction will not work.
    Of course don't forget to send me the datafile you will make for Australian Capital territory.
    Thanks a lot because it's people like you who makes the weather module better : alone I can't provide new translations as I only speak french and english and I can't improve datafile as only people living in these countries have the geographic knowledge about it.
    PS if you want I can send you a complete list of all the australian codes that MSNBC and weather.com know about, but of course with no subdiv data as they consider australia as a whole
  • Envoyé: 18.05.2004, 13:36
       
    reyre
    enregistré depuis:
     mai 2004
    Status:
    hors ligne
    dernière visite:
    30.05.04
    Messages:
    2
    Yes, please, if you could send me the full list of Australian codes. I tried getting the list by using get_countries_data.php, however it only returned the first 200 entries, and I know there is more than that.

    Cheers
    Rick
  • Envoyé: 25.12.2004, 03:13
    Invité
    rang:
    1
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    06.03.05
    Messages:
    0
    Hi Vedrine.
    I have just emailed you a copy of the Australian City files I have been working on.
    I have also included a extra data file for Australian Capital Territory, although not many cities within this region are covers by weather.com

    Cheers
    Paul
  • Envoyé: 25.12.2004, 19:41
       
    vedrine
    rang:
    Site Admin Site Admin
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    12.05.08
    Messages:
    257
    Thanks a lot. I will make the package available in the downloads section of this website as soon as possible for all australians friends and include it in next release.

Aller à la page: [-1] 1 - 2

Réponse rapide
 
  • Options
Code:
Couleur de la police:  
Taille de la police: