Webmastersite.net
Register Log In

zip search in kilometer

Comments on zip search in kilometer

chris
Member

Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM

Total Topics: 13
Total Comments: 43
chris
Posted Jun 26, 2008 - 12:26 AM:

To make zip-search a usefull tool outside anglo-american countries it would be nice to have it also available in kilometers, not only mils. No miles here in Europe ;-)
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 29, 2008 - 8:19 AM:

I'm not even sure the formula is doing it in miles and not kilometers. Since it believes in a flat earth it's not accurate over long distances anyway. Picked it up from somewhere else:
 $latrange = $range / 69.172;
$lonrange = abs($range / (cos($latitude) * 69.172));
$minlat = number_format($latitude - $latrange, "4", ".", "");
$maxlat = number_format($latitude + $latrange, "4", ".", "");
$minlon = number_format($longitude - $lonrange, "4", ".", "");
$maxlon = number_format($longitude + $lonrange, "4", ".", "");


Wouldn't be hard to do
$range = $range / 1.6;
to use kilometers (presuming its using miles now). Any suggestions on where in the admin panel the option should go to ever be found, however?
chris
Member

Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM

Total Topics: 13
Total Comments: 43
chris
Posted Jun 29, 2008 - 11:48 AM:

Perhaps a select-box (or radio-buttons) next to the switch under admin --> settings --> switches --> "ZIP code range" (miles/km)?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 30, 2008 - 3:25 PM:

Switches page is too cluttered already. Maybe if stuff appeared dynamically on click, but that'll get time consuming.
chris
Member

Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM

Total Topics: 13
Total Comments: 43
chris
Posted Jul 01, 2008 - 12:29 AM:

Yeah, the admin menue needs a total makeover anyway - it's a bit too cluttered everywhere ;-)
Have you ever installed eSyndiCat? I don't like the script. Far less flexibility than with wsnlinks, but the design of the admin-menue is really exemlary.
chris
Member

Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM

Total Topics: 13
Total Comments: 43
chris
Posted Jul 01, 2008 - 3:17 AM:

Just thought about it - perhaps it would be possible to handle the miles/km question within the templates insted of the admin menu (hidden field?) - some people might need both options on international websites.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 17, 2008 - 3:11 PM:

What do you like about esyndicat's design? That horizontal top menu? I can't afford to buy it, but I can see their online demo.

I've added a localizations page which includes the miles/kilometers choice.
chris
Member

Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM

Total Topics: 13
Total Comments: 43
chris
Posted Jul 18, 2008 - 1:33 AM:

f*** - I just wrote a huge answer (the biggest ever) then accidentally I hit the F5-key. Lost all my text. I'm too frustrated to start writing it again. I'll send you my skype-id via email so we can talk about it if you like. It's easier anyway.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 18, 2008 - 10:53 PM:

I don't do skype, because text is a million times easier for me.
chris
Member

Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM

Total Topics: 13
Total Comments: 43
chris
#10 - Quote - Permalink
Posted Jul 19, 2008 - 12:20 AM:

You can text on skype - it's like windows messenger, just not Microsoft ;-)
Anyway: will write soon again about the admin-menu-subject.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#11 - Quote - Permalink
Posted Jul 19, 2008 - 8:29 PM:

There won't be any significant admin panel redesigns in the next year, since I already annoyed my German cobrander enough with all the 4.0->4.1 admin changes and 5.0 is too late in the game now anyway, so take your time.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.