Forums / Addon Sideboxes / Logo Sidebox Help

Logo Sidebox Help

Views: 56,268

Results 1 to 20 of 201
6 Feb 2007, 11:59 AM
#1
hooperman avatar

hooperman

New Zenner

Join Date:
Jan 2007
Posts:
8
Plugin Contributions:
0

Logo Sidebox Help

I'm trying to make the logo sidebox hyperlink target blank but I am having problems achieving this.

Any help much appreciated.

6 Feb 2007, 1:46 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Logo Sidebox Help

I'm trying to make the logo sidebox hyperlink target blank but I am having problems achieving this.
If I understand what you mean by the common use of "Blank" in this instance meaning to open this in a new window the followwing is the std form:

<a HREF="your_link.???" TARGET="_blank">Your Link Name</a>

Zen-Venom Get Bitten

7 Feb 2007, 2:36 AM
#3
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

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.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

9 Mar 2007, 2:49 PM
#4
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Logo Sidebox Help

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.

OK, Clyde - What am I missing here? :blink: My logo_sidebox is operating but I can't seem to make the link active. Here's my logo_sidebox_defines.php:

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

?>

The site in question is the link below. Thanks!!

Tim

9 Mar 2007, 3:27 PM
#5
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

look in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

I've bolded the parts that apply to your situation.

<?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
//
[B]// 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); 
[/B]
  $content = '';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '">';

  $content .=  $logoimage;

  $content .= '</div>';
?>

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

9 Mar 2007, 3:54 PM
#6
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Logo Sidebox Help

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

9 Mar 2007, 4:56 PM
#7
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

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

As necessary or when the urge hits me. li....rig...n...:sleep:

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

8 Apr 2007, 5:57 PM
#8
jonisolis avatar

jonisolis

Zen Follower

Join Date:
Jan 2006
Location:
Kentwood, Louisiana, United States
Posts:
117
Plugin Contributions:
0

Re: Logo Sidebox Help

What is a logo sidebox? What logos? Where can I see a sample of this? Where do I find the download?

9 Apr 2007, 3:02 AM
#9
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

Its a sidebox in which you can place a logo (any logo you choose)

its available in the downloads section here:

www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_52&products_id=405

You can see a sample here: Top Left sidebox

mysticmountainnaturals.com/testsite/index.php

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

10 Jan 2008, 5:45 PM
#10
ilonka avatar

ilonka

New Zenner

Join Date:
Nov 2005
Posts:
51
Plugin Contributions:
0

Re: Logo Sidebox Help

Hi Clyde,

How can i alter the script to have the link shown in a new page?

Thanks

Ilonka

11 Jan 2008, 1:49 AM
#11
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

ilonka:

Hi Clyde,

How can i alter the script to have the link shown in a new page?

Thanks

Ilonka

Can you explain exactly what you are trying to accomplish?

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

25 Jan 2008, 4:40 PM
#12
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Logo Sidebox Help

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...

25 Jan 2008, 6:30 PM
#13
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

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...

URL for your site

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

25 Jan 2008, 8:29 PM
#15
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

gizmo_girl:

Geez, sorry, it's: https://www.kings-kreations.com/zen

Thanks!
Mindy

Can you post exactly what edits you have made.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

25 Jan 2008, 8:59 PM
#16
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Logo Sidebox Help

<?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:

25 Jan 2008, 9:10 PM
#17
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

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:
You didn't define an image to use. make sure to save the image in:
includes/templates/YOUR_TEMPLATE/images/

define('BOX_HEADING_LOGO_SIDEBOX', 'Payment Methods');
define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
define('LOGO_SIDEBOX_IMAGE', 'YOUR_IMAGE_NAME.gif');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'Pay quickly and easily with PayPal, using your credit
card or bank funds. No PayPal account required!');

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

25 Jan 2008, 9:17 PM
#18
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Logo Sidebox Help

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! :-)

25 Jan 2008, 11:07 PM
#19
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Logo Sidebox Help

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! :-)

As I said, make sure your image is located in:

includes/templates/YOUR_TEMPLATE/images/YOUR_IMAGE.gif

Open includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php.

find the following lines of code and edit as necessary.

// 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);

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

26 Jan 2008, 2:28 AM
#20
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Logo Sidebox Help

My image is added here, but no change when I uploaded. There's still no image and when viewing in IE, the text extends far beyond the box.
includes/templates/YOUR_TEMPLATE/images/pplogo.gif

Open includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php.

find the following lines of code and edit as necessary.

I don't understand what I'm supposed to do here:

```
// 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);