Deskripsyon
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 Spain! or display a flag of the country. The plugin also makes the ISO 3166-1 country code and country name avaliable to other plugins.
Pag-install
- Extract the zip file and just drop the contents in the
wp-content/plugins/
directory of your WordPress installation. - Activate the plugin through the ‘Plugins’ page.
- Copy the MaxMind country database to the plugin folder, or add your MaxMind license key to the plugin admin panel.
- If you are using the web service enable caching and select the cache length that you need.
- Use %%COUNTRYCODE%% or %%COUNTRYNAME%% in your posts to display the two character country code or country name respectively.
FAQ
- Do I have to pay for the MaxMind database?
-
No, MaxMind offer a free version of the database. However the paid for version is more accurate.
- I am a wordpress developer and want to access the country code or name in my code. How do I do that?
-
Easy 🙂 Just declare the global variables $rdISO3166_1 or $rdCountryName in your code and away you go.
Mga Review
Wala pang reviews para sa plugin na ito.
Mga Contributor at Developer
Ang “Region Detect” ay open source software. Ang mga sumusunod na tao ay nag-ambag sa plugin na ito.
Mga ContributorIsalin ang “Region Detect” sa iyong wika.
Interesado sa development?
Tingnan ang code, i-check ang SVN repository, o mag-subscribe sa development log sa pamamagitan ng RSS.
Changelog
1.00.00
- Initial version
1.01.00
- Added option to set the country from the url
1.02.00
- Corrected bug with the cache clearing too quickly
- Added a table that shows countries and number of ip addresses that are cached
1.02.01
- Corrected spelling mistakes
1.02.02
- Removed debugging code
1.02.04
- Fixed installation bug which was causing a crash when installing
1.02.05
- Made plugin multisite compliant