The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
IP to flag/country
Hello vb's
is there any way to detect automaticly the user's country and show a flag for that in the profil ? |
#2
|
|||
|
|||
there is a mod that shows the flag of the country of the register, and you could make them select their country , although they could lie, but a flag is displayed in the postbit legacy area of the posts, you would then be able to double check them by grabbing their IP and checking it against the list using a site like this one
or this one you could even edit the php file that is in that mod to reflect the ip of the country in the postbit legacy also, but you will need a list of each and every Ip used by a country , or that is on your server. it would be daunting here is a command line input command that will ping Open Command Prompt and type: Code:
FOR /L %i IN (1,1,254) DO ping -n 1 192.168.0.%i | FIND /i "Reply">> c:\ipaddresses.txt Change 192.168.0 to match you own Network ID. This will ping all IP addresses on the 192.168.0.0 network segment and create a text file called IPADDRESSES.TXT in C:\, where it will list only the IP addresses that gave a reply. this may work to do what I have said here but would have to be done every once in a while then added to the list IPADDRESSES.TXT |
#3
|
|||
|
|||
|
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
Quote:
Would you mind sharing how your modified it to do state flags rather than country flags? Thanks! Brian |
#6
|
|||
|
|||
Hi,
I have tried to contact your24hourstore to see how he/she was able to make it show state flags rather than country flags but he/she does not accept email or PM from this site. Can anyone else help me with this? Thank you, Brian |
#7
|
||||
|
||||
If you wanted state icons instead of country icons you would follow the exact same steps as in the mod link https://vborg.vbsupport.ru/showthread.php?t=229511
You would of course need to find state flags: http://www.google.com/search?q=state...w=1280&bih=909 You would follow the same steps as in the mod link - Quote:
I hope that makes sense. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|