Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » ChameleonLite
- » Show template based on IP address
Show template based on IP address
Re: Show template based on IP address
Hi Chris,
yes, that's easy to do. Check out the JomGenius documentation for the "core genius" and the things it knows about...
In a nutshell, you can do this:
if ($core_genius->check("clientip = 123.45.67.89")) return true;
Then set the template to be used from the dropdown in the SUCCEED action.
If you want to check for all addresses in a range, you can change it to this:
if ($core_genius->check("clientip starts with 123.45.67.")) return true;
Or, if you have several discrete addresses to check for, use this (add as many to the list as you like):
if ($core_genius->check("clientip = 123.45.67.89, 123.45.67.111")) return true;
Cheers,
Stephen
- Index
- » Chameleon / ChameleonLite
- » ChameleonLite
- » Show template based on IP address
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5965
- Posts this week:
- 3
- User Info:
- Total Users:
- 8012
- Newest User:
- grant1ab
- Members Online:
- 0
- Guests Online:
- 199
- 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