WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Custom Content by Country (by iControlWP)

Tool for displaying/hiding custom content based on visitors country/location.

TODO

  • Add option to remove the ip2nations data from the database.

2.12

  • UPDATED: IP2Nations database to version 22nd March 2014

2.11

  • ADDED: Feature to allow you to by-pass W3TC Total Cache PAGE CACHING for pages that use this shortcode. See FAQs.

2.10

  • ADDED: A global plugin option to turn HTML printing off. You can turn it off globally, and then override for individual shortcodes using the HTML (v2.9) parameter as and when you need it.

2.9

  • UPDATED: IP2Nations database to version 15th January 2013
  • ADDED: Ability to not print shortcode with surrounding HTML. Simply use parameter html="none"

2.8

  • FIXED: Call time by reference errors.
  • ADDED: data-detected-country field to the HTML spans that are generated so you can see the exact country code being detected each time.

2.7

  • Added a Developer Mode - turn this on to STOP the performance optimization whereby country code data is stored in a cookie to reduce repeat MySQL queries.
  • Ensured that there would be no PHP warning errors associated with WORPIT_DS definition

2.6

2.5

  • ADDED: A dismiss button for those who have manually installed the IP 2 Nations database.

2.4

  • ADDED: Now uses a 24hour cookies to store country code and country name to reduce repeated SQL queries. That is, every visitor that triggers this shortcode will incur only 1 MySQL query on the site.

2.3

  • UPDATED: The IP2Nations IP-to-Country database to latest release (August 22, 2012)

2.2

  • FIXED: Bug with undefined function error (thanks Merle!)

2.1

  • FIXED: Bug with incomplete internationalisation functions. Will complete for a later release.

2.0

  • UPDATED: the IP 2 Nation database to the version released 3rd June 2012. You will be prompted to run the database upgrade after the plugin is installed.
  • ADDED: Plugin options/settings page - you must enable any of the 2 main features to use anything from the plugin. This is in order to maximum plugin performance so only the absolutely necessary code is used.
  • ADDED: Automatic Amazon Affiliate links using shortcode: [CBC_AMAZON] . You can also specify Amazon associate tags for each Amazon website and the plugin will automatically use it with the appropriate site and generate an affiliate link for your product ASIN depending on where the visitor is from.
  • ADDED: Plugin now conforms to iControlWP standard plugin structure. Faster, stable and automatically generates options pages.

1.1

  • ADDED: Shortcode [CBC_CODE /] - which will print your country code.
  • ADDED: Special case for local testing, where if your IP Address is detected as 127.0.0.1, country and country code will be detected as 'localhost'.
  • Tidied up the code A LOT.
  • Improved the Admin Notices and DB update process, and is now using the correct WordPress action hooks.
  • Added special case for local testing, where if your IP Address is detected as 127.0.0.1, country and country code will be 'localhost'.
  • Began coding for adding some nice features later.

1.0

  • First Release

Requires: 3.2.0 or higher
Compatible up to: 3.9
Last Updated: 2014-4-14
Downloads: 3,479

Ratings

4 stars
4.7 out of 5 stars

Support

2 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
50,2,1
100,1,1 100,1,1 0,1,0
100,1,1
100,1,1 100,1,1 100,1,1
100,3,3
100,1,1
100,1,1