Forums / Addon Sideboxes / Logo Sidebox Help

Logo Sidebox Help

Views: 56,268

Results 81 to 100 of 201
24 Mar 2009, 5:47 PM
#81
clydejones avatar

clydejones

Deceased

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

Logo Sidebox Help

kvwlls:

Hi Clyde,
I've recently installed the logo sidebox - with a couple of teething problems that i managed to rectify, but now i've hit a brick wall!

I intend to have the 'FSB' and 'Link-Up' logos - but the 'no picture' i can't seem to see why this is appearing!

Any help appreciated!

https://www.sunplastics.co.uk/shop

Kev

Can you post the contents of the following files:

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

includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

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

25 Mar 2009, 8:53 AM
#82
kvwlls avatar

kvwlls

New Zenner

Join Date:
Jan 2009
Posts:
32
Plugin Contributions:
0

Re: Logo Sidebox Help

With pleasure:

<?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_SIDEBOX1_IMAGE_WIDTH', '125'); define('LOGO_SIDEBOX1_IMAGE_HEIGHT', '152'); define('LOGO_SIDEBOX1_IMAGE', 'FSB.gif'); define('LOGO_SIDEBOX1_IMAGE_TEXT', 'Member of FSB'); define('LOGO_SIDEBOX1_LINK', 'http://www.fsb.org.uk/'); define('LOGO_SIDEBOX2_IMAGE_WIDTH', '125'); define('LOGO_SIDEBOX2_IMAGE_HEIGHT', '125'); define('LOGO_SIDEBOX2_IMAGE', 'link-up.jpg'); define('LOGO_SIDEBOX2_IMAGE_TEXT', 'Approved Link-Up Supplier'); //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://www.link-up.co.uk/'); ?>

AND

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

Thanks!

25 Mar 2009, 8:23 PM
#83
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

kvwlls:

With pleasure:

<?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_SIDEBOX1_IMAGE_WIDTH', '125'); define('LOGO_SIDEBOX1_IMAGE_HEIGHT', '152'); define('LOGO_SIDEBOX1_IMAGE', 'FSB.gif'); define('LOGO_SIDEBOX1_IMAGE_TEXT', 'Member of FSB'); define('LOGO_SIDEBOX1_LINK', 'http://www.fsb.org.uk/'); define('LOGO_SIDEBOX2_IMAGE_WIDTH', '125'); define('LOGO_SIDEBOX2_IMAGE_HEIGHT', '125'); define('LOGO_SIDEBOX2_IMAGE', 'link-up.jpg'); define('LOGO_SIDEBOX2_IMAGE_TEXT', 'Approved Link-Up Supplier'); //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://www.link-up.co.uk/'); ?>

AND

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

Thanks!

Looking at your site, I can only assume that you're missing a closing and or opening div on a sidebox that comes before the logo sidebox.

Having looked at the code for the logo sidebox the problem seems to be with the tpl_logo_sidebox.php.

These are the changes you've made

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

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

// $content .= $logoimage;

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

Try making the following changes and see if it helps.

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

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

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

26 Mar 2009, 9:20 AM
#84
kvwlls avatar

kvwlls

New Zenner

Join Date:
Jan 2009
Posts:
32
Plugin Contributions:
0

Re: Logo Sidebox Help

Clyde,
Thanks very much - now looking perfect!
Much appreciated!
Rgds
Kev

26 Mar 2009, 2:49 PM
#85
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

kvwlls:

Clyde,
Thanks very much - now looking perfect!
Much appreciated!
Rgds
Kev

glad to help

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

4 Jun 2009, 12:28 PM
#86
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: Logo Sidebox Help

I feel like an idiot that I cannot get this to work...trying to get my image to link (got the image in fine..), I have looked through the forums and cannot see anything I am doing wrong!!!

Here is my logo_sidebox_defines code:

define('BOX_HEADING_LOGO_SIDEBOX', 'test');
define('LOGO_SIDEBOX_IMAGE_WIDTH', '150');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '200');
define('LOGO_SIDEBOX_IMAGE', 'bumper_sticker_ad.jpg');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'test');

//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.andrealevinedesigns.com/pet-bumper-sticker/');

?>

...and here is the tpl_logo_sidebox code:

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

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

$content .= $logoimage;

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

..the site is http://www.andrealevinedesigns.com and the you can see the banner in the lower left....what am I missing to get the link to work to go to the product?!?!?

Thank you in advance!!!!!!!

Jill

Jill || I Love Zen Cart Templates || 2 Dogs Design
I Love To Help But Let's Keep It Public Please To Help Others!

4 Jun 2009, 1:13 PM
#87
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Logo Sidebox Help

jill8026:

I feel like an idiot that I cannot get this to work...trying to get my image to link (got the image in fine..), I have looked through the forums and cannot see anything I am doing wrong!!!

Here is my logo_sidebox_defines code:

define('BOX_HEADING_LOGO_SIDEBOX', 'test');
define('LOGO_SIDEBOX_IMAGE_WIDTH', '150');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '200');
define('LOGO_SIDEBOX_IMAGE', 'bumper_sticker_ad.jpg');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'test');

//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.andrealevinedesigns.com/pet-bumper-sticker/');

?>

...and here is the tpl_logo_sidebox code:

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

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

$content .= $logoimage;

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

..the site is http://www.andrealevinedesigns.com and the you can see the banner in the lower left....what am I missing to get the link to work to go to the product?!?!?

Thank you in advance!!!!!!!

Jill

how do I add a hyper-link:
Open includes/languages/english/extra_definitions/logo_sidebox_defines.php
Change the highlighted portion to suit you needs.

define('LOGO_SIDEBOX_LINK', 'http://your_link.com/');

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

uncomment this line of code: remove the highlighted portion
//$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 out this line of code: add the highlighted portion
//$logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT);

Save everything and upload to your server.


Clyde
Check and make sure all your files are uploading to your server and they are in your custom folders.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

4 Jun 2009, 1:22 PM
#88
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: Logo Sidebox Help

Yep, everything is absolutely in my custom folders....that was one of the first things I checked.....just rechecked again though for good measure!

Jill || I Love Zen Cart Templates || 2 Dogs Design
I Love To Help But Let's Keep It Public Please To Help Others!

4 Jun 2009, 6:05 PM
#89
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

jill8026:

...and here is the tpl_logo_sidebox code:

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

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

$content .= $logoimage;

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

Thank you in advance!!!!!!!

Jill

I just checked the site and for some reason the second option above is replacing the link option.

It doesn't appear that it has been commented out properly.

You could (as a temporary measure only) delete that second option completely to see if that fixes the problem.

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

4 Jun 2009, 6:15 PM
#90
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: Logo Sidebox Help

OK, well that worked! So the image is there and it is linking fine to the product....do I have to have that portion of the code in the tpl file? Very weird......thank you though....I would never have thought to delete that!

Jill || I Love Zen Cart Templates || 2 Dogs Design
I Love To Help But Let's Keep It Public Please To Help Others!

4 Jun 2009, 6:18 PM
#91
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Logo Sidebox Help

OK i see the man is here to help so I will just be quit. :blink:

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

4 Jun 2009, 6:23 PM
#92
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: Logo Sidebox Help

OK i see the man is here to help so I will just be quit.

:smile:

No need to be quiet silly--all help is always appreciated!!!!! I just knew this was something "weird"....I have been building sites with zen for about 3 years so I am pretty well versed...and I couldnt figure this simple thing out.....glad it turned out to be something I wouldnt have found anyway!!!!

Jill || I Love Zen Cart Templates || 2 Dogs Design
I Love To Help But Let's Keep It Public Please To Help Others!

4 Jun 2009, 6:45 PM
#93
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

jill8026:

OK, well that worked! So the image is there and it is linking fine to the product....do I have to have that portion of the code in the tpl file? Very weird......thank you though....I would never have thought to delete that!

Not sure what you mean by the highlighted portion.

The link information is located in logo_sidebox_defines.php which is the proper file for the link definition.

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

11 Jun 2009, 1:05 PM
#94
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

Re: Logo Sidebox Help

I just checked the site and for some reason the second option above is replacing the link option.

It doesn't appear that it has been commented out properly.

You could (as a temporary measure only) delete that second option completely to see if that fixes the problem.

Thanks Clyde...my bolded part above was in reference to your quote above where you mentioned deleting the second options as a temporary measure only?

Sounds like removing that part might be an issue if you are saying it can only be removed temporarily?!? If it is OK without it then I will leave it alone since it seems to be working fine!!!

Jill || I Love Zen Cart Templates || 2 Dogs Design
I Love To Help But Let's Keep It Public Please To Help Others!

11 Jun 2009, 3:03 PM
#95
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

jill8026:

Thanks Clyde...my bolded part above was in reference to your quote above where you mentioned deleting the second options as a temporary measure only?

Sounds like removing that part might be an issue if you are saying it can only be removed temporarily?!? If it is OK without it then I will leave it alone since it seems to be working fine!!!

If it working, then I wouldn't worry about it.

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

24 Jun 2009, 2:39 AM
#96
dizzylizzy avatar

dizzylizzy

New Zenner

Join Date:
Jun 2009
Posts:
1
Plugin Contributions:
0

Re: Logo Sidebox Help

Hi

I have read through all the posts in this thread and havent found what im looking for. I hope this is the right place to ask. I would like to know how to remove the stying from my logo sidebox. My logo shows.... but it has the same styling as my other side boxes How can i remove the styling from this box only. I dont want any padding or header around it.

Thank you in advance

24 Jun 2009, 2:44 AM
#97
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

DizzyLizzy:

Hi

I have read through all the posts in this thread and havent found what im looking for. I hope this is the right place to ask. I would like to know how to remove the stying from my logo sidebox. My logo shows.... but it has the same styling as my other side boxes How can i remove the styling from this box only. I dont want any padding or header around it.

Thank you in advance

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.

24 Jun 2009, 2:48 AM
#98
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

DizzyLizzy:

Hi

I have read through all the posts in this thread and havent found what im looking for. I hope this is the right place to ask. I would like to know how to remove the stying from my logo sidebox. My logo shows.... but it has the same styling as my other side boxes How can i remove the styling from this box only. I dont want any padding or header around it.

Thank you in advance

You can add these statements to your stylesheet.css

#logosidebox{
margin: 0em;
margin-top: 1.5em;
border:none;
}

#logosideboxContent {
text-align:center;
}

#logosideboxHeading{
margin: 0;
padding: 0;
}

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

14 Jul 2009, 2:13 AM
#99
hcd888 avatar

hcd888

Zen Follower

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

Re: Logo Sidebox Help

Hi i just installed this mod, and my image displays great. I want it to link to another website, but iam unsure how to uncomment & comment the following file. Do i delete something??? Tried deleting the "//" but it than messes up my home page. Am i doing something wrong? Please advise thanks :bigups: Thanks

<?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 //$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); $content = ''; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">'; $content .= $logoimage; $content .= '</div>'; ?>
14 Jul 2009, 2:56 AM
#100
clydejones avatar

clydejones

Deceased

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

Re: Logo Sidebox Help

hcd888:

Hi i just installed this mod, and my image displays great. I want it to link to another website, but iam unsure how to uncomment & comment the following file. Do i delete something??? Tried deleting the "//" but it than messes up my home page. Am i doing something wrong? Please advise thanks :bigups: Thanks

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

Remove/delete these//$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.
add these //$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.