New Zenner
- Join Date:
- Mar 2012
- Posts:
- 82
- Plugin Contributions:
- 0
Smart Backgrounds support
Does anyone know if this works with ver 1.5?
Views: 55,899
New Zenner
Does anyone know if this works with ver 1.5?
Zen Follower
Hi,
I am might be a bit stupid here, I am working on https://www.dragons.digi-blue.co.uk, using version 1.3.9 h. I am trying to give my product info page a background, but only the centercolumn where the picture, description and buy now button is. I cannot change the actual background as if someone with smaller screen look at it, the background will move. How can I do this for the product info, log in and cart pages?
Zen Follower
This mod is absolutely awesome... BUT a recent update to v1.5 and I can't seem to make it work.
Tried... tried again... no luck (actually, its' probably no skills :( )
Glenn... Would you be interested in bringing your mod up to speed? Can we bribe you with a cup (or even a bucket) of Joe maybe :wink:
Black Belt
I don't think it should have any issues with v1.5.x; the only existing file it touches is tpl_main_page.php, and that has not changed since 2007, before the first version of this mod.
Give details of what you were trying to do and exactly what happened, and I may be able to diagnose the issue. Seeing it live may help.
New Zenner
I have installed the smart background add-on and it is precisely what I am looking for. I am trying to install a background on the product display page contentMainWrapper but for whatever reason, I can't seem to get it to work. I am not sure that the I am using the name of the page. TIA Tom
THis is css.
.smartBG_productinfo #contentMainWrapper {background-image: url(../images/smartbg_productinfodisplay.gif);}
This is a link to my page
http://www.stitchboutiqueboston.com/canvases-traditional/maharani-raheed-p-448/
I am using v1.3.9d.
Black Belt
The page name is productinfo (<body id="productinfoBody" ...), so
smartbg_productinfodisplay.gif
needs to be
smartbg_productinfo.gif
Zen Follower
I recently upgraded from v1.3.8 to v1.5.1 and had to reinstall this mod. Finally got it to work but now I'm seeing 2 headers (logos) on all pages. Looks like it's working in conjunction with my current header (logo). How can I remove the additional image from my header and keep the smartbg one?
Thanks.
Black Belt
I need more information on what you have and what you did to advise correctly. Can I see it live?
It might just be a case of removing the logo div from /includes/templates/your_template/common/tpl_header.php.
Zen Follower
Thanks for the reply Glenn,
My site is currently set at "down for maintenance" so it only shows the main page. I'll have to make it live when I get in this evening. In the meantime, here's the link: f o x x y d i v a dot com /fashions
Zen Follower
Glen - loving the mod thank you - and just so people know this works on my new 1.5.4 shop :)
Anyway I was wondering if it is possible to make it work with sub-cats - or rather what is happening is that if I go via menu I get a _448 sub cat - works! but if I go via home page the sub cat is actually 7_448 and therefore doesn't show it, or rather is looking for the banner _7 not _7_448 :(
Is it possible to have _448 & 7_448 both showing same banner?
Oh code I am using:
<?php
//Smart Backgrounds
$smart_image = '';
if (($current_page_base == 'index' and $_GET[cPath] != 0) or $current_page_base == 'product_info') { //add _ and top cat id to js filename
$smart_image = '_' . (int)$_GET[cPath];
}
// /Smart Backgrounds
?>
<?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'smartbanners' . smart_backgrounds('.jpg', 'sidebox') . $smart_image . '.jpg', '');?></div>
this just adds a large banner to the relevant page - no CSS needed :)
Not sure if you are still modding this plugin :) if not I will apply more brain power tomorrow
Thanks
Sarah
Zen Follower
just to say - all sorted :)
code below incase anyone else needs it
<?php
$smart_image = (file_exists(DIR_WS_TEMPLATE_IMAGES . 'smartbanners_' . $_GET['cPath'] . '.jpg'))?'_' . $_GET['cPath']:'';
?>
<?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'smartbanners' . smart_backgrounds('.jpg', 'sidebox') . $smart_image . '.jpg', '');?></div>
Great mod thank you! I will give it a whirl trying to fit with banner module too - to save FTP'ing new images but that isn't such a big deal :)
Sarah
New Zenner
Hello!
I have v1.5.5a with the default responsive template...
I have everything working, except for the mobile part... the image will not resize.
I have tried everything I can think of to get it to resize, but I cannot figure it out.
Any help would be appreciated.
Thanks!
Mark
Store: www.texasdirectsales.com
Main Website: www.texasemt.com
New Zenner
I figured it out... in case anyone needs it...
.smartBG_0 #logo {background-image: url(../images/smartbg_0.png);background-size:100%;}
.smartBG_1 #logo {background-image: url(../images/smartbg_1.png);background-size:100%;}
.smartBG_2 #logo {background-image: url(../images/smartbg_2.png);background-size:100%;}
.smartBG_3 #logo {background-image: url(../images/smartbg_3.png);background-size:100%;}
.smartBG_4 #logo {background-image: url(../images/smartbg_4.png);background-size:100%;}
Mark
Store: www.texasdirectsales.com
Main Website: www.texasemt.com
Tell staff why this post should be reviewed.