States instead of countries

I already asked AlexT to add this option in future releases, but for the time being I changed 'country' into 'province' (or 'state' for some countries).

 

This works fine except for the members browse page.

 

At the bottom right it shows the ISO2 field and I would like to have the country field there. I've been searching through the script, but I can't find where to change that.

 

See printscreen below

 

Quote · 20 Jun 2010

No one ?

Quote · 21 Jun 2010

Just doing this on my own site - will let you know what I find.

/DM

Dolphin - Ajax Masturbation
Quote · 1 Jul 2010

I just replaced all instances of Country with State in language file as you suggested. I also edited the predefined list 'country' to show states instead. (yes I know it's a messy way of doing it, but it's a temporary measure until Arthur fixes it).

So now everything works as expected.

But I am a bit confused as to what you want to do - If you have replaced the country field with province, how do you determine what country people are in? Or do I misunderstand?

/DM

Dolphin - Ajax Masturbation
Quote · 1 Jul 2010

I left the first 11 countries of the country list as they are, the others I deleted. See below :

 

As you can see, I made a 'please select' field of the first country AA

 

Then, I just translated the language keys of each country. See below :

 

Last, I translated the 'country' language key into 'province'.

 

But, as you can see in the first country, in the member browse page it returns the ISO2 field which is for instance AG for Antigua and Barbuda which I translated into Vlaams-Brabant Oost.

 

Instead of the ISO2 AG I would like to have Antigua and Barbuda which will be Vlaams-Brabant Oost.

 

As a result of the way I did it, my world map doesn't show the correct location of course. But that's the least of my problems.

 

 

Quote · 1 Jul 2010

By the way, I don't need no country field at all while my site is Belgium only. I just need it to be divided in the 10 provinces we have over here.

Quote · 1 Jul 2010

I completely deleted all entries in my countries list and then added new entries for the states that I am using.

My list looks like this

(BTW Alex / Arthur - can you please fix the jumping icons in the admin panel - it bugs the hell outta me)

I then added new language keys for each entry.

I also deleted all flags in the media/images/flags folder, and replaced them with the flags for each state

Note for SA the flag has to be named sa.gif

And here's what it looks like...

HTH

/DM

Dolphin - Ajax Masturbation
Quote · 1 Jul 2010

OK, that I can understand. But "SA" is a well-known abbreviation in your country. We don't have that for our 'provinces'. They are just called as I named them in the pre-defined list. So the ISO2 is meaningless unless I can put "Limburg' there. But the ISO2 allows max. 2 digits.

 

 

As you can see, I replaced the flags by colored circles.

Quote · 1 Jul 2010

OK, that I can understand. But "SA" is a well-known abbreviation in your country. We don't have that for our 'provinces'. They are just called as I named them in the pre-defined list. So the ISO2 is meaningless unless I can put "Limburg' there. But the ISO2 allows max. 2 digits.

As you can see, I replaced the flags by colored circles.

Hehehee I did not keep any of the original values - I deleted all of the original ones and added new ones - it is just a coincidence that 'SA' / 'South Australia' is the same as the ISO 3166 code for South Africa.

Try this...

Edit the list, Change...

Value 'AE' to 'Limberg'

LKey to '_Limberg'

And add a language key for _Limberg if you do not already have one.

You should see 'Limberg' now instead of AE

/DM

Dolphin - Ajax Masturbation
Quote · 1 Jul 2010

Of course the 'flag' icon will also need to be renamed as well.

Dolphin - Ajax Masturbation
Quote · 1 Jul 2010

Interesting forum. I wonder if it's possible to show a list of US states after you click US.

We all know that US is a big country and you can't narrow down by states via people page. I already have states listed in Predefined Lists. I seriously think this would be a good mod for anyone who runs a US based website. Is this possible, I wonder?  :/

Quote · 1 Jul 2010

DeeEmm, I think I also tried that solution but in that case I couldn't select by province anymore. Now I can make selection by province as you can by country.

 

Guess that's why I did it this way. Not sure anymore, I tried several solutions Laughing

Quote · 1 Jul 2010

Yep, when I was writing my former post I went checking on my site.

 

The way you did it is still to see in the events section. There is a search option by 'region' but it doesn't work when I try to find an event in for example 'Antwerp'.

 

I will send you a TEST login by PM

Quote · 1 Jul 2010

Yep, when I was writing my former post I went checking on my site.

The way you did it is still to see in the events section. There is a search option by 'region' but it doesn't work when I try to find an event in for example 'Antwerp'.

I will send you a TEST login by PM

Hi Annabel,

I've tested on your site and it appears to work as expected. I selected 'Oost-Vlaanderen' from the list in the events search box, and entered 'hoogland' as a search key and it returned the event i expected.

I did notice that you need to change the key for _bx_events_all_countries to 'All Provinces'

So I'm guessing either you have fixed the issue, or I do not understand it properly.

Here are the other language keys I changed..

_in country (System)
_bx_events_caption_browse_by_country (Boonex Events)
_bx_events_caption_country (Boonex Events)
_bx_events_err_country (Boonex Events)
_bx_groups_form_caption_country (Boonex Groups)
_bx_groups_form_err_country (Boonex Groups) 
_bx_events_all_countries (Boonex Events)

I will send you a link to my site so you can check it to see if it works any differently - To me it appears to work exactly the same as yours.

/DM

Dolphin - Ajax Masturbation
Quote · 1 Jul 2010

I just added 'search by country' drop down to the groups section as it was missing...

http://www.deeemm.com/resources/tutorials/42-dolphin-70x-modifications/176-dolphin-add-search-by-country-to-groups.html

/DM

Dolphin - Ajax Masturbation
Quote · 2 Jul 2010

I replaced all Countries with states and added new flags  (example ny.gif   should be New York State Flag) but no results showing in browse for By State (country) field.  see images.... please help correct this

StateList.gif · 14K · 261 views
Broswe.gif · 4.9K · 239 views
Quote · 13 Apr 2013

It maybe that this section uses sys_countries table, so it maybe that you need to make alter this table as well.

Rules → http://www.boonex.com/terms
Quote · 15 Apr 2013
 
 
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.