Forums / Addon Sideboxes / Logo Sidebox Help

Logo Sidebox Help

Views: 56,268

Results 101 to 120 of 201
14 Jul 2009, 10:09 AM
#101
hcd888 avatar

hcd888

Zen Follower

Join Date:
May 2008
Posts:
348
Plugin Contributions:
0

Logo Sidebox Help

Thanks works great :clap:

D'oh add and remove huh, cant believe it was so stright forward.

Again thanks Clyde

31 Oct 2009, 6:56 AM
#102
mr_xerox avatar

mr_xerox

New Zenner

Join Date:
May 2009
Posts:
12
Plugin Contributions:
0

Re: Logo Sidebox Help

hi,

I really like this side box...and i have put some effort into making it appropriate for my site....

I ran into an issue with it..hoping someone can help me out...

you can look at this post for my original headache with this side box... ( http://www.zen-cart.com/forum/showthread.php?t=140542 )

after many hours of frustration i finally realized it was this side box that was affecting my site...
but to make a VERY long story short..there is a zen cart conflict in the side box that prevent any categories with products inside from loading when clicked on from the category navigation pane.

After installing a debugger (thanks to the advice of DrByte) I was able to isolate what internal error message zen cart was generating in reference to my issue...
i hope some one can tell me wat edits i need to make in this logo side box file to fix this issue...

here is the debugger error message...

[30-Oct-2009 20:37:01] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/craverep/public_html/includes/languages/english/extra_definitions/theme198/logo_sidebox_defines.php:49) in /home/craverep/public_html/includes/functions/functions_general.php on line 44

here is my code in logo_sidebox_defines.php :

<?php // //Contribution: Logo Sidebox //Author: Clyde Jones (<http://mysticmountainnaturals.com/testsite>) //Version: 1.1 //Updated: 8/21/2008 //License: under the GPL - See attached License for info. //Based on: Blank Sidebox by Judi Cox - <https://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 1.1 8/21/2008 define('BOX_HEADING_LOGO_SIDEBOX', ''); define('LOGO_SIDEBOX_IMAGE_WIDTH', '212'); define('LOGO_SIDEBOX_IMAGE_HEIGHT', '80'); define('LOGO_SIDEBOX_IMAGE', 'test_logo.jpg'); define('LOGO_SIDEBOX_IMAGE_TEXT', 'Shop Our Jordan Collection'); //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://360urbanwear.com/index.php?main_page=index&cPath=24_72'); define('LOGO_SIDEBOX2_IMAGE_WIDTH', '212'); define('LOGO_SIDEBOX2_IMAGE_HEIGHT', '80'); define('LOGO_SIDEBOX2_IMAGE', 'test_logo2.jpg'); define('LOGO_SIDEBOX2_IMAGE_TEXT', 'Shop Our Nike Collection'); //this is optional if you want to use the logo as a link //replace your_link.com with the link you choose define('LOGO_SIDEBOX2_LINK', 'http://360urbanwear.com/index.php?main_page=index&cPath=24_73'); define('LOGO_SIDEBOX3_IMAGE_WIDTH', '212'); define('LOGO_SIDEBOX3_IMAGE_HEIGHT', '80'); define('LOGO_SIDEBOX3_IMAGE', 'test_logo3.jpg'); define('LOGO_SIDEBOX3_IMAGE_TEXT', 'Shop Our Nike SB Dunk High / Low Collection'); //this is optional if you want to use the logo as a link //replace your_link.com with the link you choose define('LOGO_SIDEBOX3_LINK', 'http://360urbanwear.com/index.php?main_page=index&cPath=24_73_181'); ?>

Here is the Zen Cart code from " in /home/craverep/public_html/includes/functions/functions_general.php on line 44"

line 38-Line 47 of code:

// clean up URL before executing it
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
// header locates should not have the & in the address it breaks things
while (strstr($url, '&')) $url = str_replace('&', '&', $url);

header('Location: ' . $url);

zen_exit();

}

there is something about the code in logo_sidebox_defines.php that line 44 "header('Location: ' . $url);" does not like...

i would appreciate any help. thanks.

31 Oct 2009, 7:51 AM
#103
mr_xerox avatar

mr_xerox

New Zenner

Join Date:
May 2009
Posts:
12
Plugin Contributions:
0

Re: Logo Sidebox Help

i got it guys...thanks
The error was being cased by two extra lines at the end of one of my side box files....

man talk about sensitive stuff here....

2 Nov 2009, 5:06 AM
#104
vivek_advsol avatar

vivek_advsol

New Zenner

Join Date:
Nov 2009
Posts:
34
Plugin Contributions:
0

Re: Logo Sidebox Help

Hi Friends,

          I m new to Zencart. I wanna add new sidebox menu. how can i do it. 

Thanks
Vivek

2 Nov 2009, 6:29 AM
#105
mr_xerox avatar

mr_xerox

New Zenner

Join Date:
May 2009
Posts:
12
Plugin Contributions:
0

Re: Logo Sidebox Help

vivek_advsol:

Hi Friends,

          I m new to Zencart. I wanna add new sidebox menu. how can i do it. 

Thanks
Vivek

welcome....

a word of advise....if you want help please be as specific as possible unless your just going to end up coming back to find responses like this asking you to be more specific.

What are you trying to accomplish...? have you already found a side box and are having problems installing it? MOST of the popular and useful side boxes have very detailed installation instructions.

here is where you can find a good amount of zen cart FREE side boxes...

http://www.zen-cart.com/index.php?main_page=index&cPath=40_52

to get there...all you have to do is go to http://www.zen-cart.com/ and then click on "Free Software Add Ons" at the top.

hope that helps....

2 Nov 2009, 6:30 AM
#106
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

vivek_advsol:

Hi Friends,

          I m new to Zencart. I wanna add new sidebox menu. how can i do it. 

Thanks
Vivek

What type of "sidebox menu"?

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

11 Dec 2009, 10:34 PM
#107
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Logo Sidebox Help

I have got my image in the box but no link what am I doing wrong.

11 Dec 2009, 11:44 PM
#108
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

bkeaton:

I have got my image in the box but no link what am I doing wrong.

have you configured includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

in order to handle the link?

// 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, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT) . '</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, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT); 

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

12 Dec 2009, 2:25 AM
#109
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Logo Sidebox Help

clydejones:

have you configured includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

in order to handle the link?

// 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, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT) . '</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, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT);


This what I have in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php
<?php // //Contribution: Logo Sidebox //Author: Clyde Jones (http://mysticmountainnaturals.com/testsite) //Version: 1.1 //Updated: 8/21/2008 //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 1.1 8/21/2008 // -------------------------------------------------- // // 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') . '" class="sideBoxContent">'; $content .= $logoimage; $content .= '</div>'; ?>
12 Dec 2009, 2:54 AM
#110
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

bkeaton:

This what I have in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

<?php // //Contribution: Logo Sidebox //Author: Clyde Jones (http://mysticmountainnaturals.com/testsite) //Version: 1.1 //Updated: 8/21/2008 //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 1.1 8/21/2008 // -------------------------------------------------- // // 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') . '" class="sideBoxContent">'; $content .= $logoimage; $content .= '</div>'; ?>

 it should look like this:

//
// 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') . '" class="sideBoxContent">';

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

12 Dec 2009, 2:59 AM
#111
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Logo Sidebox Help

I have got it working thank you. Also is it possible to have it open as an seperate window?

14 Jan 2010, 1:48 AM
#112
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Logo Sidebox Help

I want to add 2 to 3 or more images with url how can I do that and how to meake the link to open up as a seperate window?

14 Jan 2010, 3:20 AM
#113
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

bkeaton:

I have got it working thank you. Also is it possible to have it open as an seperate window?

bkeaton:

I want to add 2 to 3 or more images with url how can I do that and how to meake the link to open up as a seperate window?

Both of these topics are discussed somewhere in this thread (I just don't remember exactly where)

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

14 Jan 2010, 9:19 PM
#114
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Logo Sidebox Help

I am trying to put two different images and the link but its stills showing 1 here is the code for that.

<?php // //Contribution: Logo Sidebox //Author: Clyde Jones (<http://mysticmountainnaturals.com/testsite>) //Version: 1.1 //Updated: 8/21/2008 //License: under the GPL - See attached License for info. //Based on: Blank Sidebox by Judi Cox - <https://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 1.1 8/21/2008 define('BOX_HEADING_LOGO_SIDEBOX', 'Follow us on these sites'); define('LOGO_SIDEBOX_IMAGE_WIDTH', '125'); define('LOGO_SIDEBOX_IMAGE_HEIGHT', '35'); define('LOGO_SIDEBOX_IMAGE', 'twitter_logo_header.png'); define('LOGO_SIDEBOX_IMAGE_TEXT', 'Follow us on Twitter'); //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://twitter.com/MorrisGiftShop'); define('LOGO_SIDEBOX_IMAGE_WIDTH', '125'); define('LOGO_SIDEBOX_IMAGE_HEIGHT', '35'); define('LOGO_SIDEBOX_IMAGE', 'facebooklogo.jpg'); define('LOGO_SIDEBOX_IMAGE_TEXT', 'Follow us on Facebook'); //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://facebook.com/MorrisGiftShop'); ?>
14 Jan 2010, 10:02 PM
#115
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Logo Sidebox Help

clydejones:

While the contrib was designed for only one logo, its easy enough to edit the following files to include multiple logos.

open includes/languages/english/extra_definitions/logo_sidebox_defines.php

below the default define statements just add additional define statements for your other logos.

define('LOGO_SIDEBOX1_IMAGE_WIDTH', '125');
define('LOGO_SIDEBOX1_IMAGE_HEIGHT', '125');
define('LOGO_SIDEBOX1_IMAGE', 'test_logo1.jpg');
define('LOGO_SIDEBOX1_IMAGE_TEXT', 'My Logo1');

//this is optional if you want to use the logo as a link
//replace your_link.com with the link you choose
define('LOGO_SIDEBOX1_LINK', 'http://your_link.com/');

define('LOGO_SIDEBOX2_IMAGE_WIDTH', '125');
define('LOGO_SIDEBOX2_IMAGE_HEIGHT', '125');
define('LOGO_SIDEBOX2_IMAGE', 'test_logo2.jpg');
define('LOGO_SIDEBOX2_IMAGE_TEXT', 'My Logo2');

//this is optional if you want to use the logo as a link
//replace your_link.com with the link you choose
define('LOGO_SIDEBOX2_LINK', 'http://your_link.com/');

now open includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

add the following statements

// Link Option - uncomment this if you intend to use the logo as a link
//$logoimage1 = '<a href="' . LOGO_SIDEBOX1_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT) . '</a>';

//comment this out if you use the above link option.
//$logoimage1 = zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT);

// Link Option - uncomment this if you intend to use the logo as a link
//$logoimage2 = '<a href="' . LOGO_SIDEBOX2_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT) . '</a>';

//comment this out if you use the above link option.
//$logoimage2 = zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT);

// $content .= '<br />' . $logoimage1;
// $content .= '<br />' . $logoimage2;

Hope this helps.

Clyde I have done this but I have a problem on my site http://www.morrisgiftshop.biz the left column the box says "Follow us on these sites" it is showing doubles of the information box instead the images and links how can I fix this?

14 Jan 2010, 11:14 PM
#116
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

bkeaton:

I am trying to put two different images and the link but its stills showing 1 here is the code for that.

<?php // //Contribution: Logo Sidebox //Author: Clyde Jones (<http://mysticmountainnaturals.com/testsite>) //Version: 1.1 //Updated: 8/21/2008 //License: under the GPL - See attached License for info. //Based on: Blank Sidebox by Judi Cox - <https://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 1.1 8/21/2008 define('BOX_HEADING_LOGO_SIDEBOX', 'Follow us on these sites'); define('LOGO_SIDEBOX_IMAGE_WIDTH', '125'); define('LOGO_SIDEBOX_IMAGE_HEIGHT', '35'); define('LOGO_SIDEBOX_IMAGE', 'twitter_logo_header.png'); define('LOGO_SIDEBOX_IMAGE_TEXT', 'Follow us on Twitter'); //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://twitter.com/MorrisGiftShop'); define('LOGO_SIDEBOX_IMAGE_WIDTH', '125'); define('LOGO_SIDEBOX_IMAGE_HEIGHT', '35'); define('LOGO_SIDEBOX_IMAGE', 'facebooklogo.jpg'); define('LOGO_SIDEBOX_IMAGE_TEXT', 'Follow us on Facebook'); //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://facebook.com/MorrisGiftShop'); ?>

You need to rename your second image defines to:

LOGO_SIDEBOX1_IMAGE

without doing this you will only display one image instead of two.

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

14 Jan 2010, 11:19 PM
#117
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

bkeaton:

Clyde I have done this but I have a problem on my site http://www.morrisgiftshop.biz the left column the box says "Follow us on these sites" it is showing doubles of the information box instead the images and links how can I fix this?

without seeing the actual tpl_logo_sidebox.php you are using I'm not in a position to offer any useful advice.

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

15 Jan 2010, 6:50 PM
#118
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Logo Sidebox Help

Clyde here is my tpl_logo_sidebox.php

<?php // //Contribution: Logo Sidebox //Author: Clyde Jones (<http://mysticmountainnaturals.com/testsite>) //Version: 1.1 //Updated: 8/21/2008 //License: under the GPL - See attached License for info. //Based on: Blank Sidebox by Judi Cox - <https://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 1.1 8/21/2008 // -------------------------------------------------- // // Link Option - uncomment this if you intend to use the logo as a link //$logoimage1 = '<a href="' . LOGO_SIDEBOX1_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT) . '</a>'; //comment this out if you use the above link option. //$logoimage1 = zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT); // Link Option - uncomment this if you intend to use the logo as a link //$logoimage2 = '<a href="' . LOGO_SIDEBOX2_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT) . '</a>'; //comment this out if you use the above link option. //$logoimage2 = zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT); // $content .= '<br />' . $logoimage1; // $content .= '<br />' . $logoimage2; ?>

what am I doing wrong?

15 Jan 2010, 8:55 PM
#119
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

bkeaton:

Clyde here is my tpl_logo_sidebox.php

<?php // //Contribution: Logo Sidebox //Author: Clyde Jones (<http://mysticmountainnaturals.com/testsite>) //Version: 1.1 //Updated: 8/21/2008 //License: under the GPL - See attached License for info. //Based on: Blank Sidebox by Judi Cox - <https://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 1.1 8/21/2008 // -------------------------------------------------- // // Link Option - uncomment this if you intend to use the logo as a link //$logoimage1 = '<a href="' . LOGO_SIDEBOX1_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT) . '</a>'; //comment this out if you use the above link option. //$logoimage1 = zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT); // Link Option - uncomment this if you intend to use the logo as a link //$logoimage2 = '<a href="' . LOGO_SIDEBOX2_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT) . '</a>'; //comment this out if you use the above link option. //$logoimage2 = zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT); // $content .= '<br />' . $logoimage1; // $content .= '<br />' . $logoimage2; ?>

what am I doing wrong?

Looks like you forgot to include the content divs and you commented out the area that would display the images:

Try this:

<?php
//
//Contribution: Logo Sidebox
//Author: Clyde Jones (http://mysticmountainnaturals.com/testsite)
//Version: 1.1
//Updated: 8/21/2008
//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 1.1 8/21/2008
// --------------------------------------------------
//
// Link Option - uncomment this if you intend to use the logo as a link
$logoimage1 = '<a href="' . LOGO_SIDEBOX1_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT) . '</a>';

//comment this out if you use the above link option.
//$logoimage1 = zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT);

// Link Option - uncomment this if you intend to use the logo as a link
$logoimage2 = '<a href="' . LOGO_SIDEBOX2_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT) . '</a>';

//comment this out if you use the above link option.
//$logoimage2 = zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT);

  $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';


 $content .= '<br />' . $logoimage1;
 $content .= '<br />' . $logoimage2;

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

15 Jan 2010, 9:01 PM
#120
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Logo Sidebox Help

Thanks I got it working. Now I have several questions is there a way to center the images and spread the image spacing because they are so close together?