Forums / All Other Contributions/Addons / Smart Backgrounds support

Smart Backgrounds support

Views: 55,899

Results 381 to 393 of 393
28 May 2012, 7:47 PM
#381
dsimon avatar

dsimon

New Zenner

Join Date:
Mar 2012
Posts:
82
Plugin Contributions:
0

Smart Backgrounds support

Does anyone know if this works with ver 1.5?

12 Aug 2012, 9:13 AM
#382
barendfaber avatar

barendfaber

Zen Follower

Join Date:
Apr 2010
Posts:
263
Plugin Contributions:
0

Re: Smart Backgrounds support

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?

14 Dec 2012, 12:08 AM
#383
damiendlskinsolution avatar

damiendlskinsolution

Zen Follower

Join Date:
Sep 2008
Posts:
97
Plugin Contributions:
0

Re: Smart Backgrounds support

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:

14 Dec 2012, 8:22 AM
#384
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Smart Backgrounds support

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.

13 Feb 2014, 2:57 PM
#385
chrismadison avatar

chrismadison

New Zenner

Join Date:
Feb 2014
Posts:
1
Plugin Contributions:
0

Re: Smart Backgrounds support

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.

13 Feb 2014, 5:24 PM
#386
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Smart Backgrounds support

The page name is productinfo (<body id="productinfoBody" ...), so

smartbg_productinfodisplay.gif

needs to be

smartbg_productinfo.gif

18 Mar 2014, 4:46 PM
#387
robbyn7 avatar

robbyn7

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
0

Re: Smart Backgrounds support

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.

18 Mar 2014, 6:10 PM
#388
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Smart Backgrounds support

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.

18 Mar 2014, 6:39 PM
#389
robbyn7 avatar

robbyn7

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
0

Re: Smart Backgrounds support

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

15 Jun 2015, 4:56 PM
#390
sarahl avatar

sarahl

Zen Follower

Join Date:
May 2004
Location:
UK
Posts:
471
Plugin Contributions:
0

Re: Smart Backgrounds support

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

16 Jun 2015, 8:40 AM
#391
sarahl avatar

sarahl

Zen Follower

Join Date:
May 2004
Location:
UK
Posts:
471
Plugin Contributions:
0

Re: Smart Backgrounds support

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

2 Jul 2016, 8:11 AM
#392
texasemt avatar

texasemt

New Zenner

Join Date:
Apr 2007
Location:
San Antonio, TX
Posts:
48
Plugin Contributions:
0

Re: Smart Backgrounds support

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

2 Jul 2016, 8:24 AM
#393
texasemt avatar

texasemt

New Zenner

Join Date:
Apr 2007
Location:
San Antonio, TX
Posts:
48
Plugin Contributions:
0

Re: Smart Backgrounds support

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