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.

 

Want to display a module for all browsers except chrome

Want to display a module for all browsers except chrome

I have an animated logo (metamod ID 117 - reg mod ID 113) and a static logo(metamod ID 118 - reg mod ID 38)  The animation does not work in IE so I would want the Static Logo to display only IE and the animated logo for all others.  I have been playing around with the commands but I am having trouble getting it going.  Any help would be much appreciated!

Bri_idea
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Want to display a module for all browsers except chrome

I hope i can help with my few experience with metamod.
You have to check if the user is using the IE and so call the right image

// you already checked if is IE or not
if($isIE == true){
  return "118";
} else {
  return "113";
}

Please, correct me if i am wrong...

raul3k
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: Want to display a module for all browsers except chrome

Hi Bri_idea and Raul,

Raul has just taken a little bit of PHP code from an example, out of context (sadly won't work). There's a more robust way to do this:

if ($core_genius->check("browsertype = ie")) {
  return 118;
} else {
  return 113;
}

See this page for more about JomGenius:
http://www.metamodpro.com/jomgenius/parameters

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

Re: Want to display a module for all browsers except chrome

I'm a "begginer" with joomla and metamod. I'll study this and JomGenius, it's seems to be perfect to any case.

raul3k
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: Want to display a module for all browsers except chrome

Thanks for the help guys, I am going to try this :
if ($core_genius->check("browsertype = ie")) {
  return 118;
} else {
  return 113;
}

Bri_idea
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Want to display a module for all browsers except chrome

This worked better than before however I am left with a blank white Iframe from the animated module in IE sad

here is the site http://norcaind.com/joomla/

Bri_idea
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Want to display a module for all browsers except chrome

Hi Bri-Idea,

Is the iframe part of a module? Or part of the template? It kind of looks like it's part of a module, but according to the PHP code above it should not be being included when viewed in IE, if it's part of module 113.

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

Re: Want to display a module for all browsers except chrome

I am only using a wrapper module for the logo position

Bri_idea
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Want to display a module for all browsers except chrome

ok, found the issues on your site:

1 - you had module 113 entered into the "quick module id or position include" box. This made it show up on ALL pages that the MetaMod was assigned to, irrespective of the code in the PHP box

2 - in the PHP you were swapping between module 118 and 113, instead of module 38 (the static image) and 113. Module 118 was another MetaMod, not set up correctly... so I have deleted that one for you so you don't get confused smile

All working now,
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

Re: Want to display a module for all browsers except chrome

Thank you so much for your help.  Unbelievable!  Fantastic Support even for the free version.  I will be upgrading shortly once I get the hang of it myself!  Thank you again

Bri_idea
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1686
Total Polls:
6
Total Posts:
5933
Total Posts Today:
7
User Info:
 
Total Users:
4432
Newest User:
kinggambling14
Members Online:
0
Guests Online:
233

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