Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.



Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.


Show module based on location

Show module based on location

Hi there. Thinking of purchasing Chameleon but wanted to know whether it is possible to use it to show/hide a module based on the users geo-location.

Basically what I want to do is for a particular module to show up on the home page for users accessing the site from certain countries. Few other things I want to do as well, but the documentation seems to answer those questions.


Beginner Modder
1 Posts
Administrator has disabled public posting

Re: Show module based on location

Hi Jaymalo,

The product for this is MetaMod, not Chameleon, as Chameleon does not deal with modules.

And yes, MetaMod can switch modules based on GeoIP location.

Brief how-to:

1 - download and install the GeoIP Lite database from MaxMind as per documentation
2 - create your target module, the one you want to appear for certain countries. Take a note of its module id number
3 - change the module position of the target module to something like "frontpage-conditional" just so it doesn't show up on anything for now.
4 - create a MetaMod in the module position that you actually want the target module to appear in. Make sure it's published.
5 - in the MetaMod GeoIP options, indicate that you want to use the GeoIP Country database
6 - in the MetaMod enter the 2-letter country code (or a comma-separated list of 2-letter country codes) of the countries you want the target module to appear for, in the "only these countries" box.
7 - enter the module id of the target module into the "quick module id or position include" box.
8 - save and test.


Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

3329 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
Total Topics:
Total Polls:
Total Posts:
Posts this week:
User Info:
Total Users:
Newest User:
Members Online:
Guests Online:

Forum Legend:

 New Sticky