I am looking for a VERY simple geo-targeting script that will allow me to show one ad to US visitors and another one to the rest of the world. Is there anything like this available for free or do I need to buy I plugin for WP or something?
What price you have in mind? so that if it is feasible I build it for you in matter of 1 day. In fact that IP database I provide you, will have one extra mysql table in your database.
Hi Melloweitsj, I suggest downloading the plugin: "Visitor Maps and Who's Online". With Visitor Maps and Who's Online, you will be able to track the users location. Now if you want to show a specific image or text to the US simply use this in your PHP: <?php global $wpdb; global $current_user; get_currentuserinfo(); $user_country = $wpdb->get_var("SELECT country_name FROM ".$wpdb->prefix."visitor_maps_wo WHERE user_id = ".$current_user->ID." ORDER BY time_entry DESC LIMIT 1"); $is_us = false; if ($user_country == "United States") { $is_us = true; } ?> <?php if ($is_us) { ?> // YOUR HTML FOR US USERS <?php } else { ?> // HERE YOUR HTML FOR THE REST OF THE WORLD <?php } ?> PHP: I hope this helps you! Kind Regards, Maarten
Thanks for the response mrht. I found what I was looking for after browsing another forum yesterday: http://www.pokeraffiliatelistings.com/forums/wordpress-web-design-coding-technical/26347-geotarget-tool-non-wordpress-sites.html