Page 38 of 40 FirstFirst ... 283637383940 LastLast
Results 371 to 380 of 393
  1. #371
    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') { 

  2. #372
    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

  3. #373
    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.

  4. #374
    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

  5. #375
    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.

  6. #376
    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?

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

    Default Re: Smart Backgrounds support

    Yes, if you make a background applicable to category1, it will appear on all of category1's subcats as well. The readme describes how to do this.

  8. #378
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Smart Backgrounds support

    Hi Glenn,

    does this mod work based on language?
    I have a slider in the header, and the images have text in them.
    Right now, regardless of the language selected by the user, the slider images are the same with the same text (language).

    I'd need the following
    user selects Italian language, hence the slider displays
    img_1_IT
    img_2_IT
    img_3_IT
    ...

    user selects English language, hence the slider displays
    img_1_EN
    img_2_EN
    img_3_EN
    ...

    Does Smart Background do that.

    Thank you

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

    Default Re: Smart Backgrounds support

    Been traveling and offline for a while...
    As Smart Backgrounds uses the /your_template/images/ folder to test, it does not automatically accommodate multiple languages. It could be implemented for certain purposes to work with language awareness, but I would have to study your application to know the best way to do it.

    I have actually just updated and adapted the Ultimate Fade-in Slideshow mod to allow for multiple languages, but have been informed that Dynamic Drive's TOS do not allow it to be distributed by anyone but them; therefore, I am not allowed to give you my complete adaptation. I will be reworking the mod to give directions for everyone who wants to use it to do the adaptation themselves (and supporting the inevitable mistakes that some people will make when they try to do it... sigh...)

  10. #380
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Smart Backgrounds support

    Thank you for your usual kindness, I hope you're enjoying yourself.

    I'll wait for your instructions on the Ultimate Fade-in Slideshow, though I'd rather stick with the slider I have already on the site; hence hoping you don't mind I'll ask for the php if/else statement to select a different header based on language, much like the if/else for different pages.

    In case you'd like to check the site where I am trying to do this it's amberprecious dot com where both English, and Italian have the same heade images in the home page, and different ones in the "amber History" (ez-page) page.

 

 
Page 38 of 40 FirstFirst ... 283637383940 LastLast

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