Thread: More Banners

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: More Banners

    19 is the configuration_group_id which is the Layout Settings where all the other Banner Group definitions are and 73 is the sort_order so it should land under the Banners All setting ...

    This will let you have the Banners All and the new Banners All 2 configurable from the Admin, based on the premise that you cloned Banners All in a manner where the only difference is the "all" becomes a "all2" in everything ...
    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!

  2. #12
    Join Date
    Sep 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: More Banners

    Hi Ajeh.

    I have played with this for a while now, and I am still having difficulties.

    I have gone back to basics and I think that the problem is that in banner manager, when I create a new banner, after following the steps earlier, I only have 3 banner groups available:

    BannersAll, Sidebox-Banners and Wide Banners.

    Should there be another group in there, BannerAll2, that I have created with the modifications.

    If it is any help, I am working on the site, on a temporary domain: www.tempr.com.

    Many thanks

    Russell.

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

    Default Re: More Banners

    Below the dropdown is an input box ...

    Type in your new Banner Group that you want to use for the first Banner that you are making ...

    Once you have save the first Banner to this new Banner Group name, it will show up in the drop down ...
    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. #14
    Join Date
    Oct 2009
    Posts
    38
    Plugin Contributions
    0

    Default Re: More Banners

    Well I tried following these great tips, but I must have screwed something up in the cloning of banner_box_all.php. Now in the Layout Boxes Controller, when I turn on banner_box_all2.php, my store will no longer show the footer and will not show the banner generated in banner manager. When I turn off banner_box_all2.php, the footer shows back up and all is well. I am including the code for banner_box_all2.php below to so you can tell this noob what he screwed up.

    Thanks in advance. As a new zener I have already been able to solve multiple issues and find answers to a multitude of questions through the great support found in these forums.

    Cart version 1.38a
    Code:
    <?php
    /**
     * banner_box_all2 sidebox - used to display "square" banners in sideboxes
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: banner_box_all2.php 3133 2006-03-07 23:39:02Z ajeh $
     */
    
    // 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 Group - Side Box banner_box_all2', 'SHOW_BANNERS_GROUP_SET_ALL2', 'BannersAll2', 'The Banner Display Group may only be from one (1) Banner Group for the Banner All2 sidebox<br /><br />Default Group is BannersAll2<br /><br />What Banner Group do you want to use in the Side Box - banner_box_all2?<br />Leave blank for none', '19', '73', '', '', now());
    // ALTER TABLE `banners` ADD `banners_sort_order` INT( 11 ) DEFAULT '0' NOT NULL;
    
    // test if box should display
      $show_banner_box_all2 = true;
      if (SHOW_BANNERS_GROUP_SET_ALL2 == '') {
        $show_banner_box_all2 = false;
      }
    
      if ($show_banner_box_all2 == true) {
        $banner_box[] = TEXT_BANNER_BOX_ALL2;
        $banner_box_group= SHOW_BANNERS_GROUP_SET_ALL2;
    
        require($template->get_template_dir('tpl_banner_box_all2.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_box_all2.php');
    
    // if no active banner in the specified banner group then the box will not show
    // uses banners in the defined group $banner_box_group
        if ($banners_all2->RecordCount() > 0) {
    
          $title =  BOX_HEADING_BANNER_BOX_ALL2;
          $title_link = false;
          require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
        }
      }
    ?>

  5. #15
    Join Date
    Oct 2009
    Posts
    38
    Plugin Contributions
    0

    Default Re: More Banners

    also in the copy, tpl_banner_box_all2.php, should SHOW_BANNERS_GROUP_SET_ALL be changed to SHOW_BANNERS_GROUP_SET_ALL2?

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

    Default Re: More Banners

    Check if you left space(s) or blank line(s) after the closing php bracket ?> in the new files ...
    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!

  7. #17
    Join Date
    Oct 2009
    Posts
    38
    Plugin Contributions
    0

    Default Re: More Banners

    Ok will do. In the meantime, through more forum searching, I discovered the Admin-Editable Sidebox add on at

    http://www.zen-cart.com/index.php?ma...roducts_id=686

    and it did what I needed. I still want to figure out what I messed up in the post above, so I will let you know what I find....THANKS!

  8. #18
    Join Date
    Oct 2009
    Posts
    38
    Plugin Contributions
    0

    Default Re: More Banners

    Quote Originally Posted by Ajeh View Post
    Check if you left space(s) or blank line(s) after the closing php bracket ?> in the new files ...
    I checked banner_box_all2.php and tpl_banner_box_all2.php. No blank lines or spaces after the closing php bracket ?>

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

    Default Re: More Banners

    And you added the INSERT to the configure table and somewhere you added the language definition for the BOX_HEADING_BANNER_BOX_ALL2

    If you get the Debug Tool from the Free Software Add Ons it will probably reveal the error message for you ...

    NOTE: when using the Debug Tool, be sure, after you trigger the error, to REFRESH the directory in your FTP software to make sure you see the new files generated by the error ...
    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!

  10. #20
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: More Banners

    Quote Originally Posted by Ajeh View Post
    There is a sidebox called:
    /includes/modules/sideboxes/banner_box_all.php
    /includes/templates/templates_default/sideboxes/tpl_banner_box_all.php

    You could clone that so you have two of them ...

    Then you can make your banners and assign them to the BannersAll group for one of the sets and assign them to a new group BannersAll2 ...

    To get the new group to work for you via the Admin you can use:
    Code:
    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 Group - Side Box banner_box_all2', 'SHOW_BANNERS_GROUP_SET_ALL2', 'BannersAll2', 'The Banner Display Group may only be from one (1) Banner Group for the Banner All2 sidebox<br /><br />Default Group is BannersAll2<br /><br />What Banner Group do you want to use in the Side Box - banner_box_all?<br />Leave blank for none', '19', '73', '', '', now());
    and that will show in the Configuration ... Layout Settings ...
    I do not understand in which file and where I should insert the code posted.
    Thanks
    enzo

 

 
Page 2 of 3 FirstFirst 123 LastLast

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. show up more banners in Side Boxes?
    By thobby in forum Basic Configuration
    Replies: 1
    Last Post: 9 Feb 2009, 04:37 PM
  4. Creating more static banners
    By KTNaturals in forum Basic Configuration
    Replies: 4
    Last Post: 4 Nov 2007, 09:31 PM
  5. More banners in custom sidebox
    By nick04263 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Mar 2007, 05: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