not sure if this is right place to get help with some code to do this but after some searching i read that JavaScript cant do what I want but PHP can...
I have a forum http://forum.dslbuddy.net/ and i want to display users country/flag in with their posts at bottom their post or next to username or such...
It's pretty easy: check IP address when they log in and set a country cookie. You can get IPA/country databases from various places (as flat text/csv files) and code is straightforward. See http://software77.net/geoip-software.htm for various resources.
It's pretty easy: check IP address when they log in and set a country cookie. You can get IPA/country databases from various places (as flat text/csv files) and code is straightforward. See http://software77.net/geoip-software.htm for various resources.
could you guide me? - i dont know any code as such, its a free forum host does this mean i cant do it? I dont know thats why Im asking - I can add Javascript to my forum
could you guide me? - i dont know any code as such, its a free forum host does this mean i cant do it? I dont know thats why Im asking - I can add Javascript to my forum
thanks
You can't do it just using Javascript: you need to be able to look up an IP address in a data file to get the country name. Check with your forum provider to see if they already offer the facility (they may well do). If they don't, check that they will let you add the datafile and php to your forum. PM me if so and I'll post the code.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?