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.

 

Problem to setting different pages for countries

Problem to setting different pages for countries

Dear MetaMod staff, I have some problem with the sessions
I need to this:
When an user from a XX country, he would be redirect to a different page (not home) but he can change and check the home or avery page in the website.
I hope you can help me because I need to do this urgent.

Let me know and thanks!

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

Re: Problem to setting different pages for countries

Hi rodrocolodro,

Here's what I think you are asking for:

1 - if user is from country XX, then no matter which page they ask for (on their first visit), he will be sent to a specific page.
2 - the user should be cookied or a session variable set so that this only happens on the FIRST page they arrive on
3 - this should affect no other users, only users from country XX.

Here's how to do this assuming we are going to do this with cookies (long-term) rather than session variables (only apply for a single session):

Setup:
• Use the config page to download the latest GeoLiteCountry GeoIP database

Rule 1: detect cookie "A". In the Succeed action: "Quit the rule chain".
Rule 2: detect country XX. In the Succeed action: 2 things: set cookie "A" AND redirect to the menu item of the page you want to send people from XX to.

Hope that helps,
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
3312 Posts
User info in posts
Administrator has disabled public posting

Re: Problem to setting different pages for countries

N.B. In Rule 2 you also need to go into the Config tab, and set "Enable GeoIP/GeoCity" to "GeoIP Country (free or commercial)".

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
3312 Posts
User info in 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:
10113
Newest User:
michael2066
Members Online:
1
Guests Online:
212

Online: 
michael2066

Forum Legend:

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