UK
NancyDru - December 29, 2007 - 22:14
| Project: | CCK Address Extensions |
| Version: | 5.x-1.x-dev |
| Component: | Other |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Has anyone done UK addresses?
| Project: | CCK Address Extensions |
| Version: | 5.x-1.x-dev |
| Component: | Other |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Has anyone done UK addresses?
#1
Nope. Are you volunteering?
#2
If I knew what the rules were, sure, but I live in the USA; I'm doing a little work for someone in the UK.
BTW, is the format selectable by the user (as opposed to admin), for example by a drop down?
#3
Find attached a UK address extension. A couple of things to note:
1. Its actually 3 extensions in one - covering England, Scotland, Wales
2. County codes probably aren't exactly the same as the postal office codes for counties. Its not essential in the UK so I can't imagine anyone really minds - they are all at least unique which is the important thing :)
3. Because of 1. I think the uninstall function is probably broken. Haven't had the time to write a proper uninstall - others welcome to hack. To remove the module you will need to delete the EN (England), SC (Scotland), WA (Wales) rows from cck_address_states and the country rows from cck_address_countries
#4
I developed my own UK implementation a couple of weeks ago before the contribution above was posted.
Mine is a little different:
- It's all under one country "United Kingdom" (or country code GB from the ISO standard).
- Includes a complete list of counties from the UK
- Check UK postcode is valid using regular expressions
- Install/uninstall should all work fine
Up to the maintainer of this module which version he wants to use. Thought I'd post my code for anyone else who wants it though.
#5
I'd like any input from people that live in the UK as to which is standard.
#6
I have downloaded the two and I prefer the one with the 3 home countries seperate
i.e: England , wales, Scotland
this give a dependent list of counties, which is more user friendly in my opinion. HOwever it doesn't contain all the county names...
WHile at it
Republic of Ireland and Northern Ireland is much appreciated
thank you
#7
To anyone that might try these modules out:
Note that if you open up the files, there is really nothing to them and are easy to read - even by non-programmers.
So if you have a suggested change/improvement, you can make those changes and upload them without much fuss. Give it a try. Then other users can comment on YOUR module.
Thanks folks.
#8
the above UK files do a decent job
however there is no dependent drop down
selecting England still shows Scottish counties
#9
If the database entries are done correctly, it will work. I'll review the code when I get a chance.
#10
Here is my version at the request of somebody...
County lists are based on http://www.logisticsworld.com/ukcounties.asp
Could someone tell me whether the Channel Islands are part of the UK? I'm assuming they are.
#11
Still dependant drop down not showing up.
If that's not possible could you please allow for CAPS in the county listing showing countries before the respective counties of that country.
eg: CHANNEL ISLANDS--Alderney
---Guernsey
ENGLAND---Avon
---East Sussex
NORTHERN ISLAND---Fermanagh
---Londonberry
SCOTLAND--Aberdeenshire
---Midlothian
WALES---Anglesey
---Breconshire
Also you left out LONDON, GREATER MANCHESTER on the county list.. I would like those included as counties.
One more thing: how to remove the "#" before the apt/number and replace it with something else eg: "No:"
thanks
#12
If dependent drop down is not showing up, I think you don't have the optional module 'activeselect' installed since it worked fine for me. Install that and they will magically appear. It's mentioned clearly in the README and also mentioned in regards to something else on the settings page. I assume you are going into your settings for that field and checking all five countries, England, Wales, Scotland, Northern Ireland, and Channel Islands.
As for changing the #, you can override the theme function however you like via the normal Drupal way. There are good tutorials in the handbook. I'll probably make the function more customizable from with the module later, but don't have time now.
#13
that works with active select
thanks
nice working with you
#14
Having problems in IE7
the County dropdown is not showing any data
#15
If you haven't, you need to A) activate the UK module, and B) activate the countries you want in the CCK field you have defined. See my attached screen shot from IE7 - it works!
#16
Just a quick note to say that this module works well and is complete. Listing Wales and Scotland as separate countries is not the normal practice in the UK although it is often added in as in 'Wales, UK' which is where I live ;-)
'GB' as a short name is never used in practice BTW.
IMO this module could go in the address extensions module or the address module for that matter.
Nice work, thanks.
#17
Just a question, is the module being upgraded to 6.x?
#18
@simonmeaden: that should be a separate issue post.
#19
Good work, Just a quick message regarding the Southern Ireland 32 county list. No one seems to have done this but be careful not lump in the 32 Republic of Ireland counties with the UK or Northern Ireland ones. It's A separate country last time i checked ;)
#20
Nice start. But I think if you asked the queen, she'd say ALL other countries belong under the GB code. ;-)
#21
GB is England, Scotland & Wales (does it also include Channel Isles and Isle of man? - think not??)
UK is GB + Northern Ireland
Note that the Republic of Ireland has 26 counties, not 32. The '32' number includes the 6 Northern Ireland counties, which are politically part of the UK (although a significant minority wish they were part of the Republic). As these 6 are served through the UK (with regards to tax, delivery etc) it probably makes sense to keep them there. I'm curious as to whether there could be a standardised method of having these 6 in both the UK and Ireland zone list, without really having a big screwup? There is some political sensitivity (still!) about the whole issue (mostly by people living here in NI, as far as I can see).
However, I'm delighted to see someone has included the Northern Ireland counties in the UK county list, and included the 'Co' prefix we always use.
Thanks to whoever it was. Hope it isn't too long before I can help out with stuff