Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    691
    Plugin Contributions
    0

    Default Disable Footer Banner all pages except Home

    I have been trying to disable the banner for footer on all pages except the home or index page. I do not want it to show anywhere else. But have not been able to do it.

    The layout is Banner Display Groups - Footer Position 1 for BannerFour. It is above my actual footer. This is what I input for includes/templates/my_temp/common/tpl_main_page.php.

    HTML Code:
    <?php
     if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
      if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    if (SHOW_BANNERS_GROUP_SET4 == '') {
        $show_banner_box = false;
      }
    if ($this_is_home_page) {
        $show_featured = true;
      } else {
        $show_featured = false;
      }
        }
      }
    ?></td>
    And still showing up. Any suggestions? Kim
    [FONT="Tahoma"]kburner[/FONT]
    Burner Christian Bookstore
    www.burnerbooks.com

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,812
    Plugin Contributions
    6

    Default Re: Disable Footer Banner all pages except Home

    You are using the wrong variables in your IF statement ... you need to use:
    $show_banner_box

    and you are using:
    $show_featured
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    691
    Plugin Contributions
    0

    Default Re: Disable Footer Banner all pages except Home

    Quote Originally Posted by Ajeh View Post
    You are using the wrong variables in your IF statement ... you need to use:
    $show_banner_box

    and you are using:
    $show_featured
    I changed it to $show_banner_box and still showing on product pages...

    What else am I missing??

    Thanks,Kim
    [FONT="Tahoma"]kburner[/FONT]
    Burner Christian Bookstore
    www.burnerbooks.com

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,812
    Plugin Contributions
    6

    Default Re: Disable Footer Banner all pages except Home

    Sorry, I was not paying attention to what you were really trying to do ...

    In that file, you only need to change the 1 line:
    Code:
     if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
    to read:
    Code:
     if ($this_is_home_page && SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
    adding what is in red will only let the code run if on the Home page ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #5
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    691
    Plugin Contributions
    0

    Default Re: Disable Footer Banner all pages except Home

    Perfect!

    Thank you! Kim
    [FONT="Tahoma"]kburner[/FONT]
    Burner Christian Bookstore
    www.burnerbooks.com

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,812
    Plugin Contributions
    6

    Default Re: Disable Footer Banner all pages except Home

    You are most welcome ... thanks for the update that this worked for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Disable sidebox banner on home page
    By obelis in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Jul 2010, 02:16 PM
  2. disable footer for secure ssl pages
    By pjgscrap in forum General Questions
    Replies: 16
    Last Post: 12 Mar 2009, 04:06 AM
  3. EZ Page Footer links & Footer look different only on Home
    By DivaVocals in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Aug 2008, 11:28 PM
  4. How to disable up-middle " Home::What::What" banner
    By thomas_lixiang in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Nov 2006, 09:30 PM

Bookmarks

Posting Permissions

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