Thanks works great :clap:
D'oh add and remove huh, cant believe it was so stright forward.
Again thanks Clyde
Printable View
Thanks works great :clap:
D'oh add and remove huh, cant believe it was so stright forward.
Again thanks Clyde
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 - 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.
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....
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?ma...ex&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....
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?
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);
This what I have in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php
Code:<?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:
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) . '</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>';
?>
I have got it working thank you. Also is it possible to have it open as an seperate window?
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?
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 - 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');
?>
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?
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 - 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 Code:
<?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>';
?>
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?
first: add the following to your stylesheet.css
#logosidebox{
margin: 0em;
margin-top: 1.5em;
border:none;
}
#logosideboxContent {
text-align:center;
}
#logosideboxHeading{
margin: 0;
padding: 0;
}
second: add additional <br /> to the following in tpl_logo_sidebox.php:
$content .= '<br />' . $logoimage1;
$content .= '<br />br />' . $logoimage2;
[QUOTE=clydejones;829502]first: add the following to your stylesheet.css
#logosidebox{
margin: 0em;
margin-top: 1.5em;
border:none;
}
#logosideboxContent {
text-align:center;
}
#logosideboxHeading{
margin: 0;
padding: 0;
}
QUOTE]
Can it be anywhere in the stylesheet or a specific spot?
Thank you clyde you da man :bigups:
Hey Clyde,
I just change my template to Cherry Zen I got the box up on the right side but it doesn't show my two logos here is what have in
/includes/templates/Cherry Zen 1.7/sideboxes/tpl_logo_sidebox.php
but nothing is there
I got it fixed,,, I need it the images centered in the box take a look
Hi. I'm using the logo sidebox addon in combination with simple seo url mod. Because of some internet explorer problems not finding the correct path of folders with some seo urls, I need to put an absolute path to the logo image or at least add a leading slash in front of the relative location of the image, but I somehow don't manage to do it. In tpl_logo_sidebox.php I have the following lines:
$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);
What I need is simple, but I can't figure out how to do it. I need /includes/templates/theme181/images/Photo11.jpg instead of the current includes/templates/theme181/images/Photo11.jpg
Here is a sample link of an internal page with the problem described: http://www.xn----7sbeocpcbufeok3buh....a/sofia-vienna
Have followed Clyde Jones advice and successfully added a sidebox with a logo...
one question...
what is the additional code/how do I center the logo within the sidebox?
Hey, Clyde help me on this try this post:
http://www.zen-cart.com/forum/showpo...&postcount=121
My featured products (always three) are in a sidebox under that heading.
I can only fit two not three... how can I make the sidebox higher?? I thought they were dynamic?
www.creationsdelphine.com/catalogue
Thanks
Works fine thanks
I can't get this to work in the sidebox.I need to put the logo for paypal in it and this is the verifying link.Quote:
http://<!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr>
<td align="center"></td></tr><tr><td align="center"><a href="#" onclick="javascript:window.open
('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');">
<img src="https://www.paypal.com/en_US/i/bnr/vertical_solution_PPeCheck.gif" border="0" alt="Solution Graphics">
</a></td></tr></table><!-- PayPal Logo -->/');
Thanks for any help you can give.
That is the link information that is listed on PayPal for that image.
I want customers to be able to verify that I am a Verified Seller.
Have you looked at the "paypal verified logo" sidebox available in the downloads section.
I'm suggesting that because you'll need to break down the information you have so it will conform to the way the logo sidebox is set up.
in other words it needs to go into the following defines from logo sidebox:
Code:define('BOX_HEADING_LOGO_SIDEBOX', '');
//Logo number 1
define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
define('LOGO_SIDEBOX_IMAGE', 'logo_test.jpg');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'My Logo');
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
//example
//define('LOGO_SIDEBOX_LINK', 'http://your_link.com/" rel="external" target="_blank"');
define('LOGO_SIDEBOX_LINK', '');
//DO NOT edit below this line
if (LOGO_SIDEBOX_LINK == '') {
define('LOGO_IMAGES', LOGO_IMAGE);
}else {
define('LOGO_IMAGES', '<a href="' . LOGO_SIDEBOX_LINK . '>' . LOGO_IMAGE . '</a>');
}
I installed it and couldn't get it to work properly.
I'll continue to try in the morning.
Thanks, BigAl
Got it!
Replaced it with the PayPal Sidebox and it works great.
Thanks to both of you.
For those trying to add the Paypal link to the Logo sidebox I finally discovered how to do it! :clap:
Go to your defines file (logo_sidebox_defines.php) where you define LOGO_SIDEBOX_LINK
Now you will notice your when you define the link you use a single quote to enclose the link
define('LOGO_SIDEBOX_LINK', 'http://your_link.com/');
The problem is that the paypal link also has single quotes in it, so as soon as the sidebox sees the second single quote, it assumes the define is closed.
So, to include single quotes in your define, PHP code requires you to put a backslash "\" before each single quote. This way it "ignores" that single quote as being the end of the define
So your define will go from
'#" onclick="javascript:window.open
('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');'
to
'#" onclick="javascript:window.open(\'https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside\',\'olcwhatispaypal\',\'toolbar=no,location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350\');'
Note that this is just for the Paypal href LINK ONLY. You will still need a defined image for the sidebox and the image sitting in my template\image directory.
Hope this helps people! :bigups:
When I click check link I get this message:
Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /home/content/w/e/e/weezee/html/xxxxxx_admin/links.php on line 625
I am running Zen Cart v1.3.8a. I reuploading all the links manager files, before that, the line was 623
Clyde,
I am trying to change box header of the sidebox I couldn't remember where it was can you able to help me?
Hey there I got this working and the logo shows up BUT when I used the optional 'use the logo as a link' the logo doesn't show up but the link works, if you can find it by hovering around the box until you can click somehting.
Here is what I have so far.
define('BOX_HEADING_GIFT_CERTIFICATES', '');
//Logo number 1
define('GIFT_CERTIFICATES_IMAGE_WIDTH', '125');
define('GIFT_CERTIFICATES_IMAGE_HEIGHT', '125');
define('GIFT_CERTIFICATES_IMAGE', 'gift_certificates.jpg');
define('GIFT_CERTIFICATES_IMAGE_TEXT', 'Gift Certificates');
define('LOGO_IMAGE', zen_image($template->get_template_dir(GIFT_CERTIFICATES_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . GIFT_CERTIFICATES_IMAGE, GIFT_CERTIFICATES_IMAGE_TEXT, GIFT_CERTIFICATES_IMAGE_WIDTH, GIFT_CERTIFICATES_IMAGE_HEIGHT));
//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//example
//define('GIFT_CERTIFICATES_LINK', '" rel="external" target="_blank"');
define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718');
//DO NOT edit below this line
if (GIFT_CERTIFICATES_LINK == '') {
define('LOGO_IMAGES', LOGO_IMAGE);
}else {
define('LOGO_IMAGES', '<a href="' . GIFT_CERTIFICATES_LINK . '>' . LOGO_IMAGE . '</a>');
}
Awesome. If I didn't have this problem, this thread would've never been bumped so, it worked out! :clap:
One more weird thing. When you click on the logo it is fine. It goes to the page where it is supposed to.
But the header text where it says Gift Certificates [MORE]. When you click it, it takes you to the Reviews page. I have my Reviews box up above.
Weird?
Yeah I put it in afterwards
define('BOX_HEADING_GIFT_CERTIFICATES', 'Gift Certificates');
//Logo number 1
define('GIFT_CERTIFICATES_IMAGE_WIDTH', '125');
define('GIFT_CERTIFICATES_IMAGE_HEIGHT', '125');
define('GIFT_CERTIFICATES_IMAGE', 'gift_certificates.jpg');
define('GIFT_CERTIFICATES_IMAGE_TEXT', 'Gift Certificates');
define('LOGO_IMAGE', zen_image($template->get_template_dir(GIFT_CERTIFICATES_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . GIFT_CERTIFICATES_IMAGE, GIFT_CERTIFICATES_IMAGE_TEXT, GIFT_CERTIFICATES_IMAGE_WIDTH, GIFT_CERTIFICATES_IMAGE_HEIGHT));
//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//example
//define('GIFT_CERTIFICATES_LINK', '" rel="external" target="_blank"');
define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718"');
//DO NOT edit below this line
if (GIFT_CERTIFICATES_LINK == '') {
define('LOGO_IMAGES', LOGO_IMAGE);
}else {
define('LOGO_IMAGES', '<a href="' . GIFT_CERTIFICATES_LINK . '>' . LOGO_IMAGE . '</a>');
}
//
I think I am making this more difficult that it is but I am making three side logo boxes.
I noticed that when I created a second one the same image appeared for both boxes even though I typed in a different image name.
Here is what I did for one as an example and even went and changed what you said not to change in the file.
gift_certificated_defines.php
define('BOX_HEADING_GIFT_CERTIFICATES', 'Gift Certificates');
//Logo number 1
define('GIFT_CERTIFICATES_IMAGE_WIDTH', '150');
define('GIFT_CERTIFICATES_IMAGE_HEIGHT', '150');
define('GIFT_CERTIFICATES_IMAGE', 'gift_certificates.jpg');
define('GIFT_CERTIFICATES_IMAGE_TEXT', 'Gift Certificates');
define('GIFT_CERTIFICATES_IMAGE', zen_image($template->get_template_dir(GIFT_CERTIFICATES_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . GIFT_CERTIFICATES_IMAGE, GIFT_CERTIFICATES_IMAGE_TEXT, GIFT_CERTIFICATES_IMAGE_WIDTH, GIFT_CERTIFICATES_IMAGE_HEIGHT));
//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//example
//define('GIFT_CERTIFICATES_LINK', '" rel="external" target="_blank"');
define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718"');
//DO NOT edit below this line
if (GIFT_CERTIFICATES_LINK == '') {
define('GIFT_CERTIFICATES_IMAGES', GIFT_CERTIFICATES_IMAGE);
}else {
define('GIFT_CERTIFICATES_IMAGES', '<a href="' . GIFT_CERTIFICATES_LINK . '>' . GIFT_CERTIFICATES_IMAGE . '</a>');
}
gift_certificates.php
$show_gift_certificates = true;
if ($show_gift_certificates == true) {
require($template->get_template_dir('tpl_gift_certificates.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_gift_certificates.php');
$title = BOX_HEADING_GIFT_CERTIFICATES;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
tpl_gift_certificates.php
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= GIFT_CERTIFICATES_IMAGES;
$content .= '</div>';
?>
I did the same for the other boxes, changing the wording to make diff boxes and this is what I get for the images
the links, but the top text heading link goes to the review page
wherever you see GIFT_CERTIFICATES it was change to PAYPAL_EXTRAS_MASTERCARD
and vice cersa for gift_certificates in lower case.
and I'm using the newest one off your site, not off the downloads section.
I'm not sure where this is coming from
Gift Certificates [MORE]
since you haven't define the [MORE] for the heading.
define('BOX_HEADING_GIFT_CERTIFICATES', 'Gift Certificates');
I can only guess that one or more of the preceding sideboxes has not been properly implemented.
As a matter of fact, Yes. Actually 3 logo sideboxes.
You can see them here ( clydedesigns.com/designdemo/index.php )
They're three on the right just after the important links box.
To clone this sidebox you would rename these files
includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo_sidebox_defines.php
includes/modules/sideboxes/YOUR_TEMPLATE/logo_sidebox.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php
to the following:
includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo2_sidebox_defines.php
includes/modules/sideboxes/YOUR_TEMPLATE/logo2_sidebox.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo2_sidebox.php
The contents of the files would similarly be renamed to reflect the logo2 designation.
logo2_sidebox_defines.php
logo2_sidebox.phpCode:define('BOX_HEADING_LOGO2_SIDEBOX', '');
//Logo number 1
define('LOGO2_SIDEBOX_IMAGE_WIDTH', '128');
define('LOGO2_SIDEBOX_IMAGE_HEIGHT', '128');
define('LOGO2_SIDEBOX_IMAGE', 'label_new_red.png');
define('LOGO2_SIDEBOX_IMAGE_TEXT', 'My Logo two');
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
//example
//define('LOGO2_SIDEBOX_LINK', 'http://your_link.com/" rel="external" target="_blank"');
define('LOGO2_SIDEBOX_LINK', '');
//DO NOT edit below this line
if (LOGO2_SIDEBOX_LINK == '') {
define('LOGO2_IMAGES', LOGO2_IMAGE);
}else {
define('LOGO2_IMAGES', '<a href="' . LOGO2_SIDEBOX_LINK . '>' . LOGO2_IMAGE . '</a>');
}
tpl_logo2_sidebox.phpCode:// 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;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
Code:$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= LOGO2_IMAGES;
$content .= '</div>';
gift_certificates.php as shown has three obsolete settings used in Zen Cart v1.2.x
$left_corner = false;
$right_corner = false;
$right_arrow = false;
but is missing the current setting for
$title_link = false;
Thus, $title_link remains from the previous sidebox's setting. In this case, it contains the value set in /includes/modules/sideboxes/reviews.php:
$title_link = FILENAME_REVIEWS;
So tpl_box_default_left/right.php does this:
PHP Code:
if ($title_link) {
$title = '<a href="' . zen_href_link($title_link) . '">' . $title . BOX_HEADING_LINKS . '</a>';
that is correct.
gift_certificates.php
$show_gift_certificates = true;
if ($show_gift_certificates == true) {
require($template->get_template_dir('tpl_gift_certificates.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_gift_certificates.php');
$title = BOX_HEADING_GIFT_CERTIFICATES;
remove these:
$left_corner = false;
$right_corner = false;
$right_arrow = false;
add this:
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
ONE LAST THING and I'm done in this thread and moving to the next one LOL.
I am centering the images in each box.
In stylesheet.css I would use these commands?
#logobox1 {
text-align: center;
}
#logobox2 {
text-align: center;
}
using your example in your previous post on how to properly do the three boxes. what would i put in place of logobox1 and logobox 2?
ANDDDDDD in one of the boxes I have an external link but I want it to open WITHIN the middle of my site like the others. Is that hard to do?
Ok folks. I got it all up and running and working. Centered images, creating multiple sideboxes with linking logos, working with external links and EZ-Pages. If anyone reading this thread has any questions, feel free to ask me direct or here and I'll do my best to help. I pretty much understand it now.
Attached is a screen capture. TIA to both Clyde and Glenn.
Version 2.1 of Logo Sidebox is now available in the downloads section
This version contains:
Updated & improved coding
fixed $title_link bug
new comprehensive documentation.
I've been trying to creat extra sideboxes named logo, logoa, logob first 2 install no problem but as soon as I install logob it breaks my site. Renamed all the folders and files as per read me even tried giving them different names ie paylal_sidebox, delivery_sidebox but they still give the same result, is there something I'm missing
<?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', '125');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
define('LOGO_SIDEBOX_IMAGE', 'logo_test.jpg');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'My Logo');
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', '');
?>
<?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);
}
?>
<?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>';
?>
all I do is add a to the next and b to the next
thankfully it's not on my live site just a test site I have.
http://www.rvsolarsystems.co.uk/zen1...php?main_page=
Did you also change all of the variables and constants, likeQuote:
Renamed all the folders and files as per read me
$logoa_image = (LOGOA_SIDEBOX_LINK
yes to be honest I cheated and used find and replace using crimson editor, as I say logo and logoa all changed via find and replace work but logob breaks the test site is the Character case important may be that lower case with lower case upper case with upper case bit late now I'll have go tommorow
Find and replace is the most reliable way to ensure not missing one, as long as you check each one to make sure it is one that should be replaced. If it worked with logoa, I can't think of a reason it wouldn't work with logob. Did you start from the original files each time, or did you change the logoa files to logob?
If you mean the Future Relics site, all of the collection titles were hand calligraphed by a friend of ours. I converted them to images and inserted them in the appropriate places in define_main_page.php.
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:)
1st of all, thanks for the contribution. I'm really looking for logo sidebox but it's not workable for my ZC1.50.
The sidebox is not show up after the installation.
So forgive me if im wrong, this might be old thread that not updated to ZC1.50. For those who looking for similar plugin, I would suggest the "editable sidebox", it works fine for me, at least for the "onlink bank". You may refer to http://my.gobiztunnel.com
My idea to have a 'better' logo sidebox or centerbox would be some logos/brand display in a matrix of 3x3, 3x5 or 5x5.
I hope to work out, or any suggestion are welcome yea..:hug:
Hi
My site is here http://dezertdezinez.com/store
I have installed the logo side box to the above site and it worked fine . I then cloned the box to make another and labeled it logo1 and it's now not showing .. Does it have to be logo2 to show the second box ??
My image is paypalsid.jpg for the logo1 box and ssllogo.png for logo box
Any ideas on how I can get the second box to show and work...
one more thing is that one the layout page it's showing a missing where the logobox1 should be so it's not showing ..
so i'm trying to put a image map for all my site certs and validations in the logo box.(cira 2008)
the map is clickable and works on its own
it uses both css and html.
however when the map is clicked on when in the #logosidebox
it does not work any ideas, pointers
thanks for any input,
scooter
zc1.5.3-hot
We need to see what you have (live) to comment on why it is not working for you.
thanks for the interest in helping me out .
I've also tried the blank box and it leaks the map in the column above the sidebox...:(
tried calling the whole map code as a html, split the css off into the styesheet
as #logosideboxContents and put the html/js in the logo xx defines php & tpl logoxx php
as $content . = and $content.include
as said i've had the map show up in the column with blank_sbx and it works but
i can't get it to work inside logo or blank sidebox
maybe i should be declaring it as #new_site_seal2 (in the css?) which is the map itself?
#htps://whidbeyislandmoped(dot)com/cart/
%CODE FOR MAP%
<style type="text/css">
.map_image { display: block; width: 125px; height: 135px; position: relative; background-position: 0 0; background-repeat: no-repeat; }
.map_image .map_link { display: block; position: absolute; text-indent: -999em; overflow: hidden; }
.map_image #map_link_0 { width: 93px; height: 44px; top: 80px; left: 17px; }
.map_image #map_link_1 { width: 121px; height: 28px; top: 43px; left: 1px; }
.map_image #map_link_2 { width: 87px; height: 33px; top: 3px; left: 17px; }
</style>
<div class="map_image" style="background-image: url('includes/templates/classic/images/new_site_seal2.gif');">
<a class="map_link" id="map_link_0" title="Trustwave" onMouseOver="Trustwave" onClick="javascript:window.open('https://sealserver.trustwave.com/cert.php?customerId=w6oj3BZ9ZhnnLcVNVXtmgytnQ66qDb&size=105x54&style=', 'c_TW', 'location=no, toolbar=no, resizable=yes, scrollbars=yes, directories=no, status=no, width=615, height=720'); return false" span style="cursor:pointer" #new_site_seal2 /span /a>
<a class="map_link" id="map_link_1" title="GoDaddy" onMouseOver="GoDaddy" onClick="javascript:window.open('https://seal.godaddy.com/verifySeal?sealID=N8bfYhpsAEbVn89X8a1ktZjmZpl6VGLxbewiScT6iMRA7W5sEdSHOBD0&size= 105x54&style=', 'c_TW', 'location=no, toolbar=no, resizable=yes, scrollbars=yes, directories=no, status=no, width=615, height=720'); return false" span style="cursor:pointer" #new_site_seal2 /span /a>
<a class="map_link" id="map_link_2" title="PayPal" onMouseOver="PayPal" herf="https://www.paypal.com/"
onClick="javascript:window.open('https://www.paypal.com/us/verified/pal=scooters%40whidbeyislandmoped%2ecom&size=105x54&style=', 'c_TW', 'location=no, toolbar=no, resizable=yes, scrollbars=yes, directories=no, status=no, width=615, height=720'); return false" span style="cursor:pointer" #new_site_seal2 /span /a>
</div>
thank you
sorry, found what I was looking for...
sorry, forgot to add its the Secure Site sidebox on the right
you can grab the map if you want/need it
What file have you added this to?
HTML Code:<div class="map_image" style="background-image: url('includes/templates/classic/images/new_site_seal2.gif');">
<a class="map_link" id="map_link_0" title="Trustwave" onMouseOver="Trustwave" onClick="javascript:window.open('https://sealserver.trustwave.com/cert.php?customerId=w6oj3BZ9ZhnnLcVNVXtmgytnQ66qDb&size=105x54&style=', 'c_TW', 'location=no, toolbar=no, resizable=yes, scrollbars=yes, directories=no, status=no, width=615, height=720'); return false" span style="cursorointer" #new_site_seal2 /span /a>
<a class="map_link" id="map_link_1" title="GoDaddy" onMouseOver="GoDaddy" onClick="javascript:window.open('https://seal.godaddy.com/verifySeal?sealID=N8bfYhpsAEbVn89X8a1ktZjmZpl6VGLxbewiScT6iMRA7W5sEdSHOBD0&size= 105x54&style=', 'c_TW', 'location=no, toolbar=no, resizable=yes, scrollbars=yes, directories=no, status=no, width=615, height=720'); return false" span style="cursorointer" #new_site_seal2 /span /a>
<a class="map_link" id="map_link_2" title="PayPal" onMouseOver="PayPal" herf="https://www.paypal.com/"
onClick="javascript:window.open('https://www.paypal.com/us/verified/pal=scooters%40whidbeyislandmoped%2ecom&size=105x54&style=', 'c_TW', 'location=no, toolbar=no, resizable=yes, scrollbars=yes, directories=no, status=no, width=615, height=720'); return false" span style="cursorointer" #new_site_seal2 /span /a>
</div>
hi Trinity,
well i put all the code in a file, called it with
$content . include in the end of the template logo php file
i've tried splitting it up with the css in the main stylesheet
and the js/html ( what your referring to ) called by the
template logo php and the logo defines php. with no luck.
whats your thoughts /suggestions?
Try this code in your logo_sidebox_defines.php
Let me know if this gets you on the right track...HTML Code:define('LOGO_SIDEBOX_LINK', '"http:///sealserver.trustwave.com/cert.php?customerId=w6oj3BZ9ZhnnLcVNVXtmgytnQ66qDb&size=105x54&style=" rel="external" target="_blank"');//only if you want to open in a new window
no that doesn't work and
i turned it on in the tpl file too..
where did you find the extra fat fingered "/" ?
anybody?
i'm getting the map to to show up but not in the sidebox..where it belongs
its getting rendered before the page loads so its at the top or its in the column
above the sidebox. there is no issue with just putting the gif in the sidebox but its not a clickable map...
nor is there a problem with just setting the code for the one hyperlink as the stock logobox addon does.
the css is in the main stylesheet and the other code is in a file that i have called
as a whole via $content . include ''; and i have put each line of code in the tpl or the defines files via
$content .'';
any pointers or examples ?
thanks
well i gave up on the logo sidebox idea and found
the editable sidebox and that was the way to go . just enter the
code in the define editor and your done . image map in a sidebox!
Not to mention that $content . include '' is javascript, not PHP, and wouldn't even be recognized by the processor...
Installing this plugin on Zen Cart 1.5.8a with PHP 7.4 causes the customer-side page to appear blank. I can log in to the admin interface and see the plugin under Tools > Layout Boxes Controller.
The log file looks like this.
Stack trace seems to be ordered such that #2 calls #1 calls #0Code:[02-Jan-2024 13:08:23 America/Vancouver] PHP Fatal error: Uncaught Error: Call to a member function get_template_dir() on null in /WEBROOT/includes/languages/english/extra_definitions/responsive_classic/logo_sidebox_defines.php:26
Stack trace:
#0 /WEBROOT/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once()
#1 /WEBROOT/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(92): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile('includes/langua...')
#2 /WEBROOT/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(18): Zencart\LanguageLoader\CatalogFilesLanguageLoader->LoadLanguageExtraDefinitions()
#3 /WEBROOT/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines(Object(Zencart\LanguageLoader\LanguageLoader))
#4 /WEBROOT/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#5 /WEBROOT/includes/autoload_func.php(40): require_once('/home/SERVERNAME/...')
#6 /WEBROOT/includes/application_top.php(237): require('/home/SERVERNAME/...')
#7 /WEBROOT/index.php(25): require('/home/SERVERNAME/...')
#8 {main}
thrown in /WEBROOT/includes/languages/english/extra_definitions/responsive_classic/logo_sidebox_defines.php on line 26
[02-Jan-2024 13:08:23 America/Vancouver] Request URI: /1.5.8/index.php?main_page=index&cPath=131, IP address: 75.156.33.72
--> PHP Fatal error: Uncaught Error: Call to a member function get_template_dir() on null in /WEBROOT/includes/languages/english/extra_definitions/responsive_classic/logo_sidebox_defines.php:26
Stack trace:
#0 /WEBROOT/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once()
#1 /WEBROOT/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(92): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile('includes/langua...')
#2 /WEBROOT/includes/classes/ResourceLoaders/CatalogFilesLanguageLoader.php(18): Zencart\LanguageLoader\CatalogFilesLanguageLoader->LoadLanguageExtraDefinitions()
#3 /WEBROOT/includes/classes/ResourceLoaders/LanguageLoader.php(29): Zencart\LanguageLoader\CatalogFilesLanguageLoader->loadInitialLanguageDefines(Object(Zencart\LanguageLoader\LanguageLoader))
#4 /WEBROOT/includes/init_includes/init_templates.php(87): Zencart\LanguageLoader\LanguageLoader->loadInitialLanguageDefines()
#5 /WEBROOT/includes/autoload_func.php(40): require_once('/home/SERVERNAME/...')
#6 /WEBROOT/includes/application_top.php(237): require('/home/SERVERNAME/...')
#7 /WEBROOT/index.php(25): require('/home/SERVERNAME/...')
#8 {main}
thrown in /WEBROOT/includes/languages/english/extra_definitions/responsive_classic/logo_sidebox_defines.php on line 26.
Since the plugin was last updated in 2011 and PHP is unstable its not a surprise that something is going wrong.
There are three PHP files in this plugin.
logo_sidebox_defines.php
logo_sidebox.php
tpl_logo_sidebox.php
logo_sidebox_defines.php treats the default logo as logo_test.jpg but no such file is included by default. The readme says that you should "Save your new image to includes/templates/YOUR_TEMPLATE/images/your_image.???" I updated those three defines but the customer-side site still appears blank and the same error appeared in the logs.
define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
define('LOGO_SIDEBOX_IMAGE', 'logo_test.jpg');
I will keep staring at this and looking for other hypotheses.
Addingnear the top of logo_sidebox_defines.php as per PHP Fatal error: Call to a member function get_template_dir() on null in credit_cards seems to fix this problemCode:global $template;
Now I am experimenting with formatting the image per Docs | Add Image to Sidebox of Centerbox Thanks to the forum posters and documentation writers!