Pairing down the countries table

Hi, I have used the "country" predefined list to populate a multiple select field called "TRADE_COUNTRIES" in my community.  I wanted to get rid of some of the really small island nations, and things like "Antarctica" and "Vatican City", etc.  I first tried this by directly editing the predefined list in the admin panel, but I was getting database errors related to the "set statement".  Then I went and just deleted the countries I didn't want from the "countries" table in phpmyadmin - but they still show up in my join and edit forms!  What gives?  Something here that I don't understand.


-

Rob

Quote · 8 Sep 2008

Been a few weeks so I'm bumping this.  Nothing earth shaking - just a mystery.  I'm trying to get rid of tiny "countries" like "Vatican City" etc.  I deleted them from the "countries" table in phpmyadmin, but they are still on my join and search forms - so I guess I don't know where the predefined lists are stored.  Could someone help me clear this up?

-

Thanks

-

Rob

Quote · 20 Sep 2008

Sorry about the bump but this is a mystery I never solved.  I'm trying to edit the country predefined list to get rid of some of the really tiny countries.  I can't do this in admin because I get an error message, and when I do it in the country table directly in phpmyadmin it seems to have no effect - i.e. the obsure countries still show up on the join and edit forms.  How could this be happening?  Where are the predefined list tables hiding?

Quote · 3 Oct 2008

Check file inc/prof.inc.php

 

maybe it have to be canged in both DB and file!!

Quote · 3 Oct 2008

Thanks Ottar, but I don't see any countries in inc/prof.inc.php .  There is a table called "countries" in my database and - for example, I deleted "Christmas Island" from the list- but Christmas Island is still on my join form.  I've cleared my cache, so I don't think that is it, and I am still stumped.

Quote · 3 Oct 2008

Every Dol. ver. bellow have it, maybe it is changed because of your "country" predefined list!! I don't now..

 

inc/prof.inc.php Dol 6.1.1

inc/prof.inc.php Dol 6.1.2

inc/prof.inc.php Dol 6.1.3

inc/prof.inc.php Dol 6.1.4

 

$aPreValues = array(

'Country' => array

 

 

Quote · 3 Oct 2008

I must have looked at the profile.inc.php by mistake.  I just opened the prof.inc.php and the countries popped up right in front of me- right on top.   Thanks for finding this Ottar, it was driving me nuts.

Quote · 3 Oct 2008

OK, deleting countries from that seems to work - haven't tested much but don't think it will cause any problems.  If you edit country names though it may cause some underscores in your selection list unless the language keys match up.

-

As a side issue, where on earth did Boonex get that country list from? - it is not the United Nations list.   I just spent quite a bit of time of Wikipedia getting a geography lesson on some really obscure countries- like-  Bouvet Island - an uninhabited sub-antarctic volcanic island in the South Atlantic Ocean- several others almost as weird on the country list.  Might be more important to me than others as I am also using the countries as a selection list, but if anyone else wants to pare that list down, editing the inc/prof.inc.php file seems to be the right file.

Quote · 3 Oct 2008

You can try to edit sys_countries table too.

Quote · 28 Nov 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.