New Zenner
- Join Date:
- Jan 2007
- Posts:
- 8
- Plugin Contributions:
- 0
Logo Sidebox Help
Any help much appreciated.
New Zenner
Black Belt
I'm trying to make the logo sidebox hyperlink target blank but I am having problems achieving this.
<a HREF="your_link.???" TARGET="_blank">Your Link Name</a>Deceased
Totally Zenned
clydejones:
in includes/languages/english/extra_definitions/logo_sidebox_defines.php
find:
define('LOGO_SIDEBOX_LINK', 'http://your_link.com/');
You can then add you link.
save the file and upload to your server.
<?php
//
// Blank Sidebox Mod
// includes/modules/sideboxes/blank_sidebox_defines.php
//
// --------------------------------------------------
// http://www.MommaMuse.com mod Zen-Cart - by Judi Cox
// --------------------------------------------------
// 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
// --------------------------------------------------
// This source file is subject to version 2.0 of the GPL license,
// that is bundled with this package in the file LICENSE, and is
// available through the world-wide-web at the following url:
// http://www.zen-cart.com/license/2_0.txt.
// If you did not receive a copy of the zen-cart license and are unable
// to obtain it through the world-wide-web, please send a note to
// [email protected] so we can mail you a copy immediately.
// --------------------------------------------------
//
// $Id: blank_sidebox_defines.php,v 1.0 6/24/2006
// Original modification by Carter Harris [email protected] based on the tpl_featured.php file
// Additionally modified by Judi Cox http://www.mommamuse.com
define('BOX_HEADING_LOGO_SIDEBOX', 'Visiting Florence? Place your order in advance of your arrival.');
define('LOGO_SIDEBOX_IMAGE_WIDTH', '68');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '50');
define('LOGO_SIDEBOX_IMAGE', 'Italy.gif');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'Benvenuto!');
//this is optional if you want to use the logo as a link
//replace your_link.com with the link you choose
define('LOGO_SIDEBOX_LINK', 'http://www.beadedlily.com/shop/index.php?main_page=page_3');
?>Deceased
<?php
//
// Blank Sidebox Mod
// includes/templates/templates_default/sideboxes/tpl_blank_sidebox.php
//
// --------------------------------------------------
// http://www.MommaMuse.com mod Zen-Cart - by Judi Cox
// --------------------------------------------------
// 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
// --------------------------------------------------
// This source file is subject to version 2.0 of the GPL license,
// that is bundled with this package in the file LICENSE, and is
// available through the world-wide-web at the following url:
// http://www.zen-cart.com/license/2_0.txt.
// If you did not receive a copy of the zen-cart license and are unable
// to obtain it through the world-wide-web, please send a note to
// [email protected] so we can mail you a copy immediately.
// --------------------------------------------------
//
// $Id: tpl_blank_sidebox.php,v 1.0 6/24/2006
// Original modification by Carter Harris [email protected] based on the tpl_featured.php file
// Additionally modified by Judi Cox http://www.mommamuse.com
//
// Link Option - uncomment this if you intend to use the logo as a link
//$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT) . '</a>';
//comment this out if you use the above link option.
$logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT);
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '">';
$content .= $logoimage;
$content .= '</div>';
?>Totally Zenned
Deceased
MeltDown:
Yep, that did it! Thanks Clyde :thumbsup:
By-the-by; even though we are on different continents, I can always count on you to reply almost instantly no matter what time I post. Do you sleep?? :P
Zen Follower
Deceased
New Zenner
Deceased
ilonka:
Hi Clyde,
How can i alter the script to have the link shown in a new page?
Thanks
Ilonka
Zen Follower
Deceased
gizmo_girl:
Hi Clyde,
I'm obviously quite new at this & I need help getting my image & hyperlink to appear. I thought I had followed all of the directions, but when I try to insert my image or hyperlink, I get something like a "parse error on line 27 and/or 28". Any ideas how to get my image to appear? I've been looking all over and I can't find the answer...
Zen Follower
Deceased
gizmo_girl:
Geez, sorry, it's: www.kings-kreations.com/zen
Thanks!
Mindy
Zen Follower
Deceased
gizmo_girl:
<?php
//
// Blank Sidebox Mod
// includes/modules/sideboxes/blank_sidebox_defines.php
//
// --------------------------------------------------
// http://www.MommaMuse.com mod Zen-Cart - by Judi Cox
// --------------------------------------------------
// 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
// --------------------------------------------------
// This source file is subject to version 2.0 of the GPL license,
// that is bundled with this package in the file LICENSE, and is
// available through the world-wide-web at the following url:
// http://www.zen-cart.com/license/2_0.txt.
// If you did not receive a copy of the zen-cart license and are unable
// to obtain it through the world-wide-web, please send a note to
// [email protected] so we can mail you a copy immediately.
// --------------------------------------------------
//
// $Id: blank_sidebox_defines.php,v 1.0 6/24/2006
// Original modification by Carter Harris [email protected] based on the tpl_featured.php file
// Additionally modified by Judi Cox http://www.mommamuse.com
define('BOX_HEADING_LOGO_SIDEBOX', 'Payment Methods');
define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
define('LOGO_SIDEBOX_IMAGE', '');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'Pay quickly and easily with PayPal, using your credit
card or bank funds. No PayPal account required!');
//this is optional if you want to use the logo as a link
//replace your_link.com with the link you choose
define('LOGO_SIDEBOX_LINK', 'http://your_link.com/');
?>
I tried to place an image here:
Zen Follower
Deceased
gizmo_girl:
I tried to place an image here: define('LOGO_SIDEBOX_IMAGE', 'image.gif'); but nothing actually shows up in Firefox. In IE, it shows as a blank box, so I took it out for now.
Also, on this line, define('LOGO_SIDEBOX_LINK', 'http://your_link.com/'); I tried to place a linked image and in IE, the text runs out of the box and into the images/wording in the center of the page.
Sorry, I accidentially cut my last post short! :-)
// Link Option - uncomment this if you intend to use the logo as a link
//$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT) . '</a>';
//comment this out if you use the above link option.
$logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT);Zen Follower
// Link Option - uncomment this if you intend to use the logo as a link
//$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT) . '</a>';
//comment this out if you use the above link option.
$logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT);[/QUOTE]Destination thread ID and reason are required when shown.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.