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.

 

[solved] Switch Module by US States

[solved] Switch Module by US States

Hi,

I need to setup my site to switch between 2 modules based on the user's region (US State)

5 states will see a module with the prices (CO, WY, NE, NM, UT)

All other areas need to see a module without prices

Is there a simple way to set this up?

Thanks!

JanFar
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: [solved] Switch Module by US States

I figured it out!

Very easy!

if ($geoip->region == "WY" ) return 228;
else return 227;

JanFar
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Posts this week:
1
User Info:
 
Total Users:
10119
Newest User:
watytb5
Members Online:
2
Guests Online:
267

Online: 
watytb5, jack67484

Forum Legend:

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