I don't recall hearing about any issues...
I don't recall hearing about any issues...
As far as I can see, there is no work around for the CEON URI MAPPING. It's unfortunate.
Hi,
I find it very strange that you didn't think to ask in its thread then? :)
I just found this thread by accident but I took a look at the Smart Backgrounds code and it's very basic. I haven't actually tried installing it but am guessing that you were having a problem setting the background on product pages?
Did you try setting the background for category or EZ-Pages? And did that work fine?
The very latest version of Ceon URI Mapping (3.2.4 - download link in its thread) has code added to set the $_GET['cPath'] variable for product pages. Previous versions didn't, as most Zen Cart functionality uses the $cPath variable and this bug only just showed up with some "different" Zen Cart code which also relies on an actual cPath entry in the query string (the $_GET['cPath'] variable).
Looking at the source of the Smart Backgrounds module it's clear to me that that would have broken the module on product info pages.
If the above describes your situation, simply download the latest version of the URI Mapping module and your problems with the Smart Backgrounds module should go away.
I think that with the latest version of the URI Mapping module it is now 100% compatible with Zen Cart.. so if a module doesn't work with it, the module itself must have bugs, not the URI Mapping module!
Incidentally, the Smart Backgrounds module uses unquoted associative array indexes, like $_GET[cPath] - this is wrong, it should be $_GET['cPath']. Just thought that was worth mentioning!
Also, for obvious reasons you can't use relative paths to images when using the URI Mapping module. If your path to an image is ../images/some_image.gif then when you are on /fantastic-books/sci-fi/some-space-book using ../images/some_image.gif won't work as the images directory is on the root of the site. You should instead use /images/some_image.gif (i.e. all image paths must start with a slash / ).
Hope the above helps.
All the best...
Conor
ceon
Last edited by conor; 21 Sep 2009 at 12:20 AM.
Hi,
In my last post I have given an incorrect example of an image URI. Since you are storing the images in /includes/templates/your_template/images/ the example styles which come with Smart Background are incompatible with SEO modules. They should instead be something like the following:
/*example to set default header bg*/
#headerWrapper {background-image: url(/includes/templates/your_template/images/smartbg.gif);}
/*example to set header bg for listing or product page in category id 23*/
.smartBG_23 #headerWrapper {background-image: url(/includes/templates/your_template/images/smartbg_23.gif);}
Basically, replace
../images
with
/includes/templates/your_template/images/
As the relative paths don't work with an SEO/SEF/URI Mapped page!
Also upgrade to 3.2.4 though! That should be you up and running.
All the best...
Conor
Thanks for the information, Conor.
Thanks also for mentioning the missing quotes. Since it works as is, I hadn't revisited that old part of the code in a long time, but that gives a good excuse to update the packaging and perhaps make the mod easier to transplant for alternate uses.
Note that the full URL path is only needed if you are using an SEO mod.
Last edited by gjh42; 21 Sep 2009 at 01:24 AM.
Well all of this makes me feel better..I am in LOVE with Ceon URI, and the thought that it wasn't compatible with this mod was not makin' me happy
..
I am glad to see that I don't have to work up a workaround (though I think I would have at least ASKED Conor before mapping any kind of workaround..)
Hi all,
Newbie poster here and newbie zenner (less than one month).
I've done as per the instructions and although my default page header works perfectly well (smartbg.jpg) I cannot get the header to change when going to path 2...? I've reinstalled the mod about 5 times now and cannot for the life of me get anything other than the default header to display, please help
Here is my website which is very much still under construction:
www.swallowbakery.com/shop
Many, many thanks in advance if anyone can fix it.
Realise this is the wrong forum but also my css flyouts don't work, any reason why?
Cheers
Anyone, please?![]()
smartbg.jpg
The default code works with .gif images. Did you modify it for .jpg images? If not, that would be the cause. See the readme for directions to modify the code.
The new version of Smart Backgrounds that will be released soon has an easy selection method for choosing the image type to be used.