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

    .smartBG_contact_us #logoWrapper {background-image: url(../images/smartBG_contact_us.png);}

    The code looks for image files named in lowercase, like smartbg_whatever.whatever. Rename your images and modify your stylesheet rules like this:

    .smartBG_contact_us #logoWrapper {background-image: url(../images/smartbg_contact_us.png);}

    The stylesheet selectors do use camel case (.smartBG_contact_us).

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

    Default Re: Smart Backgrounds support

    For manufacturer pages, here is some code to test. Find in smart_backgrounds_functions.php
    PHP Code:
      if ($_GET['main_page'] == 'index' or $_GET['main_page'] == 'product_info') { 
        
    // _p and products_id  only if individual prod bg image exists, else  _product_info  only if page bg image exists, else  _ and cPath  only if individual cat bg image exists, else  _ and top cat id  only if top cat bg image exists
        
    $smart_image = ($_GET['main_page'] == 'product_info' and file_exists(DIR_WS_TEMPLATE_IMAGES 'smart' $location '_p' $_GET['products_id'] . $ext))?'_p' $_GET['products_id']:(($_GET['main_page'] == 'product_info' and file_exists(DIR_WS_TEMPLATE_IMAGES 'smart' $location '_product_info' $ext))?'_product_info':
                       (
    file_exists(DIR_WS_TEMPLATE_IMAGES 'smart' $location '_' $_GET['cPath'] . $ext)?'_' $_GET['cPath']:(file_exists(DIR_WS_TEMPLATE_IMAGES 'smart' $location '_' . (int)$_GET['cPath'] . $ext)?'_' . (int)$_GET['cPath']:'')));
      } elseif (
    $_GET['main_page'] == 'page') { 
    and replace with this
    PHP Code:
      if ($_GET['main_page'] == 'index' or $_GET['main_page'] == 'product_info') { 
        if (isset(
    $_GET['manufacturers_id='])) {
        
    // _m and manufacturers_id  only if individual mfr bg image exists, else  _manufacturer  only if page bg image exists
          
    $smart_image = (file_exists(DIR_WS_TEMPLATE_IMAGES 'smart' $location '_m' $_GET['manufacturers_id'] . $ext))? '_m' $_GET['manufacturers_id']: (file_exists(DIR_WS_TEMPLATE_IMAGES 'smart' $location '_manufacturer' $ext)?'_manufacturer''');
        } else {
        
    // _p and products_id  only if individual prod bg image exists, else  _product_info  only if page bg image exists, else  _ and cPath  only if individual cat bg image exists, else  _ and top cat id  only if top cat bg image exists
        
    $smart_image = ($_GET['main_page'] == 'product_info' and file_exists(DIR_WS_TEMPLATE_IMAGES 'smart' $location '_p' $_GET['products_id'] . $ext))?'_p' $_GET['products_id']:(($_GET['main_page'] == 'product_info' and file_exists(DIR_WS_TEMPLATE_IMAGES 'smart' $location '_product_info' $ext))?'_product_info':
                       (
    file_exists(DIR_WS_TEMPLATE_IMAGES 'smart' $location '_' $_GET['cPath'] . $ext)?'_' $_GET['cPath']:(file_exists(DIR_WS_TEMPLATE_IMAGES 'smart' $location '_' . (int)$_GET['cPath'] . $ext)?'_' . (int)$_GET['cPath']:'')));
        }
      } elseif (
    $_GET['main_page'] == 'page') { 

  3. #3
    Join Date
    May 2006
    Posts
    102
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Hello

    When I first saw this add on I thought it was to change the background but it seems not.
    I wanted to change the background does not want to change the header or logo ( change the background of the site). can you help me? Sorry for my english

    tanks

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

    Default Re: Smart Backgrounds support

    Yes, this mod can be used to change the background (of pretty much any element).
    I need more information on how and what you want to change before I can help.

  5. #5
    Join Date
    May 2006
    Posts
    102
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    hello thanks for the reply. Send a sample page by clicking between the category will see the right to change the background (various instruments)
    sample page http://www.thomann.de/gb/index.html

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

    Default Re: Smart Backgrounds support

    For behavior similar to that, you would want to change the body background based on the current category or subcat. You could have a different background for every subcategory or other page.

    That site actually has a randomizing function added, which gives a different image selected from a certain set each time the same page is visited. That would be custom coding beyond the scope of this mod.

  7. #7
    Join Date
    May 2006
    Posts
    102
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    I know that the image of this site is randomizing function but what I want is:

    category1
    subcategoria1a
    subcategoria1b

    category2
    subcategoria2a
    subcategoria2b

    background1 to category1 (and subcategories)
    background2 to category2 (and subcategories)

    will this add on can do this?

 

 

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