countries.php mist enkele landen.
Op ons Conferentie website (Gemaakt in Joomla) heb ik een probleem waar b.v. Morocco wordt niet herkend.
In de component file, 'countries.php', gevonden in models / com_conferences / components zie ik dat Morocco niet eens bestaat.
Als ik dit: $countries["Morocco"] = array("Morocco", "Morocco");
erin plaakt zou dat dan werken?
Alvast bedankt,
Stephen
---------------------------------------------------------
countries.php FILE
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php
setCountries();
function setCountries(){
global $countries;
$countries = array();
$countries["Albania"] = array("Albania", "Republic of Albania");
$countries["Australia"] = array("Australia", "Commonwealth of Australia");
$countries["Austria"] = array("Austria", "Republic of Austria");
$countries["Bahamas"] = array("The Bahamas", "Commonwealth of The Bahamas");
$countries["Bangladesh"] = array("Bangladesh", "The People's Republic of Bangladesh");
$countries["Belgique"] = array("Belgium ", "Kingdom of Belgium");
$countries["Belgium"] = array("Belgium ", "Kingdom of Belgium");
$countries["Belgium Brussels"] = array("Belgium ", "Kingdom of Belgium");
$countries["Beligum"] = array("Belgium", "Kingdom of Belgium");
$countries["Bolivia"] = array("Bolivia", "The Plurinational State of Bolivia");
$countries["Bosnia And Herzegovina"] = array("Bosnia and Herzegovina", "Bosnia and Herzegovina");
$countries["Bosnia and Herzegovina"] = array("Bosnia and Herzegovina", "Bosnia and Herzegovina");
$countries["Brasil"] = array("Brazil", "Federative Republic of Brazil");
$countries["Brazil"] = array("Brazil", "Federative Republic of Brazil");
$countries["Bulgaria"] = array("Bulgaria","Republic of Bulgaria");
$countries["Burkina Faso"] = array("Burkina", "Burkina Faso");
$countries["Cambodia"] = array("Cambodia", "Kingdom of Cambodia");
$countries["Cameroon"] = array("Cameroon", "Republic of Cameroon");
$countries["Canada"] = array("Canada", "Canada");
$countries["Cayman Islands"] = array("Cayman Islands", "Cayman Islands");
$countries["China"] = array("People's Republic of China", "People's Republic of China");
$countries["Costa Rica"] = array("Costa Rica", "Republic of Costa Rica");
$countries["Croatia"] = array("Croatia", "Republic of Croatia");
$countries["Cyprus"] = array("Cyprus", "Republic of Cyprus");
$countries["Czech Rep."] = array("Czech Republic", "Czech Republic");
$countries["Czech Republic"] = array("Czech Republic", "Czech Republic");
$countries["Denmark"] = array("Denmark", "Denmark");
$countries["Ecuador"] = array("Ecuador", "Republic of Ecuador");
$countries["Estonia"] = array("Estonia", "Republic of Estonia");
$countries["Finland"] = array("Finland", "Republic of Finland");
$countries["France"] = array("France", "French Republic");
$countries["Germany"] = array("Germany", "Federal Republic of Germany");
$countries["Greece"] = array("Greece", "Hellenic Republic");
$countries["Greece - Belgium"] = array("Greece", "Hellenic Republic");
$countries["Hong Kong"] = array("Hong Kong", "Hong Kong");
$countries["Hungary"] = array("Hungary", "Republic of Hungary");
$countries["India"] = array("India", "Republic of India");
$countries["Indonesia"] = array("Indonesia", "Republic of Indonesia");
$countries["Iran"] = array("Iran", "Islamic Republic of Iran");
$countries["Iran, Islamic Republic Of"] = array("Iran", "Islamic Republic of Iran");
$countries["Ireland"] = array("Ireland", "Ireland");
$countries["Israel"] = array("Israel", "State of Israel");
$countries["Italy"] = array("Italy", "Italian Republic");
$countries["Japan"] = array("Japan", "Japan");
$countries["Jordan"] = array("Jordan", "Hashemite Kingdom of Jordan");
$countries["Korea"] = array("South Korea", "Republic of Korea");
$countries["Korea - South"] = array("South Korea", "Republic of Korea");
$countries["Korea, Republic Of"] = array("South Korea", "Republic of Korea");
$countries["Kosovo"] = array("Kosovo", "Republic of Kosovo");
$countries["Lao People's Democratic Republic"] = array("Laos", "Lao People's Democratic Republic");
$countries["Laos"] = array("Laos", "Lao People's Democratic Republic");
$countries["Lebanon"] = array("Lebanon", "Republic of Lebanon");
$countries["United States"] = array("USA", "United States of America");
$countries["Luxembourg"] = array("Luxembourg", "Grand Duchy of Luxembourg");
$countries["Luxemburg"] = array("Luxembourg", "Grand Duchy of Luxembourg");
$countries["Macedonia"] = array("Macedonia", "Republic of Macedonia");
$countries["Macedonia, The Former Yugoslav Republic Of"] = array("Macedonia", "Republic of Macedonia");
$countries["Malaysia"] = array("Malaysia", "Malaysia");
$countries["Manila"] = array("Philippines", "Republic of the Philippines");
$countries["Mauritius"] = array("Mauritius", "Republic of Mauritius");
$countries["Germany"] = array("Germany", "Federal Republic of Germany");
$countries["Mexico"] = array("Mexico", "United Mexican States");
$countries["Micronesia"] = array("Micronesia", "Micronesia");
$countries["Monaco"] = array("Monaco", "Principality of Monaco");
$countries["Nederland"] = array("Netherlands", "The Netherlands");
$countries["Nepal"] = array("Nepal", "Federal Democratic Republic of Nepal");
$countries["Netherlands"] = array("Netherlands", "The Netherlands");
$countries["New Zealand"] = array("New Zealand", "New Zealand");
$countries["Nigeria"] = array("Nigeria", "Federal Republic of Nigeria");
$countries["Norway"] = array("Norway", "Kingdom of Norway");
$countries["Pakistan"] = array("Pakistan", "Islamic Republic of Pakistan");
$countries["People's Republic of China"] = array("People's Republic of China", "People's Republic of China");
$countries["Peru"] = array("Peru", "Republic of Peru");
$countries["Philippines"] = array("Philippines", "Republic of the Philippines");
$countries["Poland"] = array("Poland", "Republic of Poland");
$countries["Portugal"] = array("Portugal", "Portuguese Republic");
$countries["Qatar"] = array("Qatar", "State of Qatar");
$countries["Republic of Indonesia"] = array("Indonesia", "Republic of Indonesia");
$countries["Republic of Korea"] = array("South Korea", "Republic of Korea");
$countries["Republic of South Africa"] = array("South Africa", "Republic of South Africa");
$countries["Romania"] = array("Romania", "Romania");
$countries["Rwanda"] = array("Rwanda", "Republic of Rwanda");
$countries["Serbia"] = array("Serbia", "Republic of Serbia");
$countries["Serbia And Montenegro"] = array("Serbia And Montenegro", "Serbia And Montenegro");
$countries["Sierra Leone"] = array("Sierra Leone", "Republic of Sierra Leone");
$countries["Singapore"] = array("Singapore", "Republic of Singapore");
$countries["Slovakia"] = array("Slovakia", "Slovak Republic");
$countries["Somalia"] = array("Somalia", "Republic of Somalia");
$countries["South Africa"] = array("South Africa", "Republic of South Africa");
$countries["South Korea"] = array("South Korea", "Republic of Korea");
$countries["Spain"] = array("Spain", "Kingdom of Spain");
$countries["Sri Lanka"] = array("Sri Lanka", "Democratic Socialist Republic of Sri Lanka");
$countries["Suisse"] = array("Switzerland ", "Swiss Confederation");
$countries["Sweden"] = array("Sweden", "Kingdom of Sweden");
$countries["Swiss"] = array("Switzerland ", "Swiss Confederation");
$countries["Switzerland"] = array("Switzerland ", "Swiss Confederation");
$countries["Taiwan"] = array("Taiwan", "Taiwan");
$countries["Thailand"] = array("Thailand", "Kingdom of Thailand");
$countries["The Netherlands"] = array("Netherlands", "The Netherlands");
$countries["The Philippines"] = array("Philippines", "Republic of the Philippines");
$countries["Tokelau"] = array("New Zealand", "New Zealand");
$countries["Uganda"] = array("Uganda", "Republic of Uganda");
$countries["UK"] = array("UK", "United Kingdom of Great Britain and Northern Ireland");
$countries["Ukraine"] = array("Ukraine", "Ukraine");
$countries["United Arab Emarates"] = array("United Arab Emirates", "United Arab Emirates");
$countries["United Arab Emirates"] = array("United Arab Emirates", "United Arab Emirates");
$countries["United Kingdom"] = array("UK", "United Kingdom of Great Britain and Northern Ireland");
$countries["United States"] = array("USA", "United States of America");
$countries["United States of America"] = array("USA", "United States of America");
$countries["USA"] = array("USA", "United States of America");
$countries["USA Boston"] = array("USA", "United States of America");
$countries["Vatican"] = array("Vatican City", "State of the Vatican City");
$countries["Viet Nam"] = array("Vietnam", "Socialist Republic of Vietnam");
$countries["Vietnam"] = array("Vietnam", "Socialist Republic of Vietnam");
$countries["Yugoslavia"] = array("Yugoslavia", "Yugoslavia");
$countries["Zimbabwe"] = array("Zimbabwe", "Republic of Zimbabwe");
$countries["Russia"] = array("Russia", "Russian Federation");
$countries["Iceland"] = array("Iceland", "Iceland");
$countries["Chile"] = array("Chile", "Republic of Chile");
$countries["Argentinia"] = array("Argentinia", "Argentine Republic");
$countries["Uruguay"] = array("Uruguay", "Oriental Republic of Uruguay");
$countries["Paraguay"] = array("Paraguay", "Republic of Paraguay");
$countries["Mongolia"] = array("Mongolia", "Mongolia");
/* use official name aswell */
foreach($countries as $country){
$countries[$country[1]] = $country;
}
}
function GetFullCountryName($name)
{
global $countries;
return $countries[$name][1];
}
function GetShortCountryName($name)
{
global $countries;
$name = trim($name);
if(!$name || !$countries[$name][0]){
return "Unknown";
}
return $countries[$name][0];
}
?>
setCountries();
function setCountries(){
global $countries;
$countries = array();
$countries["Albania"] = array("Albania", "Republic of Albania");
$countries["Australia"] = array("Australia", "Commonwealth of Australia");
$countries["Austria"] = array("Austria", "Republic of Austria");
$countries["Bahamas"] = array("The Bahamas", "Commonwealth of The Bahamas");
$countries["Bangladesh"] = array("Bangladesh", "The People's Republic of Bangladesh");
$countries["Belgique"] = array("Belgium ", "Kingdom of Belgium");
$countries["Belgium"] = array("Belgium ", "Kingdom of Belgium");
$countries["Belgium Brussels"] = array("Belgium ", "Kingdom of Belgium");
$countries["Beligum"] = array("Belgium", "Kingdom of Belgium");
$countries["Bolivia"] = array("Bolivia", "The Plurinational State of Bolivia");
$countries["Bosnia And Herzegovina"] = array("Bosnia and Herzegovina", "Bosnia and Herzegovina");
$countries["Bosnia and Herzegovina"] = array("Bosnia and Herzegovina", "Bosnia and Herzegovina");
$countries["Brasil"] = array("Brazil", "Federative Republic of Brazil");
$countries["Brazil"] = array("Brazil", "Federative Republic of Brazil");
$countries["Bulgaria"] = array("Bulgaria","Republic of Bulgaria");
$countries["Burkina Faso"] = array("Burkina", "Burkina Faso");
$countries["Cambodia"] = array("Cambodia", "Kingdom of Cambodia");
$countries["Cameroon"] = array("Cameroon", "Republic of Cameroon");
$countries["Canada"] = array("Canada", "Canada");
$countries["Cayman Islands"] = array("Cayman Islands", "Cayman Islands");
$countries["China"] = array("People's Republic of China", "People's Republic of China");
$countries["Costa Rica"] = array("Costa Rica", "Republic of Costa Rica");
$countries["Croatia"] = array("Croatia", "Republic of Croatia");
$countries["Cyprus"] = array("Cyprus", "Republic of Cyprus");
$countries["Czech Rep."] = array("Czech Republic", "Czech Republic");
$countries["Czech Republic"] = array("Czech Republic", "Czech Republic");
$countries["Denmark"] = array("Denmark", "Denmark");
$countries["Ecuador"] = array("Ecuador", "Republic of Ecuador");
$countries["Estonia"] = array("Estonia", "Republic of Estonia");
$countries["Finland"] = array("Finland", "Republic of Finland");
$countries["France"] = array("France", "French Republic");
$countries["Germany"] = array("Germany", "Federal Republic of Germany");
$countries["Greece"] = array("Greece", "Hellenic Republic");
$countries["Greece - Belgium"] = array("Greece", "Hellenic Republic");
$countries["Hong Kong"] = array("Hong Kong", "Hong Kong");
$countries["Hungary"] = array("Hungary", "Republic of Hungary");
$countries["India"] = array("India", "Republic of India");
$countries["Indonesia"] = array("Indonesia", "Republic of Indonesia");
$countries["Iran"] = array("Iran", "Islamic Republic of Iran");
$countries["Iran, Islamic Republic Of"] = array("Iran", "Islamic Republic of Iran");
$countries["Ireland"] = array("Ireland", "Ireland");
$countries["Israel"] = array("Israel", "State of Israel");
$countries["Italy"] = array("Italy", "Italian Republic");
$countries["Japan"] = array("Japan", "Japan");
$countries["Jordan"] = array("Jordan", "Hashemite Kingdom of Jordan");
$countries["Korea"] = array("South Korea", "Republic of Korea");
$countries["Korea - South"] = array("South Korea", "Republic of Korea");
$countries["Korea, Republic Of"] = array("South Korea", "Republic of Korea");
$countries["Kosovo"] = array("Kosovo", "Republic of Kosovo");
$countries["Lao People's Democratic Republic"] = array("Laos", "Lao People's Democratic Republic");
$countries["Laos"] = array("Laos", "Lao People's Democratic Republic");
$countries["Lebanon"] = array("Lebanon", "Republic of Lebanon");
$countries["United States"] = array("USA", "United States of America");
$countries["Luxembourg"] = array("Luxembourg", "Grand Duchy of Luxembourg");
$countries["Luxemburg"] = array("Luxembourg", "Grand Duchy of Luxembourg");
$countries["Macedonia"] = array("Macedonia", "Republic of Macedonia");
$countries["Macedonia, The Former Yugoslav Republic Of"] = array("Macedonia", "Republic of Macedonia");
$countries["Malaysia"] = array("Malaysia", "Malaysia");
$countries["Manila"] = array("Philippines", "Republic of the Philippines");
$countries["Mauritius"] = array("Mauritius", "Republic of Mauritius");
$countries["Germany"] = array("Germany", "Federal Republic of Germany");
$countries["Mexico"] = array("Mexico", "United Mexican States");
$countries["Micronesia"] = array("Micronesia", "Micronesia");
$countries["Monaco"] = array("Monaco", "Principality of Monaco");
$countries["Nederland"] = array("Netherlands", "The Netherlands");
$countries["Nepal"] = array("Nepal", "Federal Democratic Republic of Nepal");
$countries["Netherlands"] = array("Netherlands", "The Netherlands");
$countries["New Zealand"] = array("New Zealand", "New Zealand");
$countries["Nigeria"] = array("Nigeria", "Federal Republic of Nigeria");
$countries["Norway"] = array("Norway", "Kingdom of Norway");
$countries["Pakistan"] = array("Pakistan", "Islamic Republic of Pakistan");
$countries["People's Republic of China"] = array("People's Republic of China", "People's Republic of China");
$countries["Peru"] = array("Peru", "Republic of Peru");
$countries["Philippines"] = array("Philippines", "Republic of the Philippines");
$countries["Poland"] = array("Poland", "Republic of Poland");
$countries["Portugal"] = array("Portugal", "Portuguese Republic");
$countries["Qatar"] = array("Qatar", "State of Qatar");
$countries["Republic of Indonesia"] = array("Indonesia", "Republic of Indonesia");
$countries["Republic of Korea"] = array("South Korea", "Republic of Korea");
$countries["Republic of South Africa"] = array("South Africa", "Republic of South Africa");
$countries["Romania"] = array("Romania", "Romania");
$countries["Rwanda"] = array("Rwanda", "Republic of Rwanda");
$countries["Serbia"] = array("Serbia", "Republic of Serbia");
$countries["Serbia And Montenegro"] = array("Serbia And Montenegro", "Serbia And Montenegro");
$countries["Sierra Leone"] = array("Sierra Leone", "Republic of Sierra Leone");
$countries["Singapore"] = array("Singapore", "Republic of Singapore");
$countries["Slovakia"] = array("Slovakia", "Slovak Republic");
$countries["Somalia"] = array("Somalia", "Republic of Somalia");
$countries["South Africa"] = array("South Africa", "Republic of South Africa");
$countries["South Korea"] = array("South Korea", "Republic of Korea");
$countries["Spain"] = array("Spain", "Kingdom of Spain");
$countries["Sri Lanka"] = array("Sri Lanka", "Democratic Socialist Republic of Sri Lanka");
$countries["Suisse"] = array("Switzerland ", "Swiss Confederation");
$countries["Sweden"] = array("Sweden", "Kingdom of Sweden");
$countries["Swiss"] = array("Switzerland ", "Swiss Confederation");
$countries["Switzerland"] = array("Switzerland ", "Swiss Confederation");
$countries["Taiwan"] = array("Taiwan", "Taiwan");
$countries["Thailand"] = array("Thailand", "Kingdom of Thailand");
$countries["The Netherlands"] = array("Netherlands", "The Netherlands");
$countries["The Philippines"] = array("Philippines", "Republic of the Philippines");
$countries["Tokelau"] = array("New Zealand", "New Zealand");
$countries["Uganda"] = array("Uganda", "Republic of Uganda");
$countries["UK"] = array("UK", "United Kingdom of Great Britain and Northern Ireland");
$countries["Ukraine"] = array("Ukraine", "Ukraine");
$countries["United Arab Emarates"] = array("United Arab Emirates", "United Arab Emirates");
$countries["United Arab Emirates"] = array("United Arab Emirates", "United Arab Emirates");
$countries["United Kingdom"] = array("UK", "United Kingdom of Great Britain and Northern Ireland");
$countries["United States"] = array("USA", "United States of America");
$countries["United States of America"] = array("USA", "United States of America");
$countries["USA"] = array("USA", "United States of America");
$countries["USA Boston"] = array("USA", "United States of America");
$countries["Vatican"] = array("Vatican City", "State of the Vatican City");
$countries["Viet Nam"] = array("Vietnam", "Socialist Republic of Vietnam");
$countries["Vietnam"] = array("Vietnam", "Socialist Republic of Vietnam");
$countries["Yugoslavia"] = array("Yugoslavia", "Yugoslavia");
$countries["Zimbabwe"] = array("Zimbabwe", "Republic of Zimbabwe");
$countries["Russia"] = array("Russia", "Russian Federation");
$countries["Iceland"] = array("Iceland", "Iceland");
$countries["Chile"] = array("Chile", "Republic of Chile");
$countries["Argentinia"] = array("Argentinia", "Argentine Republic");
$countries["Uruguay"] = array("Uruguay", "Oriental Republic of Uruguay");
$countries["Paraguay"] = array("Paraguay", "Republic of Paraguay");
$countries["Mongolia"] = array("Mongolia", "Mongolia");
/* use official name aswell */
foreach($countries as $country){
$countries[$country[1]] = $country;
}
}
function GetFullCountryName($name)
{
global $countries;
return $countries[$name][1];
}
function GetShortCountryName($name)
{
global $countries;
$name = trim($name);
if(!$name || !$countries[$name][0]){
return "Unknown";
}
return $countries[$name][0];
}
?>
Gewijzigd op 21/07/2011 11:47:13 door Stephen c
Wat houdt je tegen om het te proberen?
Bedankt voor je reactie, Ik weet nog niet genoeg in php om te weten als het fout loopt. De site in in Joomla en soms in Joomla kan het flink fout gaan;-) Ik dacht dat iemand hier mij kan vertellen als het zonder probleem zou kunnen werken.
Probeer het, krijg je een fout dan post je die hier en dan kunnen we jou verder helpen.
Ik ga vandaag op Vakantie dus gelijk op mijn eerste dag terug doe ik het ;-)
Bedankt voor julie advies
Stephen
Gewijzigd op 21/07/2011 13:33:06 door Stephen c
Bedankt,
Stephen
Zo..., vijf maanden vakantie?
Toevoeging op 20/12/2011 14:50:17:
Stephen c op 20/12/2011 14:49:03:
;-) klink lekker, maar nee. Ik vind het altijd goed om te reageren of feedback geven aan mensen die advies geeft.