Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Country GeoIP Issue & Screen...
Country GeoIP Issue & Screen Resolution Issue
Country GeoIP Issue & Screen Resolution Issue
I have a site which i am using your application on, i am having a little trouble setting it up i have a couple of things i am testing...
If from AU go to menu1 Quick Rule 'only these contries' = AU active menu = au1
If from NZ go to menu2 Quick Rule 'only these contries' = AU active menu = nz1
If from GB go to menu3 Quick Rule 'only these contries' = AU active menu = gb1
If from US go to menu4 Quick Rule 'only these contries' = AU active menu = us1
You get the general idea...
Screen Size
PHP Test then template a
If Screen size is < 500 Phone Template
<script language="JavaScript">
if (screen.width <= 500)
</script>
PHP Test then template b
<script language="JavaScript1.2">
//<!--
if (screen.width > 500 && screen.width < 1000)
//-->
</script>
PHP Test then template c
<script language="JavaScript1.2">
//<!--
if (screen.width > 1000)
//-->
</script>
Here we go again...
Re: Country GeoIP Issue & Screen Resolution Issue
Hi twhcreations,
I have a feeling that the issue with GeoIP may be due to server setup. Some servers may report the client IP address in different server variables. Chameleon tries hard to get the right IP address, and with vertain proxies actually picks up the original IP address rather than the proxy IP address! (as long as the proxy sets the $_SERVER["HTTP_X_FORWARDED_FOR"] variable with the client's real address).
However that would not explain how testing for 4 different countries came up with a "succeed" for all of them!
Did you remember to enable the GeoIP at the top of the rule, and did you download a GeoIP database using the tools in the Config screen of Chameleon?
It would also be valuable to turn on Chameleon's debug mode (in the config panel on the Rules page). As long as you have a "messages" section in your template, then you get lots of info in there describing the rules that Chameleon is checking: <jdoc:include type="message" />
That should give you a good idea of what's going on.
Cheers,
Stephen
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Country GeoIP Issue & Screen...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7624
- Newest User:
- borger3298
- Members Online:
- 1
- Guests Online:
- 151
- Online:
- borger3298
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked