Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / More banners in custom sidebox

More banners in custom sidebox

Locked

Views: 1,505

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
12 Mar 2007, 4:24 AM
#1
nick04263 avatar

nick04263

New Zenner

Join Date:
Feb 2007
Posts:
45
Plugin Contributions:
0

More banners in custom sidebox

I have been working on custom sideboxes and I have gotten around to creating custom banner sideboxes for specific pages. I also made custom banner groups for different pages but I have one more thing to figure out.

Does anyone know what code I would use in the includes/templates/MYTEMPLATE/sideboxes/tpl_custombanner_sidebox.php
file to show ALL the banners in a specific group.

This is an example of how I have associated the groupset to the group name(in Admin):

<?php define('SHOW_BANNERS_GROUP_SET15', 'healthyliving'); ?>

Does anyone know what I need to do to show all banner with group name healthyliving?

Thanks,
Nick

Just a note- I used the tpl_banner_box2.php file code for all of my tpl_custombanner_sidebox.php files. This way I could control them from the Admin section.

Not totally zenned yet but working on it.

Vytle.com powered by Zen 1.3.6

13 Mar 2007, 2:26 AM
#2
nick04263 avatar

nick04263

New Zenner

Join Date:
Feb 2007
Posts:
45
Plugin Contributions:
0

Re: More banners in custom sidebox

Anyone have any ideas?

Not totally zenned yet but working on it.

Vytle.com powered by Zen 1.3.6

13 Mar 2007, 2:52 AM
#3
ajeh avatar

ajeh

Oba-san

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

Re: More banners in custom sidebox

The sidebox for banner_box_all.php is designed specifically to show multiple banners at the same time and allows you to place the sort order in the Banner Manager ...

You might wish to look how this sidebox is built ...

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!

13 Mar 2007, 3:34 AM
#4
nick04263 avatar

nick04263

New Zenner

Join Date:
Feb 2007
Posts:
45
Plugin Contributions:
0

Re: More banners in custom sidebox

Thanks Ajeh,
The solution was simply to use the Banners_All template for my custombanner_sidebox. All that was required was changing the:
SHOW_BANNERS_GROUP_SET_ALL

to:
SHOW_BANNERS_GROUP_SET11 (the 11 corresponds to my specific banner group set).

I hope this helps anyone else curious out the topic.

Not totally zenned yet but working on it.

Vytle.com powered by Zen 1.3.6

13 Mar 2007, 3:54 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: More banners in custom sidebox

Might of just been able to set the Banners All group in the Configuration ... Layout Settings ... to use that group rather than touch the code ... :smile:

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!

13 Mar 2007, 3:58 AM
#6
nick04263 avatar

nick04263

New Zenner

Join Date:
Feb 2007
Posts:
45
Plugin Contributions:
0

Re: More banners in custom sidebox

Ajeh:

Might of just been able to set the Banners All group in the Configuration ... Layout Settings ... to use that group rather than touch the code ... :smile:

But would that have allowed me to show all banner for 6 different groups in their respective pages? Just curious.

Not totally zenned yet but working on it.

Vytle.com powered by Zen 1.3.6

13 Mar 2007, 4:01 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: More banners in custom sidebox

Nope ... sure wouldn't ... :down:

You'd need to add case statements to the sidebox code for:
banner_box_all.php

To know when to run which group if you wanted them run separately vs together ...

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!