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.

 

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...

twhcreations
Beginner Modder
ranks
useravatar
Offline
3 Posts
User info in posts
Administrator has disabled public posting

Re: Country GeoIP Issue & Screen Resolution Issue

How have you tested the GeoIP redirects in the past?

I am using proxy servers in the county i am trying to redirect, and i am getting no luck at all...

GeoIP is a pain the butt!

Here we go again...

twhcreations
Beginner Modder
ranks
useravatar
Offline
3 Posts
User info in posts
Administrator has disabled public posting

Re: Country GeoIP Issue & Screen Resolution Issue

Can anyone give me an idea how to get this opeational, its getting really close to my deadline and i am still not able to get this operational.

Here we go again...

twhcreations
Beginner Modder
ranks
useravatar
Offline
3 Posts
User info in posts
Administrator has disabled public posting

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

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:
4383
Newest User:
kingpen99
Members Online:
0
Guests Online:
154

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