Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    California
    Posts
    345
    Plugin Contributions
    0

    Default Side Box Banner Groups

    I made a new 3rd Banner Box. I want only my article links to rotate through it (that's 2 links for now ). The box shows up just fine, has the correct header and everything.

    Problem: All banners are rotating through it. I need to change something else. What about this code here. If I change SHOW_BANNERS_GROUP_SET8 to SHOW_BANNERS_GROUP_ARTICLES, will it only show that new banner group?


    ----------------------------------------------------------------

    test if box should display
    $show_banner_box3 = true;
    if (SHOW_BANNERS_GROUP_SET8 == '') {
    $show_banner_box3 = false;
    }

    if ($show_banner_box3 == true) {
    $banner_box[] = TEXT_BANNER_BOX3;
    $banner_box_group= SHOW_BANNERS_GROUP_SET8;

    require($template->get_template_dir('tpl_banner_box3.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_box3.php');

    ---------------------------------------------------------------------

    thank you!!
    Cheryl

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

    Default Re: Side Box Banner Groups

    If you have added to the configuration table a configuration_key for:
    SHOW_BANNERS_GROUP_ARTICLES

    You could add your banner groups to that and it should call them properly based on who you have defined for that group of Banner Groups ...
    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
    Location
    California
    Posts
    345
    Plugin Contributions
    0

    Default Re: Side Box Banner Groups

    Hey Linda ~

    I have no clue where the configuration table is. But I'm willing to learn. I'd love to add the proper configuration_key. heck I was thrilled the box showed up the first time. Ah, it's the little things....

    Thank you. (BTW, ZC has another fan; I convinced her to try it, then designed her site for her and now she's in love...... she's selling products like hot cakes, too. She loves ZC!)
    Cheryl

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

    Default Re: Side Box Banner Groups

    The configuration table is part of your database ...

    If you look in the SQL file mysql_zencart.sql that build the database for the old configuration_key for:
    SHOW_BANNERS_GROUP_SET8

    You will see how that Banner Box Group is added to the database table configuration to appear in the Configuration ... Layout Settings ...

    You need to customize a copy of that INSERT line for your new configuration_key for:
    SHOW_BANNERS_GROUP_ARTICLES

    So that you can easily maintain this via the Admin ... just like the other Banner Groups ...

    NOTE: backup your database before making messies ... er ... trying new things ...
    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 side box heading
    By gromituk2k in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 3 Mar 2010, 11:57 AM
  2. Side Box banner nomenclature
    By JQPublic in forum General Questions
    Replies: 5
    Last Post: 11 Sep 2009, 08:04 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