Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

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

 

Different content Displaying based on Different Countries

Different content Displaying based on Different Countries

Hi everyone,

I'm using Joomla 2.5, MetaMod 3.15.

Downloaded Country Database in CSV format from   http://dev.maxmind.com/geoip/legacy/geolite/
Created a folder in Joomla directory and uploaded Country Database and GeoIP.Dat files
Created two custom HTML Modules with some content. and copied the below code in PHP Box in MetaMod Module.
if ($fromCountryName == "India") return 123;
else if ($fromCountryName ==  "Australia") return 124;

Both of them getting 123(Module ID) content
http://test.clicksandlikes.com/

Why it is happening. How to Different content Displaying based on Different Countries.
Is the PHP code correct? If not please provide.

rjillella
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Different content Displaying based on Different Countries

Hi rjillella,

have contacted you via e-mail.

Cheers,
Stephen

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

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10814
Newest User:
lloyd56785
Members Online:
0
Guests Online:
165

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked