Title: Region Detect
Author: joebrewer
Published: <strong>26 maijs, 2011</strong>
Last modified: 17 oktobris, 2013

---

Meklēt spraudņus

Šī spraudnis **nav atjaunināts vairāk kā divus gadus**. Varbūt, tas vairs netiek
uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress
versijām.

![](https://s.w.org/plugins/geopattern-icon/regiondetect.svg)

# Region Detect

 Autors [joebrewer](https://profiles.wordpress.org/joebrewer/)

[Lejupielādēt](https://downloads.wordpress.org/plugin/regiondetect.1.02.05.zip)

 * [Sīkāka informācija](https://lv.wordpress.org/plugins/regiondetect/#description)
 * [Atsauksmes](https://lv.wordpress.org/plugins/regiondetect/#reviews)
 *  [Uzstādīšana](https://lv.wordpress.org/plugins/regiondetect/#installation)
 * [Attīstība](https://lv.wordpress.org/plugins/regiondetect/#developers)

 [Atbalsts](https://wordpress.org/support/plugin/regiondetect/)

## Apraksts

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.

## Uzstādīšana

 1. Extract the zip file and just drop the contents in the `wp-content/plugins/` directory
    of your WordPress installation.
 2. Activate the plugin through the ‘Plugins’ page.
 3. Copy the MaxMind country database to the plugin folder, or add your MaxMind license
    key to the plugin admin panel.
 4. If you are using the web service enable caching and select the cache length that
    you need.
 5. Use %%COUNTRYCODE%% or %%COUNTRYNAME%% in your posts to display the two character
    country code or country name respectively.

## BUJ

  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.

## Atsauksmes

Par šo spraudni nav atsauksmju.

## Autori un izstrādātāji

“Region Detect” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi
cilvēki.

Līdzdalībnieki

 *   [ joebrewer ](https://profiles.wordpress.org/joebrewer/)

[Tulkot “Region Detect&#8221 savā valodā.](https://translate.wordpress.org/projects/wp-plugins/regiondetect)

### Vai jūs interesē attīstība?

[Pārlūkojiet kodu](https://plugins.trac.wordpress.org/browser/regiondetect/), apmeklējiet
[ SVN krātuvi ](https://plugins.svn.wordpress.org/regiondetect/)vai abonējiet[ attīstības žurnālu](https://plugins.trac.wordpress.org/log/regiondetect/),
ko izveidojis [RSS](https://plugins.trac.wordpress.org/log/regiondetect/?limit=100&mode=stop_on_copy&format=rss).

## Izmaiņu žurnāls

#### 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

## Meta

 *  Versija **1.02.05**
 *  Pēdējo reizi atjaunots: **pirms 13 gadiem**
 *  Aktīvās instalācijas: **10+**
 *  WordPress versija ** 3.1.2 vai jaunāka **
 *  Pārbaudīts līdz: **3.6.1**
 *  Valoda
 * [English (US)](https://wordpress.org/plugins/regiondetect/)
 * Birkas:
 * [country detection](https://lv.wordpress.org/plugins/tags/country-detection/)
   [geolocation](https://lv.wordpress.org/plugins/tags/geolocation/)[localisation](https://lv.wordpress.org/plugins/tags/localisation/)
   [localization](https://lv.wordpress.org/plugins/tags/localization/)
 *  [Papildu skats](https://lv.wordpress.org/plugins/regiondetect/advanced/)

## Vērtējumi

Vēl nav iesniegta neviena atsauksme.

[Your review](https://wordpress.org/support/plugin/regiondetect/reviews/#new-post)

[Skatīt visasatsauksmes](https://wordpress.org/support/plugin/regiondetect/reviews/)

## Līdzdalībnieki

 *   [ joebrewer ](https://profiles.wordpress.org/joebrewer/)

## Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

 [Skatīt atbalsta forumu](https://wordpress.org/support/plugin/regiondetect/)

## Ziedojiet

Vai vēlaties atbalstīt šī spraudņa pilnveidošanu?

 [ Ziedojiet šim spraudnim ](http://www.brewsterware.com/region-detect-wordpress-plugin.html)