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.

 

Selecting language on country flags not GeoIP

Selecting language on country flags not GeoIP

Dear MetaMod guys,

Working hard to understand all the features and thanks for this great extension.

I would like to show a module for specific languages but not through GeoIP but by the language that the site is in. That means if someone goes to www.mywebsite.com/en it should be visible and if it goes to www.mywebsite.com/de it should not be visible. This is done by the website country flags of my website.

This is for me better than through GeoIP and would also prevent people behind a proxy to view content they are not supposed to see and I wouldn't need the GeoIP data...

Hope someone can help...

Best regards,

Blans

blans
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Selecting language on country flags not GeoIP

Hi Blans,

I assume you're using Joom!Fish for doing the language selection. The good news: it's really easy!

1 - set the "$language handling" parameter in MetaMod to "Joomla front-end language"

2 - use the following PHP code:

if ( $language_code == 'en' ) return XXX;
if ( $language_code == 'fr' ) return YYY;
if ( $language_code == 'de' ) return ZZZ;
// replace XXX, YYY and ZZZ with the module ids to use for those languages.

I trust that this will help!
Best regards,
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
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Selecting language on country flags not GeoIP

Man, You have the greatest support ever. Thanks it works!

The only trouble is that I wanted to show a specific module for NL (which now works) but to make room some other modules have to be excluded for NL only. This however seems more difficult because then I would have to load all the modules in MetaMod and I seem to loose the format (Title) of the mods this way.

Gonna sweat on it... You feedback sure was helpful!

blans
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Selecting language on country flags not GeoIP

I found http://www.metamodpro.com/metamod/recip … d-language. Sorry for not having read that. Also my above mentioned problem should be resolved when buying your Pro version. I will do that...smile

You do good work! Thanks....

blans

blans
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1684
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5174
Newest User:
frashaomran
Members Online:
0
Guests Online:
109

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