Goto page: [-1] 1 - 2

Bottom
Australian Cities.
  • Posted: 15.04.2004, 06:21
       
    Wendell
    registered:
     March 2004
    Status:
    offline
    last visit:
    11.07.04
    Posts:
    6
    Whoops, sorry, that was my post directly above. I forgot to sign in first!
  • Posted: 18.05.2004, 02:45
       
    reyre
    registered:
     May 2004
    Status:
    offline
    last visit:
    30.05.04
    Posts:
    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?
  • Posted: 18.05.2004, 09:36
       
    vedrine
    rank:
    Site Admin Site Admin
    registered:
     December 2003
    Status:
    offline
    last visit:
    09.10.08
    Posts:
    266
    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
  • Posted: 18.05.2004, 13:36
       
    reyre
    registered:
     May 2004
    Status:
    offline
    last visit:
    30.05.04
    Posts:
    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
  • Posted: 25.12.2004, 03:13
    Invité
    rank:
    1
    registered:
     December 2003
    Status:
    offline
    last visit:
    06.03.05
    Posts:
    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
  • Posted: 25.12.2004, 19:41
       
    vedrine
    rank:
    Site Admin Site Admin
    registered:
     December 2003
    Status:
    offline
    last visit:
    09.10.08
    Posts:
    266
    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.

Goto page: [-1] 1 - 2

Quick reply
 
  • Options
Code:
Font color:  
Font size: