The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
How can you identify user's continent via PHP? (ex: http://www.talkloud.net/forums/vbsta...&action=region)
Or maybe there is a country=>continent mapping database? Thanks. |
#2
|
||||
|
||||
![]()
Simple answer - you can't.
You could try a reverse dns lookup on their ip and see if it's a country based url (like xxxx.co.uk) - but if it's .net or .com you're out of luck. You could also see if you can extract any language information from their browser user-agent, or possibly a bit of JS to check their pc locale - but there is no foolproof method. |
#3
|
|||
|
|||
![]()
There is no "you can't" in this world. Every question has an answer.
As for this, simple and honest answer is "I don't know." Now, there are databases which have the info. My question is: Where can I get such database (for free)? Even if it's not PHP? |
#4
|
||||
|
||||
![]()
Even they are not perfect - they normally rely on ip to location lookups, but even that is not 100% accurate (even assuming you can get the users real ip). I'm afraid I don't know where you could get such a database.
|
#5
|
|||
|
|||
![]()
This is just for statistics, it does not need to be accurate. I making a stats hack, whose features are to be a rip off of Bane's vbstats hack which will apparently never be released... So I just want to know any method to replicate that.
EDIT: I think I just found a nice database. I'll need to adjust its syntax to fit my needs... and I don't even think I'ma do it by hands. I'ma make me a nice lil php script that will do all the dirty work of syntax conversion for me ![]() |
#6
|
||||
|
||||
![]()
Most stats hacks use the reverse dns lookup method - and assume .net and .com to be the USA. If you 've found a usable database then that would probably be better.
![]() |
#7
|
|||
|
|||
![]()
Last time I checked, regular site visitors don't have a domain name associated with them
![]() |
#8
|
|||
|
|||
![]()
ment you in postbit? or for every action the user does
|
#9
|
|||
|
|||
![]()
Well IP address blocks are reserved by various companies, which vary from area to area.
I suppose you could create a database in which it would analyze their ip and match it to a list of known IP address blocks, which would compare it to a list of blocks by country. |
#10
|
|||
|
|||
![]()
Psionic Vision, if you need an ip->country db let me know i have one *bg*, there are which includes the shortname of country and longname, but no continent info, you could add id by yourself, if needed->post here.
best regards, soulfly |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|