Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Multiple Banners in Footer

Multiple Banners in Footer

Locked

Views: 2,922

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
14 Nov 2007, 12:10 AM
#1
bekinky avatar

bekinky

Zen Follower

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

Multiple Banners in Footer

I have seen how to do this somewhere but cannot find it again.

I want to have 4 evenly spaced banners in my footer similar to how it has been done at monkeyshine.com, but I cannot find information on how to do it.

I asked the same question in the cherry_zen thread but no response, so I am asking it in its own thread (apologies if I have duplicated)

I have also PM'd Kuroi but he has not got back yet and I am under the clock on this a little :oops:

If anyone can provide a link to a thread which shows how to do this, or post idiot proof instructions on how to do this, please let me know.

Many thanks

Paul

14 Nov 2007, 12:57 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Multiple Banners in Footer

bekinky:

I have seen how to do this somewhere but cannot find it again.Probably here.

bekinky:

I want to have 4 evenly spaced banners in my footer similar to how it has been done at monkeyshine.com, but I cannot find information on how to do it.For https://www.monkeyshine.co.uk, all I did was re-arrange four of the built-in Zen Cart banners from their normal locations to the tpl_main_page template as follows```php

<!-- bof footer banner cluster --> <?php if (!isset($flag_disable_banner_block) || !$flag_disable_banner_block) { if (SHOW_BANNERS_GROUP_SET4 != '' || SHOW_BANNERS_GROUP_SET5 != '' || SHOW_BANNERS_GROUP_SET6 != '' || SHOW_BANNERS_GROUP_SET9 != '') { echo '<div id="footerBanners">' . "\n"; if (SHOW_BANNERS_GROUP_SET4 != '' && ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) && $banner->RecordCount() > 0) { echo '<div id="bannerFour" class="banners">' . zen_display_banner('static', $banner) . '</div>' . "\n"; } if (SHOW_BANNERS_GROUP_SET5 != '' && ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) && $banner->RecordCount() > 0) { echo '<div id="bannerFive" class="banners">' . zen_display_banner('static', $banner) . '</div>' . "\n"; } if (SHOW_BANNERS_GROUP_SET6 != '' && ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) && $banner->RecordCount() > 0) { echo '<div id="bannerSix" class="banners">' . zen_display_banner('static', $banner) . '</div>' . "\n"; } if (SHOW_BANNERS_GROUP_SET9 != '' && ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET9)) && $banner->RecordCount() > 0) { echo '<div id="bannerNine" class="banners">' . zen_display_banner('static', $banner) . '</div>' . "\n"; } echo '</div>' . "\n"; } } ?> <!-- eof footer banner cluster -->
> /* Banners */
> #footerBanners {clear:both}
> #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix, #bannerNine {float:left; margin:10px 0 10px 10px}The only wrinkle was dealing with the IE6 double margin float bug, for which I created the following stylesheet> /* IE6 Double Margin Float Bug fix */
> #bannerOne, #bannerFour {margin:10px 0 10px 5px}and applied it using my IE stylesheets mod available from the downloads section.

> **bekinky:**
>
> I have also PM'd Kuroi but he has not got back yetDespite my best efforts to be available 24/7, I tend to find that earning a living sometimes gets in the way!:shocking:

Also worth mentioning while we're on the topic that, like many of the active members of the forum, it's rare that I answer questions in PMs. I donate time answering questions for the benefit of all its members current and future. Whereas questions answered in private benefit only the person who asked them.
14 Nov 2007, 10:28 AM
#3
bekinky avatar

bekinky

Zen Follower

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

Re: Multiple Banners in Footer

Thanks kuroi for your response

Also, I meant no offence. Sometimes PM's and messages go unanswered and I wanted to get this footer sorted out. Apologies if you feel upset. :oops:

I will try your solution and let you know the results.

Paul

14 Nov 2007, 11:42 AM
#4
bekinky avatar

bekinky

Zen Follower

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

Re: Multiple Banners in Footer

Hi kuroi

Can you tell me where I can find GROUP_SET9 in the templates or direct me to a thread on how to add it.

Many thanks

Paul

14 Nov 2007, 12:12 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Multiple Banners in Footer

A damned fine point. I have another cluster of three banners configured higher up the home page (even though only two are in use at the moment) and so must have run out of banners and created a new one. I suspect that I needed to do nothing more than clone the one of the banner entries already in the configuration table.

Alternatively you could just move one of banners one, two or three to here instead.

9 Apr 2008, 6:32 PM
#6
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: Multiple Banners in Footer

I have been working at this and have a stupid question, how do I set up the group under layout settings and banner manager?
Thanks!!

25 Apr 2008, 8:25 PM
#7
tapper avatar

tapper

Zen Follower

Join Date:
Nov 2007
Location:
Upstate NY
Posts:
233
Plugin Contributions:
0

Re: Multiple Banners in Footer

helpme:

I have been working at this and have a stupid question, how do I set up the group under layout settings and banner manager?
Thanks!!

This article explains setting up banner groups:
https://www.zen-cart.com/tutorials/index.php?article=80

28 Apr 2008, 12:14 PM
#8
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: Multiple Banners in Footer

Okay, I've got it all set, but in FF it throws my footer ez-pages off. I for the life of me can't figure it out!! Any ideas?
Thanks!

28 Apr 2008, 12:24 PM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Multiple Banners in Footer

helpme:

Okay, I've got it all set, but in FF it throws my footer ez-pages off. I for the life of me can't figure it out!! Any ideas?
Thanks!
Add clear:both; to your #navSuppWrapper

What's happening is that the supplementary navigation items which includes those in your your ezpage menu are floated and since there's space between your banners, the nav items can float up between them. By clearing their container you force them to line up nicely below the banners.