Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Jun 2006
    Location
    Minnesota
    Posts
    39
    Plugin Contributions
    0

    Default Header Positions Problem

    It seems that the checks for wether the banners are on or off isn't working when you set the Multiple Banner Groups in the Header Positions under Admin > Layout Settings > Banner Display Groups - Header Position 1.

    My current entry is CPC:Wide-Banners for Header Position 1, which is allowing the banners that are off to display.

    I have all Wide Banners off, except for 2, and I am getting banners that are supposed to be inactive coming up.

    But they don't appear in the footer position 3.

    I have not done extensive testing.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Header Positions Problem

    I set the setting to Wide-Banners ...

    I go to Banner Manager and set all status to OFF or RED icon ...

    Banners that were displaying vanish ...

    Make sure that you only have the 1 Banner Group in the:
    Banner Display Groups - Header Position 1

    Check the code in:
    /includes/templates/template_default/common/tpl_main_page.php

    Make sure it is current and up to date and that you do not have an override that is missing the settings for:
    PHP Code:
    <?php
      
    if (SHOW_BANNERS_GROUP_SET1 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET1)) {
        if (
    $banner->RecordCount() > 0) {
    ?>
    <div id="bannerOne" class="banners"><?php echo zen_display_banner('static'$banner); ?></div>
    <?php
        
    }
      }
    ?>
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jun 2006
    Location
    Minnesota
    Posts
    39
    Plugin Contributions
    0

    Default Re: Header Positions Problem

    Quote Originally Posted by Ajeh
    I set the setting to Wide-Banners ...

    I go to Banner Manager and set all status to OFF or RED icon ...

    Banners that were displaying vanish ...

    Make sure that you only have the 1 Banner Group in the:
    Banner Display Groups - Header Position 1
    [/PHP]
    The point was that I did want more than one group to show, and it was showing the second group fine, except with the ones that were off also showing (unwanted behaviour).

    Quote Originally Posted by Ajeh

    Check the code in:
    /includes/templates/template_default/common/tpl_main_page.php

    Make sure it is current and up to date and that you do not have an override that is missing the settings for:
    PHP Code:
    <?php
      
    if (SHOW_BANNERS_GROUP_SET1 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET1)) {
        if (
    $banner->RecordCount() > 0) {
    ?>
    <div id="bannerOne" class="banners"><?php echo zen_display_banner('static'$banner); ?></div>
    <?php
        
    }
      }
    ?>
    Verified the code is there, this file is not one that an override exists for.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Header Positions Problem

    What are the names of your Banner Groups ... and how do you have that filled in for the:
    Banner Display Groups - Header Position 1
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jun 2006
    Location
    Minnesota
    Posts
    39
    Plugin Contributions
    0

    Default Re: Header Positions Problem

    Quote Originally Posted by Ajeh
    What are the names of your Banner Groups ... and how do you have that filled in for the:
    Banner Display Groups - Header Position 1
    I had it filled in CPC:Wide-Banners


    I have it testing on Footers for now... here is the setting

    Banner Display Groups - Footer Position 1 CPC:Wide-Banners

    All the zencart/slashbox/etc is off. (Red Dot)

    There is only one banner in CPC and only 2 turned on in Wide-Banners

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Header Positions Problem

    Does this mean it is or isn't working?

    I have no idea what banner is from what banner group
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jun 2006
    Location
    Minnesota
    Posts
    39
    Plugin Contributions
    0

    Default Re: Header Positions Problem

    Quote Originally Posted by Ajeh
    Does this mean it is or isn't working?

    I have no idea what banner is from what banner group
    Good question... As I wrote in the previous post, I only have 2 banners activated.

    Well, to give an idea... I have pasted from the Banner Manager page:

    Code:
    Banners  	Groups  	Displays / Clicks  	Status  	New Window  	Show SSL  	Sort
    Order 	Action 
    View Banner CPC Company Home Page! 	SideBox-Banners 	1585 / 9 	Status - Enabled 	Open New Window - Enabled 	Show on Secure Pages - Enabled 	0 	Statistics  
    View Banner Custom PC and Consulting, Inc. Home 	CPC 	314 / 4 	Status - Enabled 	Open New Window - Disabled 	Show on Secure Pages - Enabled 	0 	Statistics Info 
    View Banner if you have to think ... you haven't been Zenned! 	Wide-Banners 	6 / 0 	Status - Disabled 	Open New Window - Enabled 	Show on Secure Pages - Enabled 	0 	Statistics Info 
    View Banner Johns Twin Ports Recycling 	Wide-Banners 	595 / 3 	Status - Enabled 	Open New Window - Enabled 	Show on Secure Pages - Disabled 	0 	Statistics Info 
    View Banner Sashbox.net - the ultimate e-commerce hosting solution 	BannersAll 	35 / 0 	Status - Disabled 	Open New Window - Enabled 	Show on Secure Pages - Enabled 	20 	Statistics Info 
    View Banner Sashbox.net - the ultimate e-commerce hosting solution 	Wide-Banners 	13 / 0 	Status - Disabled 	Open New Window - Enabled 	Show on Secure Pages - Enabled 	0 	Statistics Info 
    View Banner Start Accepting Credit Cards For Your Business Today! 	Wide-Banners 	16 / 0 	Status - Disabled 	Open New Window - Enabled 	Show on Secure Pages - Enabled 	0 	Statistics Info 
    View Banner The Jersey Frog 	Wide-Banners 	677 / 3 	Status - Enabled 	Open New Window - Enabled 	Show on Secure Pages - Disabled 	0 	Statistics Info 
    View Banner Zen Cart 	Wide-Banners 	16 / 0 	Status - Disabled 	Open New Window - Enabled 	Show on Secure Pages - Enabled 	0 	Statistics Info 
    View Banner Zen Cart the art of e-commerce 	SideBox-Banners 	44 / 0 	Status - Disabled 	Open New Window - Enabled 	Show on Secure Pages - Enabled 	10 	Statistics Info 
    View Banner Zen Cart the art of e-commerce 	SideBox-Banners 	31 / 0 	Status - Disabled 	Open New Window - Enabled 	Show on Secure Pages - Enabled 	0 	Statistics Info 
    View Banner Zen Cart the art of e-commerce 	SideBox-Banners 	39 / 0 	Status - Disabled 	Open New Window - Enabled 	Show on Secure Pages - Enabled 	0 	Statistics Info

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Header Positions Problem

    Things look odd ... perhaps I could peek in your Admin ... if so, how about a PM for URL and access ...
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Header Positions Problem

    Try this ...

    Edit the file:
    /includes/functions/banner.php

    And edit line 229:
    PHP Code:
          $new_banner_search ' and ' $new_banner_search
    Change to read:
    PHP Code:
          $new_banner_search ' and (' $new_banner_search ')'
    Does this resolve the banners issue for you?
    Last edited by Ajeh; 10 Sep 2006 at 03:42 PM. Reason: typo on the function name
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Jun 2006
    Location
    Minnesota
    Posts
    39
    Plugin Contributions
    0

    Default Re: Header Positions Problem

    Quote Originally Posted by Ajeh
    Try this ...

    Edit the file:
    /includes/functions/banners.php

    And edit line 229:
    PHP Code:
          $new_banner_search ' and ' $new_banner_search
    Change to read:
    PHP Code:
          $new_banner_search ' and (' $new_banner_search ')'
    Does this resolve the banners issue for you?
    This worked fine... for reference, it should be /includes/functions/banner.php (without it being plural)

    Thank you very much.

    I kind of thought it was shared code somewhere, but didn't know where to look.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. change atrribute positions
    By Andy-C27 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 10 Apr 2015, 09:03 AM
  2. Banner positions
    By Shane78 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Mar 2010, 08:49 PM
  3. Additional image positions
    By acanthuscarver in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Dec 2009, 08:11 PM

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