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?

#1

rconstantine - December 29, 2007 - 22:21

Nope. Are you volunteering?

#2

NancyDru - December 29, 2007 - 23:16

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

willwade - January 9, 2008 - 19:38

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

AttachmentSize
UK.zip5.64 KB

#4

LupusStudios - January 13, 2008 - 23:39

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.

AttachmentSize
uk.zip3.46 KB

#5

rconstantine - January 14, 2008 - 11:19

I'd like any input from people that live in the UK as to which is standard.

#6

droople - January 16, 2008 - 07:15

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

rconstantine - January 16, 2008 - 20:52

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

droople - January 18, 2008 - 00:27

the above UK files do a decent job

however there is no dependent drop down

selecting England still shows Scottish counties

#9

rconstantine - January 18, 2008 - 00:41

If the database entries are done correctly, it will work. I'll review the code when I get a chance.

#10

rconstantine - January 18, 2008 - 05:06

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.

AttachmentSize
UK.zip4.42 KB

#11

droople - January 18, 2008 - 15:20

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

rconstantine - January 18, 2008 - 18:30

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

droople - January 19, 2008 - 01:23

that works with active select

thanks

nice working with you

#14

droople - January 20, 2008 - 15:46

Having problems in IE7

the County dropdown is not showing any data

#15

rconstantine - January 21, 2008 - 18:53

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!

AttachmentSize
IE7Address.png5.67 KB

#16

hutch - June 5, 2008 - 23:29

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

simonmeaden - July 8, 2008 - 10:50

Just a question, is the module being upgraded to 6.x?

#18

NancyDru - July 8, 2008 - 15:09

@simonmeaden: that should be a separate issue post.

#19

bgildea - July 16, 2008 - 12:48

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

As If - August 3, 2008 - 18:55

Nice start. But I think if you asked the queen, she'd say ALL other countries belong under the GB code. ;-)

 
 

Drupal is a registered trademark of Dries Buytaert.