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,909 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

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

Here is what I have on Scandinavia, please check and also anyone with native language might need to rename some Regions to match your locale.

This is not the exact regions list we have in Sweden.
This is a list that many popular sites including some of mine uses to let people select where they come from etc.
It´s somewhat extended.
If anyone would like to add any regions please suggest it.
I do not know how accurate the rest of the list are, But we have a good start to build on here.

$state['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");

$state['Norway'] = construct_array("Akershus,Aust-Agder,Buskerud,Finnmark,Hedmark,Hordaland,Møre og Romsdal,Nordland,Nord-Trøndelag,Oppland,Oslo,Østfold,Rogaland,Sogn og Fjordane,Sør-Trøndelag,Telemark,Troms,Vest-Agder,Vestfold");

$state['Denmark'] = construct_array("Aabenraa,Aalborgs,Aarhus,Hjørrings,Thisteds,Viborgs,Randers,Ringkøbings,Ribe,Skanderborgs,Vejle,Tønders,Haderslevs,Sønderborgs,Odense,Svendborgs,Holbæks,Frederiksborg,København,Roskilde,Sorø,Præstø,Maribo,Bornholms");

$state['Iceland'] = construct_array("Reykjavik,Keflavík,Borgarnes,Ísafjörður,Sauðárkrókur,Akureyri,Egilsstaðir,Selfoss");

$state['Finland'] = construct_array("Etelä-Suomen,Länsi-Suomen,Itä-Suomen,Oulun,Lapin,Ahvenanmaan");
Edited by N/A on 16-11-2013 15: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

Nice ! Thank you. I work on China now.


$state['China'] = construct_array("Fujian Province,Gangsu Province,Guangdong Province,Guizhou Province,Hunan Province,Hubei Province,Hebei Province,Henan Province,Heilongjiang Province,Jiangsu Province,Jilin Province,Liaoning Province,Shandong Province,Anhui Province,Qinghai Province,Shaanxi Province,Shanxi Province,Sichuan Province,Yunnan Province,Zhejiang Province,Jiangxi Province,Beijing Muncipality,Tianjin Muncipality,Ningxia Hui Autonomous Region,Xizang Autonomous Region,Shanghai Muncipality,Hong Kong (SAR),Guangxi Zhuang Autonomous Region,Chongqing Muncipality,Macau (SAR)");
$state['Japan'] = construct_array("Tokyo,Kanagawa,Osaka,Aichi,Chiba,Hyogo,Saitama,Hokkaido,Fukuoka,Shizuoka,Hiroshima,Kyoto,Ibaraki,Miyagi,Niigata,Tochigi,Nagano,Okayama,Gumma,Mie,Fukushima,Gifu,Yamaguchi,Kagoshima,Kumamoto,Ehime,Nagasaki,Okinawa,Aomori,Nara,Yamagata,Ishikawa,Oita,Iwate,Shiga,Toyama,Miyazaki,Akita,Wakayama,Fukui,Kagawa,Tokushima,Saga,Kochi,Shimane,Yamanashi,Tottori");
$state['Singapore'] = construct_array("Singapore");
$state['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");
$state['Indonesia'] = construct_array("Aceh,Bali,Bangka-Belitung,Banten,Bengkulu,Gorontalo,Jakarta Raya,Jambi,Jawa Barat,Jawa Tengah,Jawa Timur,Kalimantan Barat,Kalimantan Selatan,Kalimantan Tengah,Kalimantan Timur,Kalimantan Utara,Kepulauan Riau,Lampung,Maluku,Maluku Utara,Nusa Tenggara Barat,Nusa Tenggara Timur,Papua,Papua Barat,Riau,Sulawesi Barat,Sulawesi Selatan,Sulawesi Tengah,Sulawesi Tenggara,Sulawesi Utara,Sumatera Barat,Sumatera Selatan,Sumatera Utara,Yogyakarta");
state['Philippines'] = construct_array("Abra,Agusan del Norte,Agusan del Sur,Aklan,Albay,Antique,Apayao,Aurora,Basilan,Bataan,Batanes,Batangas,Benguet,Biliran,Bohol,Bukidnon,Bulacan,Cagayan,Camarines Norte,Camarines Sur,Camiguin,Capiz,Catanduanes,Cavite,Cebu,Compostela Valley,Catabato,Davao del Norte,Davao del Sur,Davao Occidental,Davao Oriental,Dinagat Islands,Eastern Samar,Guimaras,Ifugao,Ilocos Norte,Ilocos Sur,Iloilo,Isabela,Kalinga,Laguna,Lanao del Norte,Lanao del Sur,La Union,Leyte,Maguindanao,Marinduque,Masbate,Metropolitan Manila,Misamis Occidental,Misamis Oriental,Mountain,Negros Occidental,Negros Oriental,Northern Samar,Nueva Ecija,Nueva Vizcaya,Occidental Mindoro,Oriental Mindoro,Palawan,Pampanga,Pangasinan,Quezon,Qurino,Rizal,Romblon,Samar,Sarangani,Siquijor,Sorsongan,South Cotabato,Southern Leyte,Sultan Kudarat,Sulu,Surigao del Norte,Surigao del Sur,Tarlac,Tawi-Tawi,Zambales,Zamboanga del Norte,Zamboanga del Sur,Zamboanga-Sibugay");


Going for Australia now.
Edited by Chan on 16-11-2013 17:19,
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

Is this a list of all regions or a list of all towns or a list of the biggest towns of a country?
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

It´s a regions list, however it can be hard to get accurate information.
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['Germany'] = construct_array("Baden-Württemberg,Bayern,Berlin,Brandenburg,Bremen,Hamburg,Hessen,Mecklenburg-Vorpommern,Niedersachsen,Nordrhein-Westfalen,Rheinland-Pfalz,Saarland,Sachsen,Sachsen-Anhalt,Schleswig-Holstein,Thüringen");
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
answered
Senior Member

So for the US, are you looking for the 50 states or 50 states plus major cities?
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

We are doing states now, maybe we can extend it at later stage to also include major cities.
0 replies
T
Thomas-SVK
T
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 3 threads in the forums
answered
Newbie

state['Slovakia'] = construct_array("Banská Bystrica,Bratislava,Košice,Nitra,Prešov,Trencín,Trnava,Žilina");
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

Great!! Thanks everyone. I added the ilst. Let me update the first post with the total appended code as for sharing since we're doing this.
It's a big effort to get this done.

Added 4 more countries in:


$state['South Korea'] = ksort(construct_array("Busan,Chungcheongbuk-do,Chungcheongnam-do,Dauegu,Daejeon,Gangwon-do,Gwangju,Gyeonggi-do,Gyeongsangbuk-do,Gyeongsangnam-do,Incheon,Jeju-do,Jeollabuk-do,Jeollanam-do,Sejong,Seoul,Ulsan"));
$state['North Korea'] = ksort(construct_array("Chagang-do,Hamgy&#335;ng-bukto,Hamgy&#335;ng-namdo,Hwanghae-bukto,Hwanghae-namdo,Kangw&#335;n-do,Najin S&#335;nbong-si,P'y&#335;ngan-bukto,P'y&#335;ngan-namdo,P'y&#335;ngyang-si,Yanggang-do"));
$state['Australia'] = ksort(construct_array("Australian Capital Territory,Jervis Bay Territory,New South Wales,Northern Territory,Queensland,South Australia,Tasmania,Victoria,Western Australia,Ashmore and Cartier Islands,Coral Sea Islands Territory"));
$state['New Zealand'] = ksort(consrruct_array("Auckland,Bay of Plenty,Canterbury,Chatham Islands,Gisborne,Hawke's Bay,Manawatu-Wanganui,Marlborough,Nelson,Northland,Otago,Southland,taranaki,Tasman,Waikato,Wellington,West Coast"));
Edited by Chan on 17-11-2013 03:34,
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

OMG, the biggest country ever possible ? United Kingdom - 200 states. Even China doesn't have this amount of division ilst, lol. Here is the last 1 hour result.


$state['Brunei Darussalam'] = ksort(construct_array("Belait,Tutong,Brunei-Muara,Temburong"));
$state['Laos'] = ksort(construct_array("Attapu,Bokeo,Bolikhamxai,Champasak,Houaphan,Khammouan,Louang Namtha,Louangphrabang,Oudômxai,Phôngsali,Saravan,Savannakhét,Vientiane,Vientiane [Prefecture],Xaignabouri,Xékong,Xiangkhoang"));
$state['United Kingdom'] = ksort(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"));


Please check for spelling mistakes of the 1st post okay guys. We need to correct them if there are any mistakes. I'll work on the actual form i/o to get the list up and running backend.
And If you need them for v7 too, I will build a file so you can use it, but v8 first. Cheers!!

We still need Brazil, Turkey, France and a lot of it. :)
Edited by Chan on 17-11-2013 04:01,
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
answered
Senior Member

OK, here is the United States:

$state['United States'] = ksort(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"));


Hopefully there are no spelling errors.
0 replies
K
Kamillo
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
answered
Senior Member

$state['Poland'] = ksort(construct_array("dolnoslaskie,kujawsko-pomorskie,lubelskie,lubuskie,lodzkie,malopolskie,mazowieckie,opolskie,podkarpackie,podlaskie,pomorskie,slaskie,swietokrzyskie,warminsko-mazurskie,wielkopolskie,zachodniopomorskie"));

Without Polish characters, because its illegible if site has different coding.
Edited by Kamillo on 17-11-2013 20:30,
0 replies
D
dimki
D
dimki 10
  • Senior Member, joined since
  • Contributed 246 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

hiar Geographical Region

state['Greece'] = construct_array("Thrakh,Makedonia,Hpeiros,Thessalia,Sterea-Ellada,Peloponnhsos,Nhsia-Aigaiou,Nhsia-Ioniou,Krhth,");


I do not know to exactly you want

here the bigger cities

Athens
Thessaloniki
Patras
Agrinio
Piraeus
Heraklion
Larisa
volos
Ioannina
Chania
Trikala
Halkida
Serres
Alexandroupolis
Xanthi
Komotini
Karditsa
Katerini
Kalamata
Kavala
Veria
drama
Edessa
Tripoli
Lamia
Corfu
0 replies
K
Kamillo
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
answered
Senior Member

Quote

I need every country, and every state

Dimki what is you do not understand? :) No cities.
0 replies
D
dimki
D
dimki 10
  • Senior Member, joined since
  • Contributed 246 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

ok Kamillo
0 replies
C
Creatium
C
  • Member, joined since
  • Contributed 93 posts on the community forums.
  • Started 9 threads in the forums
answered
Member

It's quite complicated in Lithuania. All the counties are named after the biggest city of every county. So for example the city is Vilnius, so the county is named "Vilnius county". The question is should I use the full name "Vilnius county" or just "Vilnius", or maybe the name in Lithuanian, which would be "Vilniaus apskritis"? For example if I use "Vilnius", it might be misunderstood as name of city, not the county.
Also, should we use Lithuanian characters?
Edited by Creatium on 17-11-2013 17:49,
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

Like hotel, air ticket sites how do they go by it? I would go by common sense or perhaps on
http://www.statoids.com/ult.html? If you can verify this as correct, then use that :)
Edited by Chan on 17-11-2013 17:44,
0 replies
C
Creatium
C
  • Member, joined since
  • Contributed 93 posts on the community forums.
  • Started 9 threads in the forums
answered
Member

Actually, we don't use counties for addresses, because it practically gives no useful information :) We simply write city, postal code and country. Ant this is mostly everywhere.

So ok, I will use county name in Lithuanian, i.e. "Vilniaus apskritis".

Here is the code:
$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");
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

Thank you, Creatium. That was quick. I'll add it in :D
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