Page 33 of 40 FirstFirst ... 233132333435 ... LastLast
Results 321 to 330 of 393
  1. #321
    Join Date
    Sep 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Glenn,

    Thanks! That's a part of the problem solved!
    I uploaded your original file, which didn't solved the problem but, at least now, the log doesn't involve Smart Backgrounds..
    My guess is again, Dreamweaver is adding extra spaces/lines in the code. I really got to trash that program...

    Thanks again for pointing out where the problem was!

    Damien

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

    Default Re: Smart Backgrounds support

    If you use Notepad++ to paste the revised code into the file, you will not get any extra spaces unless you put them in yourself.

    Are you still getting a "headers already sent" kind of error? Does it involve a file that you have ever edited?

  3. #323
    Join Date
    Sep 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    the error moved to the shipping files (under /language/modules/). Every single file had extra lines at the end. Dunno why since I modified only the freeshipper.php file... but anyway... I fixed them all and the error is gone!

    It is the 4th or 5th time that you have set me on the right path. I cannot thank you enough for your help.

    Damien

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

    Default Re: Smart Backgrounds support

    Maybe if Dreamweaver was the culprit, it adds the line/space to any file it handles, whether you are editing it or not? I have seen a number of people mentioning using DW for ZC files (without problems), so it might be some uncommon kind of setting that you have?

  5. #325
    Join Date
    Sep 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    I have used DW to upload hundreds of file and only a very small percentage had issues. I'm not even gonna speculate, I'll use Note ++ to edit and Filezilla to upload from now on.

    Thanks again for the support

    Damien

  6. #326
    Join Date
    Feb 2010
    Location
    Bulgaria, Sofia
    Posts
    1
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Hi guys!
    My English is not very good.
    I have the following problem:
    I use Zen Cart 1.3.9d and Smart Backgrounds 2.1.1.
    My off-line store working on WAMP5 v1.7.0
    I install and configure Smart Backgrounds Mod.
    I put this code:

    [SCR]<!--Smart Backgrounds-->
    <?php $smart_image = '';
    if ($current_page_base == 'index' or $current_page_base == 'product_info') { //add _ and cPath to filename only if individual cat image exists, else add _ and top cat id to bg filename only if top cat image exists
    $smart_image = file_exists(DIR_WS_TEMPLATE_IMAGES . 'smartbg_' . $_GET[cPath] . '.gif')?'_' . $_GET[cPath]file_exists(DIR_WS_TEMPLATE_IMAGES . 'smartbg_' . (int)$_GET[cPath] . '.gif')?'_' . (int)$_GET[cPath]:'');
    } elseif ($current_page_base == 'page') { //add _page and ez-page id to filename only if ez-page id image exists, else add _page to filename only if general ez-page image exists
    $smart_image = file_exists(DIR_WS_TEMPLATE_IMAGES . 'smartbg_page' . $_GET[id] . '.gif')?'_page' . $_GET[id]file_exists(DIR_WS_TEMPLATE_IMAGES . 'smartbg_page.gif')?'_page':'');
    } else { //add _ and page base to filename only if page image exists
    $smart_image = file_exists(DIR_WS_TEMPLATE_IMAGES . 'smartbg_' . $current_page_base . '.gif')?'_' . $current_page_base:''; //default/home page class will be just .smartBG, and filename smartbg.gif
    }?>
    <!--/Smart Backgrounds-->[/SCR]


    in section:

    [SCR]<!-- bof BANNERS GROUPSET 3 -->
    <?php
    if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    }
    }
    ?>

    <!-- eof BANNERS GROUPSET 3 -->

    [/SCR]

    of my ..\common\tpl_main_page.php.

    I edit stylesheet_smartbg.css and place the images in the right place.

    This mod is working properly and changing images according to the categories of site I want.

    When I upload files on-line to server, the images are not displayed.

    Internet Explorer displays "X" in place of the image, as if no image. The images are there, but not find them.

    Do you have any idea where is the problem? Thank you!

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

    Default Re: Smart Backgrounds support

    Sorry, I didn't see your post before.
    You are using an older version of the mod, which requires more custom code in tpl_main_page.php than the latest version.
    If it works on your local site but not on the remote server, it may help to see your site to see the behavior myself.
    What image location are you trying to switch? The base code is for backgrounds, which would not show an error if not found. Are you trying to switch a foreground image?

  8. #328
    Join Date
    Oct 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Hi,

    I have several Banners (Banner Display Groups - Header Position 1) which I want to display depending on the page or category. In the banners I use html code to get my slideshows (javascript) loading in the banner header. Can I use smart background for that? And if so, how can i do that?

    thanks!

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

    Default Re: Smart Backgrounds support

    The basic switching function would work something like this:
    PHP Code:
    $smart_image smart_backgrounds('.gif','slideshow'); // looks for smartslideshow_page5.gif if on ez-page 5
    if ($smart_image == '_page5') {  // then we are on ez-page 5
      // set the banner group for letteratuur

    Unfortunately I don't know much about how the banner code works; in the right location you could condense this into something like
    PHP Code:
    ...banner group name content 'smartslideshow' smart_backgrounds('.gif','slideshow'
    and have the banner groups named like smartslideshow (for default), smartslideshow_page5, smartslideshow_page23, etc. They would be automatically selected based on the presence of an image named to match the page.

    I will take a look and see if I can give a simple method of actually using this, but I can make no promises now.

  10. #330
    Join Date
    Nov 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    We are trying to do the exact same thing as joska. I just want to throw my weight behind this - if you get the time to figure out how to do this we would greatly appreciate it. I did all I could, but to no avail. Thanks.

 

 
Page 33 of 40 FirstFirst ... 233132333435 ... 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