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.

 

Fallback module

Fallback module

Hi,

I was wondering if there was a way to set up a 'fallback' module?

For example:
I would like to set up a module that only appears for people living in NZ and have a default module that takes it's place if your are from elsewhere.

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

Re: Fallback module

You can't do a "fallback" if you are using the GUI controls for "only these countries". But you can if you do it with the PHP box.

if ($fromCountryId == "NZ") return 100; // visitors from NZ
return 500; // fallback

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
3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
4
User Info:
 
Total Users:
4378
Newest User:
miller2341
Members Online:
3
Guests Online:
140


Forum Legend:

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