Please Log in or Create an account to join the conversation.
Post Code : Not an integer
Best I can suggest ATM is to implement an Integer field for them to supply zipcode then use Simple Any or Advanced searching mode for your userlist. This will allow them to search between 2 integer values as often zipcodes are incremented so it should help in finding other users near them. The easiest approach is to simply have a Country, Sate, City field usage for them to search for users in their city, etc..
Please Log in or Create an account to join the conversation.
Unfortunately I've nothing more to suggest except develop a new fieldtype plugin that provides radius searching. For such a thing you'd need a database of basically every postcode or for it to use Google API (can be slow and API call rate limited) to check against to see what postcodes are in a radius around the user. It maybe better to have a 3rd party extension that already has radius searching provide that feature for you (there's a few Google Maps based ones on JED). There's no possible way to compare between 2 values that contain strings.Which now brings me back to the top of this specific post, I have my Post Code field currently set as integer but it seems the UK post code format of letters and numbers isn't accepted in this way but I need integer to implement as per your quoted idea / thought above?
Yes, ours are strictly integers.In America for e.g. zipcodes are 555324 I think aren't they? So just numeric and no doubt suit integer much better?
Please Log in or Create an account to join the conversation.