Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

V8: Location Locale Help

Asked Modified Viewed 18,912 times
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
asked
Super Admin

The format we are using for the states (your input should be as follows) - Latest Build:


$states['Sweden'] = construct_array("Blekinge,Bohuslän,Dalarna,Dalsland,Lappland,Gotland,Gästrikland,Halland,Hälsingland,Jämtland,Närke,Medelpad,Norrbotten,Härjedalen,Skåne,Södermanland,Småland,Stockholm,Uppland,Värmland,Västerbotten,Västernorrland,Västmanland,Västergötland,Ångermanland,Öland,Östergötland");


Roadmap Demo Page: http://phpfusion.me/locale/English/thankyou.php

Everyone is welcome to contribute to our biggest roadmap after all. I can't handle this alone.
We're just about to begin with states, then city, then ip, then geocode. I hope this CMS can handle a locale map like no other CMS has ever done before... and this take a huge effort.

With this information, we'll be able to use this information, to do better codes. Let's go, we need all the help we can! If you're from a country that is missing in our repo, please help to the construct_array(); function.

All source code will be given to v7 user profile as well upon completion. I will personally develop and submit a v7 addon for the selectors with some of the stuff developed in 8.


<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System Version 7 & 8
| Copyright (C) 2002 - 2013 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Project File: Satellite Project of Geo Location
| Filename: geomap.inc.php
| Author: PHPFusion 8 Development Team
| Coded by : Frederick MC Chan
+--------------------------------------------------------+
| With Codes from PHPFusion Communities Authors
+--------------------------------------------------------+
| Registered in php-fusion.co.uk under the username of:
|
| Domi (Scandinavia), Basti (Germany), Thomas-SVK (Slovakia),
| afoster (USA), Kamillo (Poland), Dimki (Greece),
| Creatium (Lithuania), douwe_yntema (Netherlands),
| JoiNNN (Romania), EphyxHU (Hungary), afaaro (Somalia),
| Jikaka (Russia)
+--------------------------------------------------------+
| Version : 8.1.1 (please update every commit)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/


$states['Taiwan,Province-of-China'] = array();
$states['Tajikistan'] = array();
$states['Tanzania,United-Republic-of'] = array();
$states['Thailand'] = construct_array("Amnat Charoen,Ang Thong,Bangkok Metropolis,Bueng Kan,Buri Ram,Chachoengsao,Chai Nat,Chaiyaphum,Chanthaburi,Chiang Mai,Chiang Rai,Chon Buri,Chumphon,Kalasin,Kamphaeng Phet,Kanchanaburi,Khon Kaen,Krabi,Lampang,Lamphun,Loei,Lop Buri,Mae Hong Son,Maha Sarakham,Mukdahan,Nakhon Nayok,Nakhon Pathom,Nakhon Phanom,Nakhon Ratchasima,Nakhon Sawan,Nakhon Si Thammarat,Nan,Narathiwat,Nong Bua Lam Phu,Nong Khai,Nonthaburi,Pathum Thani,Pattani,Phangnga,Phantthalung,Phayao,Phetchabun,Phetchaburi,Phichit,Phitsanulok,Phrae,Phra Nakhon Si Ayutthaya,Phuket,Prachin Buri,Prachuap Khiri Khan,Ranong,Ratchaburi,Rayong,Roi Et,Sa Kaeo,Sakon Nakhon,Samut Prakan,Samut Sakhon,Samut Songkhram,Saraburi,Satun,Sing Buri,Si Sa Ket,Songkhla,Sukhothai,Suphan Buri,Surat Thani,Surin,Tak,Trang,Trat,Ubon Ratchathani,Udon Thani,Uthai Thani,Uttaradit,Yala,Yasothon");
$states['Togo'] = array();
$states['Tokelau'] = array();
$states['Tonga'] = array();
$states['Trinidad-and-Tobago'] = array();
$states['Tunisia'] = array();
$states['Turkey'] = array();
$states['Turkmenistan'] = array();
$states['Turks-and-Caicos-Islands'] = array();
$states['Tuvalu'] = array();

$states['Uganda'] = array();
$states['Ukraine'] = array();
$states['United-Arab-Emirates'] = array();
$states['United-Kingdom'] = construct_array("Aberdeen,Aberdeenshire,Anglesey,Angus,Antrim,Ards,Argyll and Bute,Armagh,Ballymena,Ballymoney,Bambridge,Barnsley,Bath and North East Somerset,Bedford,Belfast,Birmingham,Blackburn with Darwen,Blackpool,Blaenau Gwent,Bolton,Bourmemouth,Bracknell Forest,Bradford,Bridgend,Brighton and Hove,Bristol,Buckinghamshire,Bury,Caerphilly,Calderdale,Cambridgeshire,Cardiff,Carmarthenshire,Carrickfergus,Castlereah,Central Bedfordshire,Ceredigion,Cheshire East,Cheshire West and Chester,Clackmannanshire,Coleraine,Conwy,Cookstown,COmwall,Conventry,Craigavon,Cumbria,Darlington,Denbighshire,Derby,Derbyshire,Derry,Devon,Doncaster,Dorset,Down,Dudley,Dumfries and Galloway,Dundee,Dungannon,Durham,East Ayrshire,East Dunbartonshire,East Lothian,East Renfrewshire,East Riding of Yorkshire,East Sussex,Edinburgh,Eilean Siar,Essex,Falkirk,Fermanagh,Fife,Flintshire,Gateshead,Glasgow,Gloucestershire,Greater London,Gwynedd,Halton,Hampshire,Hartlepool,Herefordshire,Hertfordshire,Highland,Inverclyde,Isle of Wight,Isles of Scilly,Kent,Kingston upon Hull,Kirklees,Knowsley,Lancashire,Larne,Leeds,Leicester,Leicestershire,Limavady,Lincolnshire,Lisburn,Liverpool,Luton,Magherafelt,Manchester,Medway,Merthyr Tydfil,Middlesbrough,Midlothian,Milton Keynes,Monmouthshire,Moray,Moyle,Neath Port Talbot,Newcastle upon Tyne,Newport,Newry and Mourne,Newtownabbey,Norfolk,Northamptonshire,North Ayrshire,North Down,North East Licolnshire,North Lanarkshire,North Lincolnshire,North Somerset,North Tyneside,Northumberland,North Yorkshire,Nottingham,Nottinghamshire,Oldham,Omagh,Orkney Islands,Oxfordshire,Pembrokeshire,Perthshire and Kinross,Peterborough,Plymouth,Poole,Portsmouth,Powys,Reading,Redcar and Cleveland,Renfrewshire,Rhondda Cynon Taff,Rochdale,Rotherham,Rutland,Saint Helens,Salford,Sandwell,Scottish Borders,Sefton,Sheffield,Shetland Islands,Shropshire,Slough,Solihull,Somerset,Southampton,South Ayrshire,Southend-on-Sea,South Gloucestershire,South Lanarkshire,South Tyneside,Staffordshire,Stirling,Stockport,Stockton-on-Tees,Stoke-on-Trent,Strabane,Suffolk,Sunderland,Surrey,Swansea,Swindon,Tameside,Telford and Wrekin,Thurrock,Torbay,Torfaen,Trafford,Vale of Glamorgan,Wakefield,Walsall,Warrington,Warwickshire,West Berkshire,West Dunbartonshire,West Lothian,West Sussex,Wigan,Wiltshire,Windsor and Maidenhead,Wirral,Wokingham,Wolverchampton,Worcestershire,Wrexham,York");
$states['United-States'] = construct_array("Alabama,Alaska,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,Florida,Georgia,Hawaii,Idaho,Illinois,Indiana,Iowa,Kansas,Kentucky,Louisiana,Maine,Maryland,Massachusetts,Michigan,Minnesota,Mississippi,Missouri,Montana,Nebraska,Nevada,New Hampshire,New Jersey,New Mexico,New York,North Carolina,North Dakota,Ohio,Oklahoma,Oregon,Pennsylvania,Rhode Island,South Carolina,South Dakota,Tennessee,Texas,Utah,Vermont,Virginia,Washington,West Virginia,Wisconsin,Wyoming");
$states['United-States-Minor-Outlying-Islands'] = array();
$states['Uruguay'] = array();
$states['Uzbekistan'] = array();

$states['Vanuatu'] = array();
$states['Venezuela'] = array();
$states['Vietnam'] = array();
$states['Virgin-Islands-(British)'] = array();
$states['Virgin-Islands-(U.S.)'] = array();

$states['Wallis-and-Futuna-Islands'] = array();
$states['Western-Sahara'] = array();

$states['Yemen'] = construct_array("Sanaa,Taizz,Al Hudaydah,Aden,Ibb,Dhamar,al-Mukalla,Zinjibar,Sayyan,Ash Shihr,Sahar,Zabid,Hajjah,Badschil,Dhi as-Sufal,Rida,Socotra,Bait al-Faqih,al-Marawi'a,Al Bayda',Lahij,Marib,Mocha");

$states['Yugoslavia'] = array();

$states['Zambia'] = construct_array("Chadiza,Chama,Chavuma,Chibombo,Chiengi,Chililabombwe,Chilubi,Chingola,Chinsali,Chipata,Choma,Chongwe,Gwembe,Isoka,Itezhi Tezhi,Kabompo,Kabwe,Kafue,Kalabo,Kalomo,Kalulushi,Kaoma,Kapiri Mposhi,Kaputa,Kasama,Kasempa,Katete,Kawambwa,Kazungula,Kitwe,Livingstone,Luangwa,Luanshya,Lufwanyama,Lukulu,Lundazi,Lusaka,Luwingu,Mambwe,Mansa,Masaiti,Mazabuka,Mbala,Milenge,Mkushi,Mongu,Monze,Mpika,Mpongwe,Mporokoso,Mpulungu,Mufulira,Mufumbwe,Mumbwa,Mungwi,Mwense,Mwinilunga,Nakonde,Namwala,Nchelenge,Ndola,Nyimba,Petauke,Samfya,Senanga,Serenje,Sesheke,Shangombo,Siavonga,Sinazongwe,Solwezi,Zambezi");
$states['Zimbabwe'] = construct_array("Beitbridge,Bikita,Bindura,Binga,Bubi,Buhera,Bulawayo,Bulilima,Centenary,Chegutu,Chikomba,Chimanimani,Chipinge,Chiredzi,Chirumhanzu,Chitungwiza,Chivi,Epworth,Gokwe North,Gokwe South,Goromonzi,Guruve,Gutu,Gwanda,Gweru,Harare Rural,Harare Urban,Hurungwe,Hwange,Insiza,Kadoma,Kariba,Kwekwe,Lupane,Makonde,Makoni,Mangwe (South),Marondera,Masvingo,Matobo,Mazowe,Mberengwa,Mount Darwin,Mudzi,Murehwa,Mutare,Mutasa,Mutoko,Mwenezi,Nkayi,Nyanga,Rushinga,Seke,Shamva,Shurugwi,Tsholotsho,Umguza,UMP,Umzingwane,Wedza,Zaka,Zvimba,Zvishavane");


Little bit more to go...
Edited by N/A on 19-12-2013 03:26,
0 replies

48 posts

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

Heard-and-Mc-Donald-Islands..... Countries listed?!
Only penguins lives there!!

Ok, I've reached "L" countries. My eyes are popping out now lol.. feels like "The Captcha Challenge" to me.. continue after few hours rest.

Finished M now, continue in a while.
Edited by Chan on 18-12-2013 16:54,
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

Don't worry about the Special Characters, Dump it in. It's parsed.

media-cache-ec0.pinimg.com/originals/53/39/0d/53390d575c83ae4049e405cb6cb62476.jpg


We're gonna open up Php-fusion to localize to every single corner of the world with this. Only with this there's hope to build a locale engine like facebook. If Drupal is going there, so are we.. we're gonna go even more hardcore since we already have $locales before they even get created. So I need this done to push this beyond current limits. I'll even add Google location and dump GPS into PHPFusion.

With mapping devices and cellphones playing this as toys, more and more data submitted to Internet has geodata, so the time is right to give this a push.
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

The source i take is from Statoid. Don't browse there, faster to get from google "Christmas Island Statoid", search.

The 1st thread has the list of the world countries. anything is in = array() is blank. Those in construct array is done.

Can you take from Descending order Z->A , while i go from A->Z . We will meet up half way.
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

I can help from tomorrow, Give me a list of what´s left and the same source you take em from.
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

I will TRY to complete list today.
Edited by Chan on 18-12-2013 08:43,
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

Creatium I will try use that. :)
0 replies
J
jikaka
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
answered
Veteran Member

$state['Russia'] = ksort(construct_array("Buryat Autonomous district,Republic of Adygea,Altay krai,Amur region,Arkhangelsk region,Astrakhan region,Republic of Bashkortostan,Belgorod region,Bryansk region,Republic of Buryatia,Vladimir region,Volgograd region,Vologda region,Voronezh region,Republic of Altai,Republic of Dagestan,Jewish Autonomous region,Ivanovo region,Republic of Ingush,Irkutsk region,Kabardino-Balkaria,Kaliningrad region,Republic of Kalmykia,Kaluga region,Kamchatka,Republic of Karachay-Cherkess,Republic of Karelia,Kemerovo region,Kirov region,Republic of Komi,Komi-Perm Autonomous district,Koryak Autonomous district,Kostroma region,Krasnoyarsk krai,Kurgan region,Kursk region,Leningrad region,Lipetsk region,Magadan region,Republic of Mari El,Republic of Mordovia,Moscow,Moscow region,Murmansk region,Nenets Autonomous district,Nizhny Novgorod region,Novgorod region,Novosibirsk region,Omsk region,Orenburg region,Orel region,Penza region,Perm region,Primorsky Krai,Pskov region,Rostov region,Ryazan region,Samara region,Saint Petersburg,Saratov region,Republic of Sakha (Yakutia),Sakhalin region,Sverdlovsk region,Republic of North Ossetia,Smolensk region,Stavropol region,Taimyr (Dolgan-Nenets) Autonomous district,Tambov region,Republic of Tatarstan,Tver region,Tomsk region,Republic of Tuva (Tyva),Tula region,Tyumen region,Udmurtia region,Ulyanovsk region,Ust-Orda Buryat Autonomous district,Khabarovsk krai,Republic of Khakassia,Khanty Mansiysk Autonomous district,Chelyabinsk region,Republic of Chechen,Chita region,Republic of Chuvash,Chukotka Autonomous district,Evenki Autonomous district,Yamal-Nenets Autonomous district,Yaroslavl region");
0 replies
C
Creatium
C
  • Member, joined since
  • Contributed 93 posts on the community forums.
  • Started 9 threads in the forums
answered
Member

Quote

hien wrote:

Creatium, have a look at the code this:

First post:

$state['Lithuania'] = construct_array("Alytaus apskritis,Kauno apskritis,Klaip&#279;dos apskritis,Marijampol&#279;s apskritis,Panev&#279;žio apskritis,Šiauli&#371; apskritis,Taurag&#279;s apskritis,Telši&#371; apskritis,Utenos apskritis,Vilniaus apskritis");

Second:

$state['Lithuania'] = construct_array("Alytaus apskritis,Kauno apskritis,Klaipedos apskritis,Marijampoles apskritis,Panevežio apskritis,Šiauliu apskritis,Taurages apskritis,Telšiu apskritis,Utenos apskritis,Vilniaus apskritis");

I used the second one.


If you can, please use the first one :)
0 replies
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
answered
Senior Member


$state['Somalia'] = construct_array("Somaliland, Puntland, Galmudug, Zelia & Lughaya State, Awdalland, Himan and Heeb, Khatumo State, Jubaland");

$state['Yemen'] = construct_array("Sanaa,Taizz,Al Hudaydah,Aden,Ibb,Dhamar,al-Mukalla,Zinjibar,Sayyan,Ash Shihr,Sahar,Zabid,Hajjah,Badschil,Dhi as-Sufal,Rida,Socotra,Bait al-Faqih,al-Marawi'a,Al Bayda',Lahij,Marib,Mocha");
Edited by afaaro on 20-11-2013 16:55,
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

Wow, there is a country named Christmas Island in this world? I have never known this.. !
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

Creatium, have a look at the code this:

First post:

$state['Lithuania'] = construct_array("Alytaus apskritis,Kauno apskritis,Klaip&#279;dos apskritis,Marijampol&#279;s apskritis,Panev&#279;žio apskritis,Šiauli&#371; apskritis,Taurag&#279;s apskritis,Telši&#371; apskritis,Utenos apskritis,Vilniaus apskritis"wink;

Second:

$state['Lithuania'] = construct_array("Alytaus apskritis,Kauno apskritis,Klaipedos apskritis,Marijampoles apskritis,Panevežio apskritis,Šiauliu apskritis,Taurages apskritis,Telšiu apskritis,Utenos apskritis,Vilniaus apskritis"wink;

I used the second one.
0 replies
C
Creatium
C
  • Member, joined since
  • Contributed 93 posts on the community forums.
  • Started 9 threads in the forums
answered
Member

Please make sure that Lithuanian states are spelled correctly with or without the special characters. Now I see that some words have letters š (s with caron) and some do not have letters &#371; (u with ogonek) or &#279; (e with dot above). So, if you can, try to use all Lithuanian characters in all words (that would be the first code I gave in this post).
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

Guys, I've taken some liberty to fuel this project with a hands-on experience of what we're trying to build I will also state this information on the first post mainly because I figure the array that we're building might be confusing which have been sorted out, and which not.

First, I thank you all for the participation and welcomed help. The URL to the demo page is: http://phpfusion.me/locale/English/thankyou.php

Please continue the effort. We're going for a big fish together.
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

JoiNNN, thanks for the site! And also Romania. I like hscripts. I will try copy paste it later. And the price tag up to cities is USD 249! Lol..

Domi, I will try save in ANSI later. :) yeah odd issues. Lol

Keep the list coming for your own country guys. If it's not your country, we can't double check :D I will update again later. :)
Edited by Chan on 20-11-2013 02:35,
0 replies
E
EphyxHU
E
Ephyx

PHP-Fusion Hungary - SiteAdmin - TeamLeader
http://www.php-fusion.co.hu
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 4 threads in the forums
answered
Newbie

 $state['Hungary'] = ksort(construct_array("Bács-Kiskun,Baranya,Békés,Borsod-Abaúj-Zemplén,Csongrád,Fejér,Gy&#337;r-Moson-Sopron,Hajdú-Bihar,Heves,Jász-Nagykun-Szolnok,Komárom-Esztergom,Nógrád,Pest,Somogy,Szabolcs-Szatmár-Bereg,Tolna,Vas,Veszprém,Zala");



UTF8 chars:
á => &#225;
é => &#233;
ó => &#243;
Lowercase O-double acute => &#337; e.g.=> Györ-Moson-Sopron
ú => &#250;
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

$state['Switzerland'] = ksort(construct_array("Aargau,Appenzell Ausser-Rhoden,Appenzell Inner-Rhoden,Basel-Landschaft,Basel-Stadt,Bern,Fribourg,Geneve,Glarus,Graubunden,Jura,Luzern,Neuchatel,Nidwalden,Obwalden,Sankt Gallen,Schaffhausen,Schwyz,Solothurn,Thurgau,Ticino,Uri,Valais,Vaud,Zug,Zurich");

$state['France'] = ksort(construct_array("Alsace,Aquitaine,Auvergne,Basse-Normandie,Bourgogne,Bretagne,Centre,Champagne-Ardenne,Corse,Franche-Comte,Haute-Normandie,Ile-de-France,Languedoc-Roussillon,Limousin,Lorraine,Midi-Pyrenees,Nord-Pas-de-Calais,Pays de la Loire,Picardie,Poitou-Charentes,Provence-Alpes-Cote d'Azur,Rhone-Alpes");


Feel free to correct it if it's wrong.
Edited by Basti on 19-11-2013 20:36,
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

$state['Romania'] = ksort(construct_array("Alba,Arad,Arges,Bacau,Bihor,Bistrita-Nasaud,Botosani,Brasov,Braila,Bucuresti,Buzau,Calarasi,Caras-Severin,Cluj,Constanta,Covasna,Dambovita,Dolj,Galati,Giurgiu,Gorj,Harghita,Hunedoara,Ialomita,Iasi,Ilfov,Maramures,Mehedinti,Mures,Neamt,Olt,Prahova,Satu Mare,Salaj,Sibiu,Suceava,Teleorman,Timis,Tulcea,Vaslui,Valcea,Vrancea"));

For other variations with original special characters and escaped special characters see attachement.

You also might find these useful:
http://hscripts.com/scripts/JavaScript/country-list.php (also has counties)
http://myip.ms/info/cities_sql_database/World_Cities_SQL_Mysql_Database.html (also has counties, paid service. FREE for browsing, can be "scraped" using Firebug > Net tab you can see ajax request source when selecting, which then can be copy pasted and processed)
http://www.countries-list.info/Download-List
Edited by JoiNNN on 19-11-2013 21:07,
JoiNNN attached the following file:
romania.zip [No information available / 331 Downloads]
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Looks sweet, good job!
There is a trick to special chars and encodings when using special text editors.
Sometimes on occations even if you do UTF-8 the encoding will scramble , like in your list after Harjedalen.
What you need to do is save the .php files with ANSI format, it usualy solves it.
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

Updated.

Using the chain country and onchange, it will trigger the state selection as follow screenshot.

Total countries is 238. We have only covered so far very little. Many countries don't have state :) Please help typing if possible.
Edited by Chan on 19-11-2013 17:54,
Chan attached the following file:
location.gif [No information available / 63 Downloads]
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Here are the Netherlands:
 $state['Netherlands'] = ksort(construct_array("Groningen,Friesland,Drenthe,Overijssel,Flevoland,Gelderland,Utrecht,Noord-Holland,Zuid-Holland,Zeeland,Noord-Brabant,Limburg");
0 replies

Category Forum

General Discussion

Labels

None yet

Statistics

  • Views 0 views
  • Posts 48 posts
  • Votes 0 votes
  • Topic users 14 members

14 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
E
E
Ephyx

PHP-Fusion Hungary - SiteAdmin - TeamLeader
http://www.php-fusion.co.hu
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 4 threads in the forums
A
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
B
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
T
T
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 3 threads in the forums
A
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
K
K
------------------------------
PHP-Fusion PL Crew | Spam Cop | My Site
  • Senior Member, joined since
  • Contributed 244 posts on the community forums.
  • Started 23 threads in the forums
J
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
C
C
  • Member, joined since
  • Contributed 93 posts on the community forums.
  • Started 9 threads in the forums
J
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
D
D
dimki 10
  • Senior Member, joined since
  • Contributed 246 posts on the community forums.
  • Started 28 threads in the forums
D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet