Dear All,
While am trying to Add a Custom Box to my new zen,But failed,
I think that I missed somewhere, Can anyone help me
My value in Configuration table is
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES
(1814, 'Banner Display Groups - Side Chat Box ', 'SHOW_BANNERS_GROUP_CHAT_SET7 ', 'SideChat-Box', 'The Banner Display Groups can be from 1 Banner Group or Multiple Banner Groups<br /><br />For Multiple Banner Groups enter the Banner Group Name separated by a colon <strong>:</strong><br /><br />Example: Wide-Banners:SideBox-Banners<br />Default Group is SideBox-Banners<br /><br />What Banner Group(s) do you want to use in the Side Box - banner_box?<br />Leave blank for none', 19, 70, '2012-07-25 18:12:22', '0001-01-01 00:00:00', NULL, NULL);
My Banner Code is Given below
includes\modules\sideboxes\banner_chat_box.php
Code:<?php /** * banner_box 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.php 3133 2006-03-07 23:39:02Z ajeh $ */ // test if box should display $show_banner_box3 = true; if (SHOW_BANNERS_GROUP_CHAT_SET7 == '') { $show_banner_box3 = false; } if ($show_banner_box3 == true) { $banner_box[] = TEXT_BANNER_CHAT_BOX; $banner_box_group= SHOW_BANNERS_GROUP_CHAT_SET7; require($template->get_template_dir('tpl_banner_chat_box.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_chat_box.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 ($banner->RecordCount() > 0) { $title = BOX_HEADING_BANNER_CHAT_BOX; $title_link = false; require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default); } } ?>
includes\templates\template_default\sideboxes\tpl_banner_chat_box.php
Pleaseeeeeeee help meCode:<?php /** * Side Box Template * * @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: tpl_banner_box.php 2982 2006-02-07 07:56:41Z birdbrain $ */ $content = ''; // if no active banner in the specified banner group then the box will not show if ($banner = zen_banner_exists('dynamic', $banner_box_group)) { $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">'; $content .= zen_display_banner('static', $banner); $content .= '</div>'; } ?>


,
Reply With Quote
