Jump to the post that solved this thread.
Solved: 6 Years, 2 Months, 1 Week ago Edit in Plugin Of MyBB Help!!!
#1
Solved: 6 Years, 2 Months, 1 Week ago
Hello,
Can anyone help me to remove 'No Specified + Israel' from this pluginΒ 
https://community.mybb.com/mods.php?action=view&pid=55
Please...
I will be thankful in all cases.
π“œπ“¨π“‘π“‘ π“›π“žπ“₯𝓔𝓑 ❀️
Reply
#2
Solved: 6 Years, 2 Months, 1 Week ago
You may want to change the name of your thread; it will be closed shortly due to its title.

I'd have to dig through that plugin to see how they determine a list of countries, but you should be able to upload a flag file to the right directory. The plugin's language file may also need to be updated to include Israel.
Reply
#3
Solved: 6 Years, 2 Months, 1 Week ago
You don't have any rights to say that, let who have access decide
π“œπ“¨π“‘π“‘ π“›π“žπ“₯𝓔𝓑 ❀️
Reply
#4
Solved: 6 Years, 2 Months, 1 Week ago
(2018-09-28, 05:30 PM)iKsu Wrote: Hello,
Can anyone help me to remove 'No Specified + Israel' from this pluginΒ 
https://community.mybb.com/mods.php?action=view&pid=55
Please...
I will be thankful in all cases.

Just a thought but have tried find this in the plugin:


(110, '<lang:country_israel>', 'images/flags/israel.png'),

and make sure there is no typo? Also perhaps make sure you have the israel.png in the flags folder.

And make sure the language file has still this in it.


$l['country_israel'] = "Israel";
Reply
#5
Solved: 6 Years, 2 Months, 1 Week ago
I want to remove 'Israel' not to add it, what are you saying @Vintageddadyo ??
π“œπ“¨π“‘π“‘ π“›π“žπ“₯𝓔𝓑 ❀️
Reply
#6
Solved: 6 Years, 2 Months, 1 Week ago
(2018-09-28, 06:54 PM)iKsu Wrote: I want to remove 'Israel' not to add it, what are you saying @Vintageddadyo ??

Is this what you meant? It removes Israel, from being inserted into db on install, it removes the Israel language string as well as removes the Israeli flag image from package which achieves exactly what you asked for except I did not touch on the no specified and I am not sure that removing not specified is optimal because it is exactly what it says a selection for non specified country origin?


.zip   Country Flag_no_Israel.zip (Size: 259.25 KB / Downloads: 87)


* as you can see by the image, Israel is no longer an option for selection. And by removing the language string and image and not just the db insert from the file makes for a more complete and precise removal of the entire reference from the package. Wink

** Now, if your are a stickler for detail like I am you will notice in the plugin code that by removing the db insert the country id number 110 in db insert the country id numbers now goΒ  for example: 109 then 111 as we removed 110. If you want to have that not be the case then each country insert after 109 will have to be re-numbered.

For example:

This will need to be changed:


	$db->write_query("INSERT INTO ".TABLE_PREFIX."countries (cid, name, flag) VALUES
(1, '<lang:country_afghanistan>', 'images/flags/afghanistan.png'),
(2, '<lang:country_aland_islands>', 'images/flags/aland_islands.png'),
(3, '<lang:country_albania>', 'images/flags/albania.png'),
(4, '<lang:country_algeria>', 'images/flags/algeria.png'),
(5, '<lang:country_american_samoa>', 'images/flags/american_samoa.png'),
(6, '<lang:country_andorra>', 'images/flags/andorra.png'),
(7, '<lang:country_angola>', 'images/flags/angola.png'),
(8, '<lang:country_anguilla>', 'images/flags/anguilla.png'),
(9, '<lang:country_antarctica>', 'images/flags/antarctica.png'),
(10, '<lang:country_antigua_and_barbuda>', 'images/flags/antigua_and_barbuda.png'),
(11, '<lang:country_argentina>', 'images/flags/argentina.png'),
(12, '<lang:country_armenia>', 'images/flags/armenia.png'),
(13, '<lang:country_aruba>', 'images/flags/aruba.png'),
(14, '<lang:country_australia>', 'images/flags/australia.png'),
(15, '<lang:country_austria>', 'images/flags/austria.png'),
(16, '<lang:country_azerbaijan>', 'images/flags/azerbaijan.png'),
(17, '<lang:country_azores>', 'images/flags/azores.png'),
(18, '<lang:country_bahamas>', 'images/flags/bahamas.png'),
(19, '<lang:country_bahrain>', 'images/flags/bahrain.png'),
(20, '<lang:country_bangladesh>', 'images/flags/bangladesh.png'),
(21, '<lang:country_barbados>', 'images/flags/barbados.png'),
(22, '<lang:country_belarus>', 'images/flags/belarus.png'),
(23, '<lang:country_belgium>', 'images/flags/belgium.png'),
(24, '<lang:country_belize>', 'images/flags/belize.png'),
(25, '<lang:country_benin>', 'images/flags/benin.png'),
(26, '<lang:country_bermuda>', 'images/flags/bermuda.png'),
(27, '<lang:country_bhutan>', 'images/flags/bhutan.png'),
(28, '<lang:country_bolivia>', 'images/flags/bolivia.png'),
(29, '<lang:country_bosnia_and_herzegovina>', 'images/flags/bosnia_and_herzegovina.png'),
(30, '<lang:country_botswana>', 'images/flags/botswana.png'),
(31, '<lang:country_brazil>', 'images/flags/brazil.png'),
(32, '<lang:country_british_antarctic_territory>', 'images/flags/british_antarctic_territory.png'),
(33, '<lang:country_british_indian_ocean_territory>', 'images/flags/british_indian_ocean_territory.png'),
(34, '<lang:country_british_virgin_islands>', 'images/flags/british_virgin_islands.png'),
(35, '<lang:country_brunei>', 'images/flags/brunei.png'),
(36, '<lang:country_bulgaria>', 'images/flags/bulgaria.png'),
(37, '<lang:country_burkina_faso>', 'images/flags/burkina_faso.png'),
(38, '<lang:country_burundi>', 'images/flags/burundi.png'),
(39, '<lang:country_cambodia>', 'images/flags/cambodia.png'),
(40, '<lang:country_cameroon>', 'images/flags/cameroon.png'),
(41, '<lang:country_canada>', 'images/flags/canada.png'),
(42, '<lang:country_canary_islands>', 'images/flags/canary_islands.png'),
(43, '<lang:country_cape_verde>', 'images/flags/cape_verde.png'),
(44, '<lang:country_cayman_islands>', 'images/flags/cayman_islands.png'),
(45, '<lang:country_central_african_republic>', 'images/flags/central_african_republic.png'),
(46, '<lang:country_chad>', 'images/flags/chad.png'),
(47, '<lang:country_chile>', 'images/flags/chile.png'),
(48, '<lang:country_china>', 'images/flags/china.png'),
(49, '<lang:country_christmas_island>', 'images/flags/christmas_island.png'),
(50, '<lang:country_cocos_islands>', 'images/flags/cocos_islands.png'),
(51, '<lang:country_colombia>', 'images/flags/colombia.png'),
(52, '<lang:country_comoros>', 'images/flags/comoros.png'),
(53, '<lang:country_congo_democratic_republic>', 'images/flags/congo_democratic_republic.png'),
(54, '<lang:country_congo_republic>', 'images/flags/congo_republic.png'),
(55, '<lang:country_cook_islands>', 'images/flags/cook_islands.png'),
(56, '<lang:country_costa_rica>', 'images/flags/costa_rica.png'),
(57, '<lang:country_cote_divoire>', 'images/flags/cote_divoire.png'),
(58, '<lang:country_croatia>', 'images/flags/croatia.png'),
(59, '<lang:country_cuba>', 'images/flags/cuba.png'),
(60, '<lang:country_curacao>', 'images/flags/curacao.png'),
(61, '<lang:country_cyprus>', 'images/flags/cyprus.png'),
(62, '<lang:country_czech_republic>', 'images/flags/czech_republic.png'),
(63, '<lang:country_denmark>', 'images/flags/denmark.png'),
(64, '<lang:country_djibouti>', 'images/flags/djibouti.png'),
(65, '<lang:country_dominica>', 'images/flags/dominica.png'),
(66, '<lang:country_dominican_republic>', 'images/flags/dominican_republic.png'),
(67, '<lang:country_east_timor>', 'images/flags/east_timor.png'),
(68, '<lang:country_ecuador>', 'images/flags/ecuador.png'),
(69, '<lang:country_egypt>', 'images/flags/egypt.png'),
(70, '<lang:country_el_salvador>', 'images/flags/el_salvador.png'),
(71, '<lang:country_equatorial_guinea>', 'images/flags/equatorial_guinea.png'),
(72, '<lang:country_eritrea>', 'images/flags/eritrea.png'),
(73, '<lang:country_estonia>', 'images/flags/estonia.png'),
(74, '<lang:country_ethiopia>', 'images/flags/ethiopia.png'),
(75, '<lang:country_falkland_islands>', 'images/flags/falkland_islands.png'),
(76, '<lang:country_faroe_islands>', 'images/flags/faroe_islands.png'),
(77, '<lang:country_fiji>', 'images/flags/fiji.png'),
(78, '<lang:country_finland>', 'images/flags/finland.png'),
(79, '<lang:country_france>', 'images/flags/france.png'),
(80, '<lang:country_french_guiana>', 'images/flags/french_guiana.png'),
(81, '<lang:country_french_polynesia>', 'images/flags/french_polynesia.png'),
(82, '<lang:country_french_southern_and_antarctic_lands>', 'images/flags/french_southern_and_antarctic_lands.png'),
(83, '<lang:country_gabon>', 'images/flags/gabon.png'),
(84, '<lang:country_gambia>', 'images/flags/gambia.png'),
(85, '<lang:country_georgia>', 'images/flags/georgia.png'),
(86, '<lang:country_germany>', 'images/flags/germany.png'),
(87, '<lang:country_ghana>', 'images/flags/ghana.png'),
(88, '<lang:country_gibraltar>', 'images/flags/gibraltar.png'),
(89, '<lang:country_greece>', 'images/flags/greece.png'),
(90, '<lang:country_greenland>', 'images/flags/greenland.png'),
(91, '<lang:country_grenada>', 'images/flags/grenada.png'),
(92, '<lang:country_guadeloupe>', 'images/flags/guadeloupe.png'),
(93, '<lang:country_guam>', 'images/flags/guam.png'),
(94, '<lang:country_guatemala>', 'images/flags/guatemala.png'),
(95, '<lang:country_guernsey>', 'images/flags/guernsey.png'),
(96, '<lang:country_guinea>', 'images/flags/guinea.png'),
(97, '<lang:country_guinea_bissau>', 'images/flags/guinea_bissau.png'),
(98, '<lang:country_guyana>', 'images/flags/guyana.png'),
(99, '<lang:country_haiti>', 'images/flags/haiti.png'),
(100, '<lang:country_honduras>', 'images/flags/honduras.png'),
(101, '<lang:country_hong_kong>', 'images/flags/hong_kong.png'),
(102, '<lang:country_hungary>', 'images/flags/hungary.png'),
(103, '<lang:country_iceland>', 'images/flags/iceland.png'),
(104, '<lang:country_india>', 'images/flags/india.png'),
(105, '<lang:country_indonesia>', 'images/flags/indonesia.png'),
(106, '<lang:country_iran>', 'images/flags/iran.png'),
(107, '<lang:country_iraq>', 'images/flags/iraq.png'),
(108, '<lang:country_ireland>', 'images/flags/ireland.png'),
(109, '<lang:country_isle_of_man>', 'images/flags/isle_of_man.png'),
(111, '<lang:country_italy>', 'images/flags/italy.png'),
(112, '<lang:country_jamaica>', 'images/flags/jamaica.png'),
(113, '<lang:country_japan>', 'images/flags/japan.png'),
(114, '<lang:country_jersey>', 'images/flags/jersey.png'),
(115, '<lang:country_jordan>', 'images/flags/jordan.png'),
(116, '<lang:country_kazakhstan>', 'images/flags/kazakhstan.png'),
(117, '<lang:country_kenya>', 'images/flags/kenya.png'),
(118, '<lang:country_kiribati>', 'images/flags/kiribati.png'),
(119, '<lang:country_kosovo>', 'images/flags/kosovo.png'),
(120, '<lang:country_kuwait>', 'images/flags/kuwait.png'),
(121, '<lang:country_kyrgyzstan>', 'images/flags/kyrgyzstan.png'),
(122, '<lang:country_laos>', 'images/flags/laos.png'),
(123, '<lang:country_latvia>', 'images/flags/latvia.png'),
(124, '<lang:country_lebanon>', 'images/flags/lebanon.png'),
(125, '<lang:country_lesotho>', 'images/flags/lesotho.png'),
(126, '<lang:country_liberia>', 'images/flags/liberia.png'),
(127, '<lang:country_libya>', 'images/flags/libya.png'),
(128, '<lang:country_liechtenstein>', 'images/flags/liechtenstein.png'),
(129, '<lang:country_lithuania>', 'images/flags/lithuania.png'),
(130, '<lang:country_luxembourg>', 'images/flags/luxembourg.png'),
(131, '<lang:country_macau>', 'images/flags/macau.png'),
(132, '<lang:country_macedonia>', 'images/flags/macedonia.png'),
(133, '<lang:country_madagascar>', 'images/flags/madagascar.png'),
(134, '<lang:country_madeira>', 'images/flags/madeira.png'),
(135, '<lang:country_malawi>', 'images/flags/malawi.png'),
(136, '<lang:country_malaysia>', 'images/flags/malaysia.png'),
(137, '<lang:country_maldives>', 'images/flags/maldives.png'),
(138, '<lang:country_mali>', 'images/flags/mali.png'),
(139, '<lang:country_malta>', 'images/flags/malta.png'),
(140, '<lang:country_marshall_islands>', 'images/flags/marshall_islands.png'),
(141, '<lang:country_martinique>', 'images/flags/martinique.png'),
(142, '<lang:country_mauritania>', 'images/flags/mauritania.png'),
(143, '<lang:country_mauritius>', 'images/flags/mauritius.png'),
(144, '<lang:country_mayotte>', 'images/flags/mayotte.png'),
(145, '<lang:country_mexico>', 'images/flags/mexico.png'),
(146, '<lang:country_micronesia>', 'images/flags/micronesia.png'),
(147, '<lang:country_moldova>', 'images/flags/moldova.png'),
(148, '<lang:country_monaco>', 'images/flags/monaco.png'),
(149, '<lang:country_mongolia>', 'images/flags/mongolia.png'),
(150, '<lang:country_montenegro>', 'images/flags/montenegro.png'),
(151, '<lang:country_montserrat>', 'images/flags/montserrat.png'),
(152, '<lang:country_morocco>', 'images/flags/morocco.png'),
(153, '<lang:country_mozambique>', 'images/flags/mozambique.png'),
(154, '<lang:country_myanmar>', 'images/flags/myanmar.png'),
(155, '<lang:country_namibia>', 'images/flags/namibia.png'),
(156, '<lang:country_nauru>', 'images/flags/nauru.png'),
(157, '<lang:country_nepal>', 'images/flags/nepal.png'),
(158, '<lang:country_netherlands>', 'images/flags/netherlands.png'),
(159, '<lang:country_new_caledonia>', 'images/flags/new_caledonia.png'),
(160, '<lang:country_new_zealand>', 'images/flags/new_zealand.png'),
(161, '<lang:country_nicaragua>', 'images/flags/nicaragua.png'),
(162, '<lang:country_niger>', 'images/flags/niger.png'),
(163, '<lang:country_nigeria>', 'images/flags/nigeria.png'),
(164, '<lang:country_niue>', 'images/flags/niue.png'),
(165, '<lang:country_norfolk_island>', 'images/flags/norfolk_island.png'),
(166, '<lang:country_north_korea>', 'images/flags/north_korea.png'),
(167, '<lang:country_northern_mariana_islands>', 'images/flags/northern_mariana_islands.png'),
(168, '<lang:country_norway>', 'images/flags/norway.png'),
(169, '<lang:country_oman>', 'images/flags/oman.png'),
(170, '<lang:country_pakistan>', 'images/flags/pakistan.png'),
(171, '<lang:country_palau>', 'images/flags/palau.png'),
(172, '<lang:country_palestine>', 'images/flags/palestine.png'),
(173, '<lang:country_panama>', 'images/flags/panama.png'),
(174, '<lang:country_papua_new_guinea>', 'images/flags/papua_new_guinea.png'),
(175, '<lang:country_paraguay>', 'images/flags/paraguay.png'),
(176, '<lang:country_peru>', 'images/flags/peru.png'),
(177, '<lang:country_philippines>', 'images/flags/philippines.png'),
(178, '<lang:country_pitcairn_islands>', 'images/flags/pitcairn_islands.png'),
(179, '<lang:country_poland>', 'images/flags/poland.png'),
(180, '<lang:country_portugal>', 'images/flags/portugal.png'),
(181, '<lang:country_puerto_rico>', 'images/flags/puerto_rico.png'),
(182, '<lang:country_qatar>', 'images/flags/qatar.png'),
(183, '<lang:country_reunion>', 'images/flags/reunion.png'),
(184, '<lang:country_romania>', 'images/flags/romania.png'),
(185, '<lang:country_russia>', 'images/flags/russia.png'),
(186, '<lang:country_rwanda>', 'images/flags/rwanda.png'),
(187, '<lang:country_saint_barthelemy>', 'images/flags/saint_barthelemy.png'),
(188, '<lang:country_saint_helena_ascension_and_tristan_da_cunha>', 'images/flags/saint_helena_ascension_and_tristan_da_cunha.png'),
(189, '<lang:country_saint_kitts_and_nevis>', 'images/flags/saint_kitts_and_nevis.png'),
(190, '<lang:country_saint_lucia>', 'images/flags/saint_lucia.png'),
(191, '<lang:country_saint_martin>', 'images/flags/saint_martin.png'),
(192, '<lang:country_saint_pierre_and_miquelon>', 'images/flags/saint_pierre_and_miquelon.png'),
(193, '<lang:country_saint_vincent_and_the_grenadines>', 'images/flags/saint_vincent_and_the_grenadines.png'),
(194, '<lang:country_samoa>', 'images/flags/samoa.png'),
(195, '<lang:country_san_marino>', 'images/flags/san_marino.png'),
(196, '<lang:country_sao_tome_and_principe>', 'images/flags/sao_tome_and_principe.png'),
(197, '<lang:country_saudi_arabia>', 'images/flags/saudi_arabia.png'),
(198, '<lang:country_senegal>', 'images/flags/senegal.png'),
(199, '<lang:country_serbia>', 'images/flags/serbia.png'),
(200, '<lang:country_seychelles>', 'images/flags/seychelles.png'),
(201, '<lang:country_sierra_leone>', 'images/flags/sierra_leone.png'),
(202, '<lang:country_singapore>', 'images/flags/singapore.png'),
(203, '<lang:country_sint_maarten>', 'images/flags/sint_maarten.png'),
(204, '<lang:country_slovakia>', 'images/flags/slovakia.png'),
(205, '<lang:country_slovenia>', 'images/flags/slovenia.png'),
(206, '<lang:country_solomon_islands>', 'images/flags/solomon_islands.png'),
(207, '<lang:country_somalia>', 'images/flags/somalia.png'),
(208, '<lang:country_south_africa>', 'images/flags/south_africa.png'),
(209, '<lang:country_south_georgia_and_the_south_sandwich_islands>', 'images/flags/south_georgia_and_the_south_sandwich_islands.png'),
(210, '<lang:country_south_korea>', 'images/flags/south_korea.png'),
(211, '<lang:country_south_sudan>', 'images/flags/south_sudan.png'),
(212, '<lang:country_spain>', 'images/flags/spain.png'),
(213, '<lang:country_sri_lanka>', 'images/flags/sri_lanka.png'),
(214, '<lang:country_sudan>', 'images/flags/sudan.png'),
(215, '<lang:country_suriname>', 'images/flags/suriname.png'),
(216, '<lang:country_swaziland>', 'images/flags/swaziland.png'),
(217, '<lang:country_sweden>', 'images/flags/sweden.png'),
(218, '<lang:country_switzerland>', 'images/flags/switzerland.png'),
(219, '<lang:country_syria>', 'images/flags/syria.png'),
(220, '<lang:country_taiwan>', 'images/flags/taiwan.png'),
(221, '<lang:country_tajikistan>', 'images/flags/tajikistan.png'),
(222, '<lang:country_tanzania>', 'images/flags/tanzania.png'),
(223, '<lang:country_thailand>', 'images/flags/thailand.png'),
(224, '<lang:country_togo>', 'images/flags/togo.png'),
(225, '<lang:country_tokelau>', 'images/flags/tokelau.png'),
(226, '<lang:country_tonga>', 'images/flags/tonga.png'),
(227, '<lang:country_trinidad_and_tobago>', 'images/flags/trinidad_and_tobago.png'),
(228, '<lang:country_tunisia>', 'images/flags/tunisia.png'),
(229, '<lang:country_turkey>', 'images/flags/turkey.png'),
(230, '<lang:country_turkmenistan>', 'images/flags/turkmenistan.png'),
(231, '<lang:country_turks_and_caicos_islands>', 'images/flags/turks_and_caicos_islands.png'),
(232, '<lang:country_tuvalu>', 'images/flags/tuvalu.png'),
(233, '<lang:country_uganda>', 'images/flags/uganda.png'),
(234, '<lang:country_ukraine>', 'images/flags/ukraine.png'),
(235, '<lang:country_united_arab_emirates>', 'images/flags/united_arab_emirates.png'),
(236, '<lang:country_united_kingdom>', 'images/flags/united_kingdom.png'),
(237, '<lang:country_united_states>', 'images/flags/united_states.png'),
(238, '<lang:country_united_states_minor_outlying_islands>', 'images/flags/united_states_minor_outlying_islands.png'),
(239, '<lang:country_united_states_virgin_islands>', 'images/flags/united_states_virgin_islands.png'),
(240, '<lang:country_uruguay>', 'images/flags/uruguay.png'),
(241, '<lang:country_uzbekistan>', 'images/flags/uzbekistan.png'),
(242, '<lang:country_vanuatu>', 'images/flags/vanuatu.png'),
(243, '<lang:country_vatican_city>', 'images/flags/vatican_city.png'),
(244, '<lang:country_venezuela>', 'images/flags/venezuela.png'),
(245, '<lang:country_vietnam>', 'images/flags/vietnam.png'),
(246, '<lang:country_wallis_and_futuna_islands>', 'images/flags/wallis_and_futuna_islands.png'),
(247, '<lang:country_western_sahara>', 'images/flags/western_sahara.png'),
(248, '<lang:country_yemen>', 'images/flags/yemen.png'),
(249, '<lang:country_zambia>', 'images/flags/zambia.png'),
(250, '<lang:country_zimbabwe>', 'images/flags/zimbabwe.png')");


To:
	$db->write_query("INSERT INTO ".TABLE_PREFIX."countries (cid, name, flag) VALUES
(1, '<lang:country_afghanistan>', 'images/flags/afghanistan.png'),
(2, '<lang:country_aland_islands>', 'images/flags/aland_islands.png'),
(3, '<lang:country_albania>', 'images/flags/albania.png'),
(4, '<lang:country_algeria>', 'images/flags/algeria.png'),
(5, '<lang:country_american_samoa>', 'images/flags/american_samoa.png'),
(6, '<lang:country_andorra>', 'images/flags/andorra.png'),
(7, '<lang:country_angola>', 'images/flags/angola.png'),
(8, '<lang:country_anguilla>', 'images/flags/anguilla.png'),
(9, '<lang:country_antarctica>', 'images/flags/antarctica.png'),
(10, '<lang:country_antigua_and_barbuda>', 'images/flags/antigua_and_barbuda.png'),
(11, '<lang:country_argentina>', 'images/flags/argentina.png'),
(12, '<lang:country_armenia>', 'images/flags/armenia.png'),
(13, '<lang:country_aruba>', 'images/flags/aruba.png'),
(14, '<lang:country_australia>', 'images/flags/australia.png'),
(15, '<lang:country_austria>', 'images/flags/austria.png'),
(16, '<lang:country_azerbaijan>', 'images/flags/azerbaijan.png'),
(17, '<lang:country_azores>', 'images/flags/azores.png'),
(18, '<lang:country_bahamas>', 'images/flags/bahamas.png'),
(19, '<lang:country_bahrain>', 'images/flags/bahrain.png'),
(20, '<lang:country_bangladesh>', 'images/flags/bangladesh.png'),
(21, '<lang:country_barbados>', 'images/flags/barbados.png'),
(22, '<lang:country_belarus>', 'images/flags/belarus.png'),
(23, '<lang:country_belgium>', 'images/flags/belgium.png'),
(24, '<lang:country_belize>', 'images/flags/belize.png'),
(25, '<lang:country_benin>', 'images/flags/benin.png'),
(26, '<lang:country_bermuda>', 'images/flags/bermuda.png'),
(27, '<lang:country_bhutan>', 'images/flags/bhutan.png'),
(28, '<lang:country_bolivia>', 'images/flags/bolivia.png'),
(29, '<lang:country_bosnia_and_herzegovina>', 'images/flags/bosnia_and_herzegovina.png'),
(30, '<lang:country_botswana>', 'images/flags/botswana.png'),
(31, '<lang:country_brazil>', 'images/flags/brazil.png'),
(32, '<lang:country_british_antarctic_territory>', 'images/flags/british_antarctic_territory.png'),
(33, '<lang:country_british_indian_ocean_territory>', 'images/flags/british_indian_ocean_territory.png'),
(34, '<lang:country_british_virgin_islands>', 'images/flags/british_virgin_islands.png'),
(35, '<lang:country_brunei>', 'images/flags/brunei.png'),
(36, '<lang:country_bulgaria>', 'images/flags/bulgaria.png'),
(37, '<lang:country_burkina_faso>', 'images/flags/burkina_faso.png'),
(38, '<lang:country_burundi>', 'images/flags/burundi.png'),
(39, '<lang:country_cambodia>', 'images/flags/cambodia.png'),
(40, '<lang:country_cameroon>', 'images/flags/cameroon.png'),
(41, '<lang:country_canada>', 'images/flags/canada.png'),
(42, '<lang:country_canary_islands>', 'images/flags/canary_islands.png'),
(43, '<lang:country_cape_verde>', 'images/flags/cape_verde.png'),
(44, '<lang:country_cayman_islands>', 'images/flags/cayman_islands.png'),
(45, '<lang:country_central_african_republic>', 'images/flags/central_african_republic.png'),
(46, '<lang:country_chad>', 'images/flags/chad.png'),
(47, '<lang:country_chile>', 'images/flags/chile.png'),
(48, '<lang:country_china>', 'images/flags/china.png'),
(49, '<lang:country_christmas_island>', 'images/flags/christmas_island.png'),
(50, '<lang:country_cocos_islands>', 'images/flags/cocos_islands.png'),
(51, '<lang:country_colombia>', 'images/flags/colombia.png'),
(52, '<lang:country_comoros>', 'images/flags/comoros.png'),
(53, '<lang:country_congo_democratic_republic>', 'images/flags/congo_democratic_republic.png'),
(54, '<lang:country_congo_republic>', 'images/flags/congo_republic.png'),
(55, '<lang:country_cook_islands>', 'images/flags/cook_islands.png'),
(56, '<lang:country_costa_rica>', 'images/flags/costa_rica.png'),
(57, '<lang:country_cote_divoire>', 'images/flags/cote_divoire.png'),
(58, '<lang:country_croatia>', 'images/flags/croatia.png'),
(59, '<lang:country_cuba>', 'images/flags/cuba.png'),
(60, '<lang:country_curacao>', 'images/flags/curacao.png'),
(61, '<lang:country_cyprus>', 'images/flags/cyprus.png'),
(62, '<lang:country_czech_republic>', 'images/flags/czech_republic.png'),
(63, '<lang:country_denmark>', 'images/flags/denmark.png'),
(64, '<lang:country_djibouti>', 'images/flags/djibouti.png'),
(65, '<lang:country_dominica>', 'images/flags/dominica.png'),
(66, '<lang:country_dominican_republic>', 'images/flags/dominican_republic.png'),
(67, '<lang:country_east_timor>', 'images/flags/east_timor.png'),
(68, '<lang:country_ecuador>', 'images/flags/ecuador.png'),
(69, '<lang:country_egypt>', 'images/flags/egypt.png'),
(70, '<lang:country_el_salvador>', 'images/flags/el_salvador.png'),
(71, '<lang:country_equatorial_guinea>', 'images/flags/equatorial_guinea.png'),
(72, '<lang:country_eritrea>', 'images/flags/eritrea.png'),
(73, '<lang:country_estonia>', 'images/flags/estonia.png'),
(74, '<lang:country_ethiopia>', 'images/flags/ethiopia.png'),
(75, '<lang:country_falkland_islands>', 'images/flags/falkland_islands.png'),
(76, '<lang:country_faroe_islands>', 'images/flags/faroe_islands.png'),
(77, '<lang:country_fiji>', 'images/flags/fiji.png'),
(78, '<lang:country_finland>', 'images/flags/finland.png'),
(79, '<lang:country_france>', 'images/flags/france.png'),
(80, '<lang:country_french_guiana>', 'images/flags/french_guiana.png'),
(81, '<lang:country_french_polynesia>', 'images/flags/french_polynesia.png'),
(82, '<lang:country_french_southern_and_antarctic_lands>', 'images/flags/french_southern_and_antarctic_lands.png'),
(83, '<lang:country_gabon>', 'images/flags/gabon.png'),
(84, '<lang:country_gambia>', 'images/flags/gambia.png'),
(85, '<lang:country_georgia>', 'images/flags/georgia.png'),
(86, '<lang:country_germany>', 'images/flags/germany.png'),
(87, '<lang:country_ghana>', 'images/flags/ghana.png'),
(88, '<lang:country_gibraltar>', 'images/flags/gibraltar.png'),
(89, '<lang:country_greece>', 'images/flags/greece.png'),
(90, '<lang:country_greenland>', 'images/flags/greenland.png'),
(91, '<lang:country_grenada>', 'images/flags/grenada.png'),
(92, '<lang:country_guadeloupe>', 'images/flags/guadeloupe.png'),
(93, '<lang:country_guam>', 'images/flags/guam.png'),
(94, '<lang:country_guatemala>', 'images/flags/guatemala.png'),
(95, '<lang:country_guernsey>', 'images/flags/guernsey.png'),
(96, '<lang:country_guinea>', 'images/flags/guinea.png'),
(97, '<lang:country_guinea_bissau>', 'images/flags/guinea_bissau.png'),
(98, '<lang:country_guyana>', 'images/flags/guyana.png'),
(99, '<lang:country_haiti>', 'images/flags/haiti.png'),
(100, '<lang:country_honduras>', 'images/flags/honduras.png'),
(101, '<lang:country_hong_kong>', 'images/flags/hong_kong.png'),
(102, '<lang:country_hungary>', 'images/flags/hungary.png'),
(103, '<lang:country_iceland>', 'images/flags/iceland.png'),
(104, '<lang:country_india>', 'images/flags/india.png'),
(105, '<lang:country_indonesia>', 'images/flags/indonesia.png'),
(106, '<lang:country_iran>', 'images/flags/iran.png'),
(107, '<lang:country_iraq>', 'images/flags/iraq.png'),
(108, '<lang:country_ireland>', 'images/flags/ireland.png'),
(109, '<lang:country_isle_of_man>', 'images/flags/isle_of_man.png'),
(110, '<lang:country_italy>', 'images/flags/italy.png'),
(111, '<lang:country_jamaica>', 'images/flags/jamaica.png'),
(112, '<lang:country_japan>', 'images/flags/japan.png'),
(113, '<lang:country_jersey>', 'images/flags/jersey.png'),
(114, '<lang:country_jordan>', 'images/flags/jordan.png'),
(115, '<lang:country_kazakhstan>', 'images/flags/kazakhstan.png'),
(116, '<lang:country_kenya>', 'images/flags/kenya.png'),
(117, '<lang:country_kiribati>', 'images/flags/kiribati.png'),
(118, '<lang:country_kosovo>', 'images/flags/kosovo.png'),
(119, '<lang:country_kuwait>', 'images/flags/kuwait.png'),
(120, '<lang:country_kyrgyzstan>', 'images/flags/kyrgyzstan.png'),
(121, '<lang:country_laos>', 'images/flags/laos.png'),
(122, '<lang:country_latvia>', 'images/flags/latvia.png'),
(123, '<lang:country_lebanon>', 'images/flags/lebanon.png'),
(124, '<lang:country_lesotho>', 'images/flags/lesotho.png'),
(125, '<lang:country_liberia>', 'images/flags/liberia.png'),
(126, '<lang:country_libya>', 'images/flags/libya.png'),
(127, '<lang:country_liechtenstein>', 'images/flags/liechtenstein.png'),
(128, '<lang:country_lithuania>', 'images/flags/lithuania.png'),
(129, '<lang:country_luxembourg>', 'images/flags/luxembourg.png'),
(130, '<lang:country_macau>', 'images/flags/macau.png'),
(131, '<lang:country_macedonia>', 'images/flags/macedonia.png'),
(132, '<lang:country_madagascar>', 'images/flags/madagascar.png'),
(133, '<lang:country_madeira>', 'images/flags/madeira.png'),
(134, '<lang:country_malawi>', 'images/flags/malawi.png'),
(135, '<lang:country_malaysia>', 'images/flags/malaysia.png'),
(136, '<lang:country_maldives>', 'images/flags/maldives.png'),
(137, '<lang:country_mali>', 'images/flags/mali.png'),
(138, '<lang:country_malta>', 'images/flags/malta.png'),
(139, '<lang:country_marshall_islands>', 'images/flags/marshall_islands.png'),
(140, '<lang:country_martinique>', 'images/flags/martinique.png'),
(141, '<lang:country_mauritania>', 'images/flags/mauritania.png'),
(142, '<lang:country_mauritius>', 'images/flags/mauritius.png'),
(143, '<lang:country_mayotte>', 'images/flags/mayotte.png'),
(144, '<lang:country_mexico>', 'images/flags/mexico.png'),
(145, '<lang:country_micronesia>', 'images/flags/micronesia.png'),
(146, '<lang:country_moldova>', 'images/flags/moldova.png'),
(147, '<lang:country_monaco>', 'images/flags/monaco.png'),
(148, '<lang:country_mongolia>', 'images/flags/mongolia.png'),
(149, '<lang:country_montenegro>', 'images/flags/montenegro.png'),
(150, '<lang:country_montserrat>', 'images/flags/montserrat.png'),
(151, '<lang:country_morocco>', 'images/flags/morocco.png'),
(152, '<lang:country_mozambique>', 'images/flags/mozambique.png'),
(153, '<lang:country_myanmar>', 'images/flags/myanmar.png'),
(154, '<lang:country_namibia>', 'images/flags/namibia.png'),
(155, '<lang:country_nauru>', 'images/flags/nauru.png'),
(156, '<lang:country_nepal>', 'images/flags/nepal.png'),
(157, '<lang:country_netherlands>', 'images/flags/netherlands.png'),
(158, '<lang:country_new_caledonia>', 'images/flags/new_caledonia.png'),
(159, '<lang:country_new_zealand>', 'images/flags/new_zealand.png'),
(160, '<lang:country_nicaragua>', 'images/flags/nicaragua.png'),
(161, '<lang:country_niger>', 'images/flags/niger.png'),
(162, '<lang:country_nigeria>', 'images/flags/nigeria.png'),
(163, '<lang:country_niue>', 'images/flags/niue.png'),
(164, '<lang:country_norfolk_island>', 'images/flags/norfolk_island.png'),
(165, '<lang:country_north_korea>', 'images/flags/north_korea.png'),
(166, '<lang:country_northern_mariana_islands>', 'images/flags/northern_mariana_islands.png'),
(167, '<lang:country_norway>', 'images/flags/norway.png'),
(168, '<lang:country_oman>', 'images/flags/oman.png'),
(169, '<lang:country_pakistan>', 'images/flags/pakistan.png'),
(170, '<lang:country_palau>', 'images/flags/palau.png'),
(171, '<lang:country_palestine>', 'images/flags/palestine.png'),
(172, '<lang:country_panama>', 'images/flags/panama.png'),
(173, '<lang:country_papua_new_guinea>', 'images/flags/papua_new_guinea.png'),
(174, '<lang:country_paraguay>', 'images/flags/paraguay.png'),
(175, '<lang:country_peru>', 'images/flags/peru.png'),
(176, '<lang:country_philippines>', 'images/flags/philippines.png'),
(177, '<lang:country_pitcairn_islands>', 'images/flags/pitcairn_islands.png'),
(178, '<lang:country_poland>', 'images/flags/poland.png'),
(179, '<lang:country_portugal>', 'images/flags/portugal.png'),
(180, '<lang:country_puerto_rico>', 'images/flags/puerto_rico.png'),
(181, '<lang:country_qatar>', 'images/flags/qatar.png'),
(182, '<lang:country_reunion>', 'images/flags/reunion.png'),
(183, '<lang:country_romania>', 'images/flags/romania.png'),
(184, '<lang:country_russia>', 'images/flags/russia.png'),
(185, '<lang:country_rwanda>', 'images/flags/rwanda.png'),
(186, '<lang:country_saint_barthelemy>', 'images/flags/saint_barthelemy.png'),
(187, '<lang:country_saint_helena_ascension_and_tristan_da_cunha>', 'images/flags/saint_helena_ascension_and_tristan_da_cunha.png'),
(188, '<lang:country_saint_kitts_and_nevis>', 'images/flags/saint_kitts_and_nevis.png'),
(189, '<lang:country_saint_lucia>', 'images/flags/saint_lucia.png'),
(190, '<lang:country_saint_martin>', 'images/flags/saint_martin.png'),
(191, '<lang:country_saint_pierre_and_miquelon>', 'images/flags/saint_pierre_and_miquelon.png'),
(192, '<lang:country_saint_vincent_and_the_grenadines>', 'images/flags/saint_vincent_and_the_grenadines.png'),
(193, '<lang:country_samoa>', 'images/flags/samoa.png'),
(194, '<lang:country_san_marino>', 'images/flags/san_marino.png'),
(195, '<lang:country_sao_tome_and_principe>', 'images/flags/sao_tome_and_principe.png'),
(196, '<lang:country_saudi_arabia>', 'images/flags/saudi_arabia.png'),
(197, '<lang:country_senegal>', 'images/flags/senegal.png'),
(198, '<lang:country_serbia>', 'images/flags/serbia.png'),
(199, '<lang:country_seychelles>', 'images/flags/seychelles.png'),
(200, '<lang:country_sierra_leone>', 'images/flags/sierra_leone.png'),
(201, '<lang:country_singapore>', 'images/flags/singapore.png'),
(202, '<lang:country_sint_maarten>', 'images/flags/sint_maarten.png'),
(203, '<lang:country_slovakia>', 'images/flags/slovakia.png'),
(204, '<lang:country_slovenia>', 'images/flags/slovenia.png'),
(205, '<lang:country_solomon_islands>', 'images/flags/solomon_islands.png'),
(206, '<lang:country_somalia>', 'images/flags/somalia.png'),
(207, '<lang:country_south_africa>', 'images/flags/south_africa.png'),
(208, '<lang:country_south_georgia_and_the_south_sandwich_islands>', 'images/flags/south_georgia_and_the_south_sandwich_islands.png'),
(209, '<lang:country_south_korea>', 'images/flags/south_korea.png'),
(210, '<lang:country_south_sudan>', 'images/flags/south_sudan.png'),
(211, '<lang:country_spain>', 'images/flags/spain.png'),
(212, '<lang:country_sri_lanka>', 'images/flags/sri_lanka.png'),
(213, '<lang:country_sudan>', 'images/flags/sudan.png'),
(214, '<lang:country_suriname>', 'images/flags/suriname.png'),
(215, '<lang:country_swaziland>', 'images/flags/swaziland.png'),
(216, '<lang:country_sweden>', 'images/flags/sweden.png'),
(217, '<lang:country_switzerland>', 'images/flags/switzerland.png'),
(218, '<lang:country_syria>', 'images/flags/syria.png'),
(219, '<lang:country_taiwan>', 'images/flags/taiwan.png'),
(220, '<lang:country_tajikistan>', 'images/flags/tajikistan.png'),
(221, '<lang:country_tanzania>', 'images/flags/tanzania.png'),
(222, '<lang:country_thailand>', 'images/flags/thailand.png'),
(223, '<lang:country_togo>', 'images/flags/togo.png'),
(224, '<lang:country_tokelau>', 'images/flags/tokelau.png'),
(225, '<lang:country_tonga>', 'images/flags/tonga.png'),
(226, '<lang:country_trinidad_and_tobago>', 'images/flags/trinidad_and_tobago.png'),
(227, '<lang:country_tunisia>', 'images/flags/tunisia.png'),
(228, '<lang:country_turkey>', 'images/flags/turkey.png'),
(229, '<lang:country_turkmenistan>', 'images/flags/turkmenistan.png'),
(230, '<lang:country_turks_and_caicos_islands>', 'images/flags/turks_and_caicos_islands.png'),
(231, '<lang:country_tuvalu>', 'images/flags/tuvalu.png'),
(232, '<lang:country_uganda>', 'images/flags/uganda.png'),
(233, '<lang:country_ukraine>', 'images/flags/ukraine.png'),
(234, '<lang:country_united_arab_emirates>', 'images/flags/united_arab_emirates.png'),
(235, '<lang:country_united_kingdom>', 'images/flags/united_kingdom.png'),
(236, '<lang:country_united_states>', 'images/flags/united_states.png'),
(237, '<lang:country_united_states_minor_outlying_islands>', 'images/flags/united_states_minor_outlying_islands.png'),
(238, '<lang:country_united_states_virgin_islands>', 'images/flags/united_states_virgin_islands.png'),
(239, '<lang:country_uruguay>', 'images/flags/uruguay.png'),
(240, '<lang:country_uzbekistan>', 'images/flags/uzbekistan.png'),
(241, '<lang:country_vanuatu>', 'images/flags/vanuatu.png'),
(242, '<lang:country_vatican_city>', 'images/flags/vatican_city.png'),
(243, '<lang:country_venezuela>', 'images/flags/venezuela.png'),
(244, '<lang:country_vietnam>', 'images/flags/vietnam.png'),
(245, '<lang:country_wallis_and_futuna_islands>', 'images/flags/wallis_and_futuna_islands.png'),
(246, '<lang:country_western_sahara>', 'images/flags/western_sahara.png'),
(247, '<lang:country_yemen>', 'images/flags/yemen.png'),
(248, '<lang:country_zambia>', 'images/flags/zambia.png'),
(249, '<lang:country_zimbabwe>', 'images/flags/zimbabwe.png')");


Note: I did not take the time to do this in the quickly modified version that you requested, but, you can either do so yourself if desired or you can request me to do so and I can modify and update the existing attachment above.


Attached Files Thumbnail(s)
   
Reply
#7
Solved: 6 Years, 2 Months, 1 Week ago
you will have to edit the database directly, find the countries table and delete the israel row from it. Alternatively, you can uninstall the plugin, which will drop the table, then you can edit the plugin file and remove this line approx 299

(110, '<lang:country_israel>', 'images/flags/israel.png'),

that will prevent israel from being inserted next time the plugin is activated.
What goes around comes around
Reply
#8
Solved: 6 Years, 2 Months, 1 Week ago
(2018-09-28, 07:08 PM)vintagedaddyo Wrote:
(2018-09-28, 06:54 PM)iKsu Wrote: I want to remove 'Israel' not to add it, what are you saying @Vintageddadyo ??

Is this what you meant? It removes Israel, from being inserted into db on install, it removes the Israel language string as well as removes the Israeli flag image from package which achieves exactly what you asked for except I did not touch on the no specified and I am not sure that removing not specified is optimal because it is exactly what it says a selection for non specified country origin?




* as you can see by the image, Israel is no longer an option for selection. And by removing the language string and image and not just the db insert from the file makes for a more complete and precise removal of the entire reference from the package. Wink

Finally, it worked bro also i want to remove Not Specified If you can do it please i really need to remove it and update the attached file after removing it please..
And thanks a lot man you are good!

(2018-09-28, 07:10 PM)Ashley1 Wrote: you will have to edit the database directly, find the countries table and delete the israel row from it. Alternatively, you can uninstall the plugin, which will drop the table, then you can edit the plugin file and remove this line approx 299

(110, '<lang:country_israel>', 'images/flags/israel.png'),

that will prevent israel from being inserted next time the plugin is activated.

Hey,
I tried now this way but failed, anyway this man @vintagedaddyo helped about it Smile

I don't know what happened when i try to deactivate the plugin or activate it, shows an error with both but it continues the process so how can i fix this error or not needed


Attached Files Thumbnail(s)
       
π“œπ“¨π“‘π“‘ π“›π“žπ“₯𝓔𝓑 ❀️
Reply
#9
Solved: 6 Years, 2 Months, 1 Week ago
@iKsu

Cool beans, glad that worked for you! Smile

Now, the option value:

{$lang->not_specified}

Can be found on line 545 and 577 of the plugin and the language string can be found in the language file on line 14 as follows:

$l['not_specified'] = "Not Specified";

Now let me try to simply explain why I said it is not wise to remove this option value. You see the user is not specified a country by default and must choose their country..., so not specified is the empty option the plugins needs until a country is selected by the user. Removing this may cause issues with functionality. Hopefully that makes sense. Just a thought.

*Also not sure if whatever error related to rebuild_settings you were talking about on activation and deactivation was related to the files I shared asΒ  it works fine on Activation and Deactivation? Did you have this plugin previously installed and did not deactivate / uninstall before uploading / overwriting with the edited files? Because you would need to do so. Just a thought.


Attached Files Thumbnail(s)
       
Reply
#10
Solved: 6 Years, 2 Months, 1 Week ago
(2018-09-28, 07:52 PM)vintagedaddyo Wrote: @iKsu

Cool beans, glad that worked for you! Smile

Now, the option value:

{$lang->not_specified}

Can be found on line 545 and 577 of the plugin and the language string can be found in the language file on line 14 as follows:

$l['not_specified'] = "Not Specified";

Now let me try to simply explain why I said it is not wise to remove this option value. You see the user is not specified a country by default and must choose their country..., so not specified is the empty option the plugins needs until a country is selected by the user. Removing this may cause issues with functionality. Hopefully that makes sense. Just a thought.

*Also not sure if whatever you were talking about on activation and deactivation was related to the files I shared as It works fine on Activation and Deactivation?
I got your idea Smile
and i liked it, won't remove Not Specified you are really good man!
anyway not important this error it won't make any difference Smile
You can now mark this topic as solved, Thanks a lot bro! Big Grin
π“œπ“¨π“‘π“‘ π“›π“žπ“₯𝓔𝓑 ❀️
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)