Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2007
    Posts
    375
    Plugin Contributions
    3

    Default Add more Banner Ads that 8?

    Hi all,

    I am try to add more Banner Ads than 8 total for particular using..

    But it look like max can add 8 only, how do I add more that 8, for example 12, 16 etc?

    Need change what php coding or files?

    Thank you.

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

    Default Re: Add more Banner Ads that 8?

    You would need to clone the banner code to do this ...

    Are you trying to add more Banner sideboxes or what?
    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
    Jan 2007
    Posts
    375
    Plugin Contributions
    3

    Default Re: Add more Banner Ads that 8?

    I want to add more idv. banner.
    It is not in the sidebox ....

    It is like make new group ad banner.

    But Zen Cart only give me 8 build-in group on back end setting. if more than this, how to copy the coding?

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

    Default Re: Add more Banner Ads that 8?

    This is the code for the Footer Position 3 that is located in the:
    /includes/templates/template_default/common/tpl_main_page.php

    Code:
    <!--bof- banner #6 display -->
    <?php
      if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
        if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
        }
      }
    ?>
    <!--eof- banner #6 display -->
    The Banner Group(s) that are set for the:
    SHOW_BANNERS_GROUP_SET6

    are used to run this banner set ...

    You could copy this code to another position and make a new setting for:
    SHOW_BANNERS_GROUP_SET9

    using this, you can add it to the Configuration ... Layout Settings ...
    Code:
    INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('Banner Display Groups - Footer Position 4', 'SHOW_BANNERS_GROUP_SET9', 'Wide-Banners', 'The Banner Display Groups can be from 1 Banner Group or Multiple Banner Groups<br /><br />For Multiple Banner Groups enter the Banner Group Name separated by a colon <strong>:</strong><br /><br />Example: Wide-Banners:SideBox-Banners<br /><br />Default Group is Wide-Banners<br /><br />What Banner Group(s) do you want to use in the Footer Position 4?<br />Leave blank for none', '19', '68', '', '', now());
    Then copy the code where you want it and change all of the 6's to 9's ...
    Code:
    <!--bof- banner #9 display -->
    <?php
      if (SHOW_BANNERS_GROUP_SET9 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET9)) {
        if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
        }
      }
    ?>
    <!--eof- banner #9 display -->
    Then in the Configuration ... Layout Setting ... you will find the new setting for:
    SHOW_BANNERS_GROUP_SET9

    where you can set the Banner Group(s) ...
    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!

 

 

Similar Threads

  1. Banner ads
    By homebrewkits in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 2 Mar 2011, 05:32 PM
  2. How To Add more banner display groups?
    By cuda in forum Basic Configuration
    Replies: 12
    Last Post: 11 Nov 2010, 04:54 PM
  3. Banner ads
    By outeredge2 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Apr 2010, 05:48 PM
  4. Ads? anyway to add html ads to pages?
    By loulou99 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Aug 2007, 10:28 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