Brewsterware

May 22, 2011

Region detect wordpress plugin

Filed under: PHP and MySQL,Wordpress — Joe Brewer @ 2:57 pm

Region detect is a plugin for WordPress that detects the country that the current visitor is browsing from. It can display the country to the user; something like:

Hello visitor from %%COUNTRYNAME%%

This is done by using the codes %%COUNTRYCOD E%% and %%COUNTRYNAM E%% in your posts (take out the spaces).

The plugin makes the two character ISO 3166-1 country code and country name available to other plugins – just declare the global variables $rdISO3166_1 and $rdCountryName.

(more…)

Powered by WordPress