cloned sidebox breaks my site
I've been trying to creat extra sideboxes named logo, logoa, logob first 2 install no problem but as soon as I install logob it breaks my site. Renamed all the folders and files as per read me even tried giving them different names ie paylal_sidebox, delivery_sidebox but they still give the same result, is there something I'm missing
<?php
//
//Contribution: Logo Sidebox
//Author: Clyde Jones (http://clydedesigns.com/)
//Version: 2.1
//Updated: 5/17/2011
//Updated by gjh42 20110517
//License: under the GPL - See attached License for info.
//Based on: Blank Sidebox by Judi Cox - www.MommaMuse.com
//Support: Only given via the forums, please. (http://www.zen-cart.com/forum/showthread.php?t=57694)
// --------------------------------------------------
// zen-cart Open Source E-commerce
// Copyright (c) 2003-2006 The zen-cart developers
// http://www.zen-cart.com/index.php
// Portions Copyright (c) 2003 osCommerce
// --------------------------------------------------
// $Id: logo_sidebox_defines.php,v 2.1 2011-05-17
define('BOX_HEADING_LOGO_SIDEBOX', '');
//Logo number 1
define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
define('LOGO_SIDEBOX_IMAGE', 'logo_test.jpg');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'My Logo');
define('LOGO_IMAGE', zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT));
//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//examples
//define('LOGO_SIDEBOX_LINK', '"http://your_link.com/" rel="external" target="_blank"');//only if you want to open in a new window
//define('LOGO_SIDEBOX_LINK', '"http://your_link.com/"');//if you want to open in the same window, such as going to your own site's page
//define('LOGO_SIDEBOX_LINK', '"index.php?main_page=whatever&id=etc"');//for a link to a page on your site
define('LOGO_SIDEBOX_LINK', '');
?>
<?php
//
//Contribution: Logo Sidebox
//Author: Clyde Jones (http://mysticmountainnaturals.com/testsite)
//Version: 2.1
//Updated: 2/13/2010
//Updated by gjh42 20110517
//License: under the GPL - See attached License for info.
//Based on: Blank Sidebox by Judi Cox - www.MommaMuse.com
//Support: Only given via the forums, please. (http://www.zen-cart.com/forum/showthread.php?t=57694)
// --------------------------------------------------
// zen-cart Open Source E-commerce
// Copyright (c) 2003-2006 The zen-cart developers
// http://www.zen-cart.com/index.php
// Portions Copyright (c) 2003 osCommerce
// --------------------------------------------------
// $Id: logo_sidebox.php, v 2.1 2011-05-17
// test if box should display
$show_logo_sidebox = true;
if ($show_logo_sidebox == true) {
require($template->get_template_dir('tpl_logo_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox.php');
$title = BOX_HEADING_LOGO_SIDEBOX;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
<?php
//
//Contribution: Logo Sidebox
//Author: Clyde Jones (http://mysticmountainnaturals.com/testsite)
//Version: 2.1
//Updated: 2/13/2010
//Updated by gjh42 20110517
//License: under the GPL - See attached License for info.
//Based on: Blank Sidebox by Judi Cox - www.MommaMuse.com
//Support: Only given via the forums, please. (http://www.zen-cart.com/forum/showthread.php?t=57694)
// --------------------------------------------------
// zen-cart Open Source E-commerce
// Copyright (c) 2003-2006 The zen-cart developers
// http://www.zen-cart.com/index.php
// Portions Copyright (c) 2003 osCommerce
// --------------------------------------------------
// $Id: tpl_logo_sidebox.php,v 2.1 2011-05-17
// --------------------------------------------------
//
$logo_image = (LOGO_SIDEBOX_LINK == '')? LOGO_IMAGE: '<a href=' . LOGO_SIDEBOX_LINK . '>' . LOGO_IMAGE . '</a>';
$content = '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . $logo_image . '</div>';
?>
all I do is add a to the next and b to the next
thankfully it's not on my live site just a test site I have.
http://www.rvsolarsystems.co.uk/zen1...php?main_page=
Last edited by discoverytdi; 1 Sep 2011 at 12:28 AM.
What ever your doing remember to KISS ( Keep It Simple Stupid )
Bookmarks