Results 1 to 10 of 393

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.
    Last edited by gjh42; 18 Mar 2014 at 07:12 PM.

  2. #2
    Join Date
    Dec 2006
    Posts
    189
    Plugin Contributions
    0

    Default 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

  3. #3
    Join Date
    May 2004
    Location
    UK
    Posts
    478
    Plugin Contributions
    0

    Default 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 Code:
    <?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

  4. #4
    Join Date
    May 2004
    Location
    UK
    Posts
    478
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    just to say - all sorted :)

    code below incase anyone else needs it

    PHP Code:
    <?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

 

 

Similar Threads

  1. Adding Image Map to header with Smart Backgrounds
    By cspan27 in forum Addon Templates
    Replies: 16
    Last Post: 25 Jul 2009, 01:14 AM
  2. smart backgrounds
    By Glendon in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Sep 2008, 04:49 PM
  3. Backgrounds
    By v.kirk in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Jun 2006, 06:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg