Forums / Templates, Stylesheets, Page Layout / Add more Banner Ads that 8?

Add more Banner Ads that 8?

Views: 690

Results 1 to 4 of 4
10 Aug 2011, 7:51 AM
#1
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

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.

10 Aug 2011, 1:40 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!

15 Aug 2011, 3:36 AM
#3
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

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?

15 Aug 2011, 1:21 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

<!--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 ...

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 ...

<!--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!