Hi
When opening a new window for a link of a logo image, how do we resize the new window and remove the toolbar?
Ok, So I have followed the intstructions for cloning.and when I make all the changes the graphic does not appear. Here are my files
logo_sidebox_defines.php
<?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', '206');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '111');
define('LOGO_SIDEBOX_IMAGE', 'JustinLogo.png');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'Justin Boots');
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', 'index.php?main_page=index&cPath=1');
?>
logo_sidebox_defines.php
// --------------------------------------------------
// 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_LOGO2_SIDEBOX', '');
//Logo number 1
define('LOGO2_SIDEBOX_IMAGE_WIDTH', '206');
define('LOGO2_SIDEBOX_IMAGE_HEIGHT', '111');
define('LOGO2_SIDEBOX_IMAGE', 'JustinLogo.png');
define('LOGO2_SIDEBOX_IMAGE_TEXT', 'Justin Boots');
define('LOGO2_IMAGE', zen_image($template->get_template_dir(LOGO2_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO2_SIDEBOX_IMAGE, LOGO2_SIDEBOX_IMAGE_TEXT, LOGO2_SIDEBOX_IMAGE_WIDTH, LOGO2_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('LOGO2_SIDEBOX_LINK', '"http://your_link.com/" rel="external" target="_blank"');//only if you want to open in a new window
//define('LOGO2_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('LOGO2_SIDEBOX_LINK', '"index.php?main_page=whatever&id=etc"');//for a link to a page on your site
define('LOGO2_SIDEBOX_LINK', 'index.php?main_page=index&cPath=1');
?>
logo_sidebox.php
<?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);
}
?>
logo2_sidebox.php
<?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_logo2_sidebox = true;
if ($show_logo2_sidebox == true) {
require($template->get_template_dir('tpl_logo2_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo2_sidebox.php');
$title = BOX_HEADING_LOGO2_SIDEBOX;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
tpl_logo_sidebox.php
<?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>';
?>
tpl_logo2_sidebox.php
<?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 = (LOGO2_SIDEBOX_LINK == '')? LOGO2_IMAGE: '<a href=' . LOGO2_SIDEBOX_LINK . '>' . LOGO2_IMAGE . '</a>';
$content = '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . $logo2_image . '</div>';
?>
Can not figure out why the images are not showing in logo2
David
I'll have to look at it later... too tired to concentrate now:)