Page 21 of 40 FirstFirst ... 11192021222331 ... LastLast
Results 201 to 210 of 393
  1. #201
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Smart Backgrounds support

    I'm not seeing the debug output anywhere, even in view source. Could you post that area of tpl_main_page.php (just 10 lines or so)?

    Don't get too mad, but I just checked the address bar for your about us page, and it reads

    .../index.php?main_page=about_us

    which means that the file and class names should have about_us.
    Last edited by gjh42; 16 Dec 2008 at 01:08 AM.

  2. #202
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Using firebug I see the echo:
    body: aboutus file search: includes/templates/Series_12_Horses/images/smartbg_about_us.jpg

    Of course I do not have smartbg_about_us.jpg I have smartbg_aboutus.jpg in the image file.

    I tried to find the call for smartbg_about_us.jpg but as of yest can not find it.

    Sawhorse

  3. #203
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    OK, I will change everything. It will be a moment on this.

    Oh, How could I get "too mad" I am just very happy that you are helping me. ;-)

    Sawhorse

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

    Default Re: Smart Backgrounds support

    The code is indeed looking for smartbg_about_us.jpg.
    When it was not getting results before, there was apparently some other problem beside the _ ; changing that did not fix the problem, but it prevented the problem from going away when the actual error (whatever it was) was fixed.

  5. #205
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    OK we have smartbg_about_us.jpg - that is one of them!!

  6. #206
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Could you look at my post 196, I think there is a problem there?

    Sawhorse

  7. #207
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    OH, I just saw this
    "I'm not seeing the debug output anywhere, even in view source. Could you post that area of tpl_main_page.php (just 10 lines or so)?"
    PHP Code:
    <?php //Smart Backgrounds - .jpg version
    $smart_image '';
    if (
    $current_page_base == 'index' or $current_page_base == 'product_info') { //add _ and top cat id to classname only if cat bg image exists
      
    $smart_image = (file_exists(DIR_WS_TEMPLATE_IMAGES 'smartbg_' . (int)$_GET[cPath] . '.jpg'))?'_' . (int)$_GET[cPath]:'';
    } elseif (
    $current_page_base == 'page') { //add _page and ez-page id to classname only if ez-page id bg image exists, else add _page to classname only if general ez-page bg image exists
      
    $smart_image = (file_exists(DIR_WS_TEMPLATE_IMAGES 'smartbg_page' $_GET[id] . '.jpg'))?'_page' $_GET[id]:(file_exists(DIR_WS_TEMPLATE_IMAGES 'smartbg_page.jpg')?'_page':'');
    } else { 
    //add _ and page base to classname only if page bg image exists
      
    $smart_image = (file_exists(DIR_WS_TEMPLATE_IMAGES 'smartbg_' $current_page_base '.jpg'))?'_' $current_page_base:''//default/home page classname will be just .smartBG, and filename smartbg.jpg

      
    echo 'body: ' $body_id ' file search: ' DIR_WS_TEMPLATE_IMAGES 'smartbg_' $current_page_base '.jpg';

    }
    // /Smart Backgrounds?>
    <body id="<?php echo $body_id 'Body'?>" class="smartBG<?php echo $smart_image;?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'?>>
    <!-- End Smart Backgrounds -->

  8. #208
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    Quote Originally Posted by Sawhorse View Post
    Could you look at my post 196, I think there is a problem there?

    Sawhorse

    That should be post 198

  9. #209
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    OK we have topmenubg_login_about_us.gif and topmenubg_about_us.gif Working.

    It seems that I did not correct in colors.css the statement ..smartBG_aboutus #navMain.login to .smartBG_about_us #navMain.login and .smartBG_aboutus #navMain.noLogin to .smartBG_about_us #navMain.noLogin

    Thank you I think it works.

    I was going to ask you one more question. How does the "system" know to include the image file searchbox_about_us.gif when we go to the about_us page? But when I remove
    searchbox_about_us.gif the image did not change. I believe that that cut is not necessary for additional header images. But, if it were necessary would smart Background handle it?

    Again Thanks.

    Sawhorse

  10. #210
    Join Date
    Dec 2008
    Location
    Peterborough, Ontario, Canada
    Posts
    4
    Plugin Contributions
    0

    Default Re: Smart Backgrounds support

    I appologize for writing here, but I ahve looked all over the site and have no idea where to create a new post. How do I do that?

 

 
Page 21 of 40 FirstFirst ... 11192021222331 ... 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