View Full Version : some feedback on this please
krakjoe
May 7th, 2007, 11:17
http://krakjoe.com/geoip-test.html
Can anyone tell me if they get errors, and please post thier country and pm me thier ip address
Please do not use this code in your website, I do plan to implement and release this code, and the current code will break when I do so, so please just tell me if it works, I'd be most grateful
Thanks
DarkBlood
May 7th, 2007, 11:33
If it's supposed to show my IP address, it doesn't.
Your country flag is : (Damn scripted images)
You come from United States
Your 2 letter country code is US
Your 3 letter country code is USA
Is all it shows (It shows the american flag where I put (Damn scripted images)), default text formatting.
krakjoe
May 7th, 2007, 11:49
gets your country from your ip address
themoose
May 7th, 2007, 11:49
Your country flag is :
You come from United Kingdom
Your 2 letter country code is GB
Your 3 letter country code is GBR
It's all correct.
Can I suggest maybe more targeted if possible, like state for USA or region for UK?
krakjoe
May 7th, 2007, 11:59
Yeah I can do that, just not untill i get a liscence for the reigon database, I'm just testing atm, thanks for the feedback ......
Hamed
May 7th, 2007, 13:10
It looks good but if it show IP and flags it can be better!
krakjoe
May 7th, 2007, 13:18
thanks, what I'm wanting here, is to know it if shows the correct data, this is clearly unfinished code, only I can only test the coutry flags and codes for my country and countries where I know of websites, if anyone experiences errors, or the wrong image, or if anyone knows where I might get a load of decent flag images on account of the ones I have are ----, I'd be most grateful .....
themoose
May 7th, 2007, 13:37
small ones:
http://www.famfamfam.com/lab/icons/flags/
larger ones:
http://www.studiotwentyeight.net/icons.htm (a few sets)
krakjoe
May 7th, 2007, 14:01
Second ones will do nicely, thanks :)
Edit : Damn it, they are ico format, anyone kind enough to change them into a sensible format for me, like png or jpeg or something ????
Decker
May 7th, 2007, 14:37
Agree with Colin, GB is not a Country either, needs broken down to the 4 in it.
The IP DB is a bit flaky too so don't worry about that at this stage.
DarkBlood
May 7th, 2007, 14:42
Second ones will do nicely, thanks :)
Edit : Damn it, they are ico format, anyone kind enough to change them into a sensible format for me, like png or jpeg or something ????
ICO can be reffered just like a normal image:
<img src="path/to/image.ico" alt="Flag" title="Flag" />
I do as such on my OvBB powered board, and w3c says it's A-OK.
krakjoe
May 7th, 2007, 14:59
Yeah I know, only php cannot manipulate ico files; that's what I need.
I got the reigon part written, it can break it down into the reigonal counties and states and whatever, only I haven't got the full liscence for the database yet so I can't use it, but I will though .......
Thanks for all the feedback guys, still need the images changed format though :)
Decker
May 7th, 2007, 15:08
Got the images? I'll look at changing them KJ, let me know what format.
krakjoe
May 7th, 2007, 16:37
http://www.deviantart.com/deviation/2009657/
Those ones, I need em to be png jpg or gif, whatever is highest quality out of those, I have no idea ..... and thanks
fireshark
May 7th, 2007, 20:04
http://fireshark.name/flags.rar
blueonline
May 8th, 2007, 00:14
Your country flag is : InDiA
You come from India
Your 2 letter country code is IN
Your 3 letter country code is IND
krakjoe
May 8th, 2007, 10:37
http://fireshark.name/flags.rar
Thanks, but I get a 404 ??
DarkBlood
May 8th, 2007, 10:41
Thanks, but I get a 404 ??
Same here.
fireshark
May 9th, 2007, 01:25
Ouch.
My bad, I typed it in by hand
http://www.fireshark.name/misc/flags.rar
krakjoe
May 9th, 2007, 03:15
thanks man
Hamed
May 9th, 2007, 05:28
Now it is Ok for me
Your country flag is :
You come from Iran, Islamic Republic of
Your 2 letter country code is IR
Your 3 letter country code is IRN
May I have it??
iBrightDev
May 9th, 2007, 13:10
works fine here Joe.
now, it would be nice to see it get city and state too
also, i can get the flag images if you havent already
stuffradio
May 9th, 2007, 20:34
Yeah, works for me too
themoose
May 10th, 2007, 14:18
Joe, not 100% certain on this but I think if you manipulate ico as a bmp with php it should work.. when you rename a .bmp to .ico it becomes an icon file, so I don't see why it shouldn't :).
fireshark
May 10th, 2007, 17:34
well no, because those icos contain multiple icons.. in any case
thanks manhe seems to have used them?
krakjoe
May 11th, 2007, 10:33
I plan to use em thanks
stuffradio
May 11th, 2007, 14:26
what exactly are you wanting to do with this anyways
Decker
May 11th, 2007, 15:02
Nosey !!
krakjoe
May 13th, 2007, 05:13
what exactly are you wanting to do with this anyways
I plan to make my own api using maxminds databases, only mine will be free to use and thiers is incredibly expensive, before I go ahead and buy a liscence, I need to know that all the country codes have a flag, I can't seem to think of a way to do it so need ppl to tell me ......
It can be very useful, although this will break soon ( because I'll break it ) doing
file_get_contents('http://krakjoe.com/geoip/query=code&address=remote');
will tell you where you user is and eventually thier state and region, you can use this information to direct traffic, load a language file, or one of a billion other things.
PHP can do all of this by default, with the maxmind api, but it uses a free database ( the one in use now ) and it's limited without regions; also, not everyone knows php well enough to implement it or might prefer to use javascript ( for seo purposes ), and the extension that allows it resides in PECL, a lotta servers don't have it ( you can install it with http://krakjoe.com/projects/GeoIP-installer if you're root, or DIY ).
The idea is I buy I license and everyone in the world can use it, afterall the geographics of our planet do belong to everyone.
Bottom line, it's just filling my life up, like most things I write .......
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.