iheartpie Posted June 9, 2011 Share Posted June 9, 2011 Hello all, I'm after a neat script that will change a piece of copy (in strong form) dependant on the IP location of the user. i.e. if the user is in the US (according to their IP) then the string might read 'blue', whereas if they're in the UK (according to their IP) then the string may read 'red'. I'm only assuming that PHP will be the most appropriate for this task, correct me if I'm wrong - I'm also assuming that it will take the form of an IF statement or an array of some kind - but PHP really isn't my thing unfortunately. Any help is much appreciated, Thanks. Quote Link to comment Share on other sites More sharing options...
revraz Posted June 9, 2011 Share Posted June 9, 2011 So are you asking for someone to do this for you? If so, try the Freelance section. Quote Link to comment Share on other sites More sharing options...
iheartpie Posted June 9, 2011 Author Share Posted June 9, 2011 I don't need the script to be written for me, I'd be just as happy with a point in the right direction - a tut, or even a name for the function. I don't expect anyone to work for free, but lets be honest, this is a help section - most people call that consultancy and charge a bomb for it, so lets not be pedantic. Thanks all the same. Quote Link to comment Share on other sites More sharing options...
fugix Posted June 9, 2011 Share Posted June 9, 2011 This forum is for helping people that have tried writing the code on their own and simply cannot figure a part of it out, not for people looking for "freebees". Just to clarify that. here is an API that may be able to help you http://ipinfodb.com/ip_location_api.php Quote Link to comment Share on other sites More sharing options...
iheartpie Posted June 9, 2011 Author Share Posted June 9, 2011 As stated, I'm not after any 'freebies' - I'm after an instructional approach as to how to achieve something - that's called help. I'll go find a more helpful community, cheers anyway guys - glad I don't work with PHP, bunch of miserable bastards. Quote Link to comment Share on other sites More sharing options...
fugix Posted June 9, 2011 Share Posted June 9, 2011 As stated, I'm not after any 'freebies' - I'm after an instructional approach as to how to achieve something - that's called help. I'll go find a more helpful community, cheers anyway guys - glad I don't work with PHP, bunch of miserable bastards. and i helped you by pointing you in the right direction...however, peace out girl scout Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.