Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » No Clue
No Clue
No Clue
Using Joomla 2.5.17 Stable, MetaMod Pro plugin v3.15, 2013-11-30, with geoip/GeoLiteCity.dat
Trying to substitute main slider at http://tc.yd.com/ydwinterdriving2/ with the following code recipe without result ... except the module text is showing but no background images (which are at this point the differentiating factor):
if ( $fromCountryId == "CA" ) {
if ( $geoip->city == "Cambridge" ) return 226;
if ( $geoip->city == "Woodbridge" ) return 227;
if ( $geoip->city == "Hamilton" ) return 228;
return 179;
/*return 179; // backstop for locations other than designated cities */
Any ideas?
Thanks
Re: No Clue
Hi Zipstripe,
I guess this is probably a CSS issue. I'm surprised you're getting this with the Pro version, which normally means that modules don't get any extra HTML padding around them when they appear on the page, therefore MetaMod can't introduce any CSS problems.
However there are a couple of things that can still affect it. Check both of these:
1 - the "style for included modules". Set this to "default" and included modules should end up with only the HTML that would have been there if the MetaMod wasn't involved.
2 - "Module Class Suffix" in "Advanced options". Just leave this blank.
If both of these are as they should be (default and blank) but you are still having problems:
1 - it's possible that the Pro plugin is not working for some reason. Check that it's published.
2 - try assigning your modules to the page without using MetaMod at all, just to check that the background really does appear.
3 - compare the HTML source of the page for one of the modules (i) when placed on page using MetaMod, and (ii) without MetaMod. Is there any difference in the HTML? If so, report back here and I'll take a look at it.
Hope that helps,
and stay safe!
Stephen
Re: No Clue
Hi Stephen,
Still no go! Per the above "style for included modules" is default and "Module Class Suffix" is blank. Pro plugin is published.
When Metamod module and 1 module of substitution set is published, the background images show. When I publish the 2nd or 3rd of the substitution set, the background images disappear.
Difference in source code for:
(i) without Metamod and no module -
<link rel="stylesheet" href="http://tc.yd.com/ydwinterdriving2/modul … .css" type="text/css" />
<script language="javascript" type="text/javascript">var s5_hidecar = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidebut = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidetext = "true";</script>
<style>.carouselInner .thumbnail {background-size: 100% 100% !important;}</style>
<script type="text/javascript">var s5_slide_opacity=1</script>
<script language="javascript" type="text/javascript">var s5_dropdowntext = "Open Gallery";</script>
<script language="javascript" type="text/javascript">var s5_verticalhorizontal = "false";</script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … y.js" type="text/javascript"></script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … s.js" type="text/javascript"></script>
(ii) with Metamod and 1 module (same) -
<link rel="stylesheet" href="http://tc.yd.com/ydwinterdriving2/modul … .css" type="text/css" />
<script language="javascript" type="text/javascript">var s5_hidecar = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidebut = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidetext = "true";</script>
<style>.carouselInner .thumbnail {background-size: 100% 100% !important;}</style>
<script type="text/javascript">var s5_slide_opacity=1</script>
<script language="javascript" type="text/javascript">var s5_dropdowntext = "Open Gallery";</script>
<script language="javascript" type="text/javascript">var s5_verticalhorizontal = "false";</script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … y.js" type="text/javascript"></script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … s.js" type="text/javascript"></script>
(iii) with Metamod and 2 modules -
<link rel="stylesheet" href="http://tc.yd.com/ydwinterdriving2/modul … .css" type="text/css" />
<script language="javascript" type="text/javascript">var s5_hidecar = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidebut = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidetext = "true";</script>
<style>.carouselInner .thumbnail {background-size: 100% 100% !important;}</style>
<script type="text/javascript">var s5_slide_opacity=1</script>
<script language="javascript" type="text/javascript">var s5_dropdowntext = "Open Gallery";</script>
<script language="javascript" type="text/javascript">var s5_verticalhorizontal = "false";</script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … y.js" type="text/javascript"></script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … s.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">var s5_hidecar = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidebut = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidetext = "true";</script>
<style>.carouselInner .thumbnail {background-size: 100% 100% !important;}</style>
<script type="text/javascript">var s5_slide_opacity=1</script>
<script language="javascript" type="text/javascript">var s5_dropdowntext = "Open Gallery";</script>
<script language="javascript" type="text/javascript">var s5_verticalhorizontal = "false";</script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … y.js" type="text/javascript"></script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … s.js" type="text/javascript"></script>
(iv) with Metamod and 3 modules -
<link rel="stylesheet" href="http://tc.yd.com/ydwinterdriving2/modul … .css" type="text/css" />
<script language="javascript" type="text/javascript">var s5_hidecar = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidebut = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidetext = "true";</script>
<style>.carouselInner .thumbnail {background-size: 100% 100% !important;}</style>
<script type="text/javascript">var s5_slide_opacity=1</script>
<script language="javascript" type="text/javascript">var s5_dropdowntext = "Open Gallery";</script>
<script language="javascript" type="text/javascript">var s5_verticalhorizontal = "false";</script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … y.js" type="text/javascript"></script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … s.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">var s5_hidecar = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidebut = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidetext = "true";</script>
<style>.carouselInner .thumbnail {background-size: 100% 100% !important;}</style>
<script type="text/javascript">var s5_slide_opacity=1</script>
<script language="javascript" type="text/javascript">var s5_dropdowntext = "Open Gallery";</script>
<script language="javascript" type="text/javascript">var s5_verticalhorizontal = "false";</script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … y.js" type="text/javascript"></script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … s.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">var s5_hidecar = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidebut = "true";</script>
<script language="javascript" type="text/javascript">var s5_hidetext = "true";</script>
<style>.carouselInner .thumbnail {background-size: 100% 100% !important;}</style>
<script type="text/javascript">var s5_slide_opacity=1</script>
<script language="javascript" type="text/javascript">var s5_dropdowntext = "Open Gallery";</script>
<script language="javascript" type="text/javascript">var s5_verticalhorizontal = "false";</script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … y.js" type="text/javascript"></script>
<script src="http://tc.yd.com/ydwinterdriving2/modul … s.js" type="text/javascript"></script>
Thanks, Andrew
Re: No Clue
Hi Andrew,
would I be right in thinking that the code you are quoting is from the head of the page rather than the body? Could you please also include the body html from where the module appears?
In particular it would be useful to have:
(1) 2 modules assigned to the page normally, no MetaMod
(2) 2 modules with MetaMod including them.
Also, can you confirm that the backgrounds show correctly when you have 2 slider modules assigned to the page normally (i.e. no MetaMod)?
Thanks,
Stephen
Re: No Clue
Hi Stephen,
You are correct, the code was taken from the <head> section. Also, per (1) and (2) scenarios both don't show the background image of the slider whether metamod is active or not (this assumes that the slider modules are published to the same location).
Can you send me an email as to where I can send over zipped source code files?
Thanks, Andrew
Re: No Clue
It turns out that the S5 Image and Content Fader module can only successfully display one module on a page at a time, so this is not a MetaMod issue. Suggested fix: find alternative fader module or get the developers to fix it so that it can display more than one on a page at a time.
Cheers,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » No Clue
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:
- 205
- Online:
- borger3298
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked