Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2007
    Posts
    45
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2007
    Posts
    45
    Plugin Contributions
    0

    Default 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

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

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

  4. #4
    Join Date
    Feb 2007
    Posts
    45
    Plugin Contributions
    0

    Default 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

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

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

  6. #6
    Join Date
    Feb 2007
    Posts
    45
    Plugin Contributions
    0

    Default Re: More banners in custom sidebox

    Quote Originally Posted by Ajeh View Post
    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 ...
    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

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

    Default Re: More banners in custom sidebox

    Nope ... sure wouldn't ...

    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!

 

 

Similar Threads

  1. v139h How to add more SideBox-Banners?
    By zihaizi in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 27 Feb 2013, 03:23 PM
  2. Banners - More than one?
    By CheekyCockney in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Nov 2011, 03:41 PM
  3. More Banners
    By Ruzzell in forum Templates, Stylesheets, Page Layout
    Replies: 25
    Last Post: 4 Nov 2010, 09:11 PM
  4. Custom Banners
    By DieuxSoldat_04 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Mar 2008, 04:29 AM
  5. Custom Banners
    By Funkmanusa in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Oct 2007, 09:01 AM

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