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);
}
}
?>