I'm trying to make the logo sidebox hyperlink target blank but I am having problems achieving this.
Any help much appreciated.
Printable View
I'm trying to make the logo sidebox hyperlink target blank but I am having problems achieving this.
Any help much appreciated.
If I understand what you mean by the common use of "Blank" in this instance meaning to open this in a new window the followwing is the std form:Quote:
I'm trying to make the logo sidebox hyperlink target blank but I am having problems achieving this.
Code:<a HREF="your_link.???" TARGET="_blank">Your Link Name</a>
in includes/languages/english/extra_definitions/logo_sidebox_defines.php
find:
define('LOGO_SIDEBOX_LINK', 'http://your_link.com/');
You can then add you link.
save the file and upload to your server.
OK, Clyde - What am I missing here? :blink: My logo_sidebox is operating but I can't seem to make the link active. Here's my logo_sidebox_defines.php:
The site in question is the link below. Thanks!!Code:<?php
//
// Blank Sidebox Mod
// includes/modules/sideboxes/blank_sidebox_defines.php
//
// --------------------------------------------------
// http://www.MommaMuse.com mod Zen-Cart - by Judi Cox
// --------------------------------------------------
// zen-cart Open Source E-commerce
// Copyright (c) 2003-2006 The zen-cart developers
// http://www.zen-cart.com/index.php
// Portions Copyright (c) 2003 osCommerce
// --------------------------------------------------
// This source file is subject to version 2.0 of the GPL license,
// that is bundled with this package in the file LICENSE, and is
// available through the world-wide-web at the following url:
// http://www.zen-cart.com/license/2_0.txt.
// If you did not receive a copy of the zen-cart license and are unable
// to obtain it through the world-wide-web, please send a note to
// [email protected] so we can mail you a copy immediately.
// --------------------------------------------------
//
// $Id: blank_sidebox_defines.php,v 1.0 6/24/2006
// Original modification by Carter Harris [email protected] based on the tpl_featured.php file
// Additionally modified by Judi Cox http://www.mommamuse.com
define('BOX_HEADING_LOGO_SIDEBOX', 'Visiting Florence? Place your order in advance of your arrival.');
define('LOGO_SIDEBOX_IMAGE_WIDTH', '68');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '50');
define('LOGO_SIDEBOX_IMAGE', 'Italy.gif');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'Benvenuto!');
//this is optional if you want to use the logo as a link
//replace your_link.com with the link you choose
define('LOGO_SIDEBOX_LINK', 'http://www.beadedlily.com/shop/index.php?main_page=page_3');
?>
Tim
look in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php
I've bolded the parts that apply to your situation.
Code:<?php
//
// Blank Sidebox Mod
// includes/templates/templates_default/sideboxes/tpl_blank_sidebox.php
//
// --------------------------------------------------
// http://www.MommaMuse.com mod Zen-Cart - by Judi Cox
// --------------------------------------------------
// zen-cart Open Source E-commerce
// Copyright (c) 2003-2006 The zen-cart developers
// http://www.zen-cart.com/index.php
// Portions Copyright (c) 2003 osCommerce
// --------------------------------------------------
// This source file is subject to version 2.0 of the GPL license,
// that is bundled with this package in the file LICENSE, and is
// available through the world-wide-web at the following url:
// http://www.zen-cart.com/license/2_0.txt.
// If you did not receive a copy of the zen-cart license and are unable
// to obtain it through the world-wide-web, please send a note to
// [email protected] so we can mail you a copy immediately.
// --------------------------------------------------
//
// $Id: tpl_blank_sidebox.php,v 1.0 6/24/2006
// Original modification by Carter Harris [email protected] based on the tpl_featured.php file
// Additionally modified by Judi Cox http://www.mommamuse.com
//
// Link Option - uncomment this if you intend to use the logo as a link
//$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT) . '</a>';
//comment this out if you use the above link option.
$logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT);
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '">';
$content .= $logoimage;
$content .= '</div>';
?>
Yep, that did it! Thanks Clyde :thumbsup:
By-the-by; even though we are on different continents, I can always count on you to reply almost instantly no matter what time I post. Do you sleep?? :P
What is a logo sidebox? What logos? Where can I see a sample of this? Where do I find the download?
Its a sidebox in which you can place a logo (any logo you choose)
its available in the downloads section here:
www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_52&products_id=405
You can see a sample here: Top Left sidebox
mysticmountainnaturals.com/testsite/index.php
Hi Clyde,
How can i alter the script to have the link shown in a new page?
Thanks
Ilonka
Hi Clyde,
I'm obviously quite new at this & I need help getting my image & hyperlink to appear. I thought I had followed all of the directions, but when I try to insert my image or hyperlink, I get something like a "parse error on line 27 and/or 28". Any ideas how to get my image to appear? I've been looking all over and I can't find the answer...
Geez, sorry, it's: www.kings-kreations.com/zen
Thanks!
Mindy
<?php
//
// Blank Sidebox Mod
// includes/modules/sideboxes/blank_sidebox_defines.php
//
// --------------------------------------------------
// http://www.MommaMuse.com mod Zen-Cart - by Judi Cox
// --------------------------------------------------
// zen-cart Open Source E-commerce
// Copyright (c) 2003-2006 The zen-cart developers
// http://www.zen-cart.com/index.php
// Portions Copyright (c) 2003 osCommerce
// --------------------------------------------------
// This source file is subject to version 2.0 of the GPL license,
// that is bundled with this package in the file LICENSE, and is
// available through the world-wide-web at the following url:
// http://www.zen-cart.com/license/2_0.txt.
// If you did not receive a copy of the zen-cart license and are unable
// to obtain it through the world-wide-web, please send a note to
// [email protected] so we can mail you a copy immediately.
// --------------------------------------------------
//
// $Id: blank_sidebox_defines.php,v 1.0 6/24/2006
// Original modification by Carter Harris [email protected] based on the tpl_featured.php file
// Additionally modified by Judi Cox http://www.mommamuse.com
define('BOX_HEADING_LOGO_SIDEBOX', 'Payment Methods');
define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
define('LOGO_SIDEBOX_IMAGE', '');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'Pay quickly and easily with PayPal, using your credit
card or bank funds. No PayPal account required!');
//this is optional if you want to use the logo as a link
//replace your_link.com with the link you choose
define('LOGO_SIDEBOX_LINK', 'http://your_link.com/');
?>
I tried to place an image here:
You didn't define an image to use. make sure to save the image in:
includes/templates/YOUR_TEMPLATE/images/
define('BOX_HEADING_LOGO_SIDEBOX', 'Payment Methods');
define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
define('LOGO_SIDEBOX_IMAGE', 'YOUR_IMAGE_NAME.gif');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'Pay quickly and easily with PayPal, using your credit
card or bank funds. No PayPal account required!');
I tried to place an image here: define('LOGO_SIDEBOX_IMAGE', 'image.gif'); but nothing actually shows up in Firefox. In IE, it shows as a blank box, so I took it out for now.
Also, on this line, define('LOGO_SIDEBOX_LINK', 'http://your_link.com/'); I tried to place a linked image and in IE, the text runs out of the box and into the images/wording in the center of the page.
Sorry, I accidentially cut my last post short! :-)
As I said, make sure your image is located in:
includes/templates/YOUR_TEMPLATE/images/YOUR_IMAGE.gif
Open includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php.
find the following lines of code and edit as necessary.
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);
My image is added here, but no change when I uploaded. There's still no image and when viewing in IE, the text extends far beyond the box.
includes/templates/YOUR_TEMPLATE/images/pplogo.gif
Open includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php.
find the following lines of code and edit as necessary.
I don't understand what I'm supposed to do here:
[/QUOTE]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);
Clyde picked up on Classic (default) Template being installed. Makes my previous post moot. :smile:
BTW, Clyde, any difference between using your Mod and the Blank Sidebox Mod? Haven't used yours but have used the other and can see where the BS mod can do the same things, basically.
Clyde, thanks, that made the image appear like it should. :-) That's definitely progress! I want it to be a clickable image that opens in a new window. Here is the info from the PayPal site - not sure if it's what I need to use:
<!-- 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/cps/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 so much for your patience and help!!
I have a sort of unrelated question - can you have more than one custom logo sidebox? If you can have a second box, can it contain more than one logo? I was trying to think of a clever way to do my link exchanges. I thought maybe clickable images with links to their sites (that open in new windows) would be neat.
Why not try Links Manager available in the downloads section
Hi Clyde,
Have you had a chance to mull this over? I have my PayPal logo in it's own sidebox, but I wanted it to be clickable. I still haven't figured it out...any ideas? TIA!
Mindy
Have you tried the paypal verified logo sidebox available in the downloads section
Thanks, Clyde, that worked perfectly! I was able to change the logo & make it clickable, just like I wanted. I also figured out how to change the sidebox header & the logo size. It looks great! Thanks again for all of your help!! :-)
(OT, but I just realized you are in Colorado - me, too!)
Thx,
Mindy
clydejones I hope you are doing well. I have a 2 questions for you if you don't mind. I added my logo box and my logo picture is showing. How do I center it, and how do I add a hyper-link . I have read what to do but I seem not to be able to get it to work. Thank you
How do I center it:
add the following to your stylesheet.css
#logosideboxContent { text-align: center;}
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.
Thank you clydejones as alway you need a great big pat on the back. :clap:
Hi Clyde,
So sorry, I've been MIA for a while! I'm in the SE corner, near Lamar. I've been in your corner of the world several times in the last few weeks.
Anyway, I have a quick question on the Link exchange addition. I'm sure it's blatantly obbvious, but what is the name of the sidebox to activate? Everything appears like it should (I think) in the admin settings, I just can't figure out which sidebox to activate.
Oh, sorry, I'm working with the Links Manager sidebox. I have a mysterious box in my layout boxes controller. It's in RED, which makes me think there are serious errors with it. Here's what it looks like:
sideboxes/classic/WS_FTP.LOG
Since there is not a .php extension, I am assuming that is where the error lies.
Additionally, when I activate that box, I have the following infomation displayed on my web page and it is not contained in a sidebox:
2007.11.02 09:24 B C:\Documents and Settings\zen\includes\modules\sideboxes\classic\empty.txt --> 216.147.62.63 /kings-kreations-www/zen/includes/modules/sideboxes/classic empty.txt
I have checked my path names, and as far as I can tell, I have changed all of the YOUR_TEMPLATE locations to CUSTOM. Any ideas where I should look? Thanks!!
Mindy
is WS_FTP the ftp client you use to upload your files?
if so WS_FTP.LOG is the log file for something you uploaded to your site.
the red just indicates that you are using the classic template on your site.
look in includes/modules/sideboxes/classic and just delete the WS_FTP.LOG file.
do this on both your PC and on your server.
OK, did that, but I still do not have a links_box.php file. Ideas?
did you rename ALL the YOUR_TEMPLATE folders to classic.
These are the files you should have:
includes/extra_datafiles/links_manager.php
includes/functions/links.php
includes/languages/english/extra_definitions/YOUR_TEMPLATE/links_manager_defines.php
includes/languages/english/YOUR_TEMPLATE/links.php
includes/languages/english/YOUR_TEMPLATE/links_submit.php
includes/languages/english/YOUR_TEMPLATE/popup_links_help.php
includes/languages/english/html_includes/define_links.php
includes/languages/english/html_includes/define_links_submit.php
includes/languages/english/html_includes/YOUR_TEMPLATE/define_links.php
includes/languages/english/html_includes/YOUR_TEMPLATE/define_links_submit.php
includes/modules/pages/links
includes/modules/pages/links_submit
includes/modules/pages/popup_links_help
includes/modules/YOUR_TEMPLATE/link_listing.php
includes/modules/sideboxes/YOUR_TEMPLATE/links_box.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php
includes/templates/YOUR_TEMPLATE/templates/tpl_links_default.php
includes/templates/YOUR_TEMPLATE/templates/tpl_links_submit_default.php
includes/templates/YOUR_TEMPLATE/popup_links_help
includes/templates/YOUR_TEMPLATE/css/links.css
includes/templates/YOUR_TEMPLATE/css/links_submit.css
THAT made a big difference! I'm almost there, but my links are not displaying correctly. Here's my site. http://www.kings-kreations.com/zen/
Additionally, on the home page at the top, right above where it says "if you can think it we can ink it", until I installed the link mod, that said something like "welcome to kings kreations", but somehow that text was replaced with the word LINK.
There are a few other things I'd like it to do.
1. I want control over putting the links in. I DO NOT want just anyone to have that ability.
2. I would like to have the list of links displayed as .jpg images, so the person viewing the site can just click on the image to view the link.
3. The linked site needs to open in a new window
4. I'd like to set it up where I DO NOT have to have categories listed. I just want the images displayed so they can be clicked on.
Can any of these things be done?
This sounds like you've got one of the links manager "language" files in the wrong place. but I'm not sure which one it would be.
You'd need to delete the submit link button on the link pages.Quote:
1. I want control over putting the links in. I DO NOT want just anyone to have that ability.
Check the new version of Links Manager 3.4.0 it now allows users and or admins to use banner images for links.Quote:
2. I would like to have the list of links displayed as .jpg images, so the person viewing the site can just click on the image to view the link.
This is handled automatically by Links Manager.Quote:
3. The linked site needs to open in a new window
The way Links Manager is set up requires categories for the links listings.Quote:
4. I'd like to set it up where I DO NOT have to have categories listed. I just want the images displayed so they can be clicked on.
:frusty:
I'm still trying to get this mod working, but in the meantime, I have a small problem I need to resolve. After I installed the link mod, it changed the header on my home page to say "Links" instead of "welcome to....". I re-uploaded the index.php file with my custom header and no change. You can see where it changed here: http://www.kings-kreations.com/zen/
Any idea how to fix that, too?
As I said, one of the Links Manager language files is located in the wrong place.
So lets take a step back. First:
manually delete these files from your server.
includes/extra_datafiles/links_manager.php
includes/functions/links.php
includes/languages/english/extra_definitions/classic/links_manager_defines.php
includes/languages/english/classic/links.php
includes/languages/english/classic/links_submit.php
includes/languages/english/classic/popup_links_help.php
includes/languages/english/html_includes/define_links.php
includes/languages/english/html_includes/define_links_submit.php
includes/languages/english/html_includes/classic/define_links.php
includes/languages/english/html_includes/classic/define_links_submit.php
includes/modules/pages/links
includes/modules/pages/links_submit
includes/modules/pages/popup_links_help
includes/modules/classic/link_listing.php
includes/modules/sideboxes/classic/links_box.php
includes/templates/classic/sideboxes/tpl_links_select.php
includes/templates/classic/templates/tpl_links_default.php
includes/templates/classic/templates/tpl_links_submit_default.php
includes/templates/classic/popup_links_help
includes/templates/classic/css/links.css
includes/templates/classic/css/links_submit.css
Once you've deleted them, check the site and see if the problem is corrected.
I've removed all of the files and it my home page header still says "Links" instead of my welcome message. Is there a place I can override that?
Is there a way to have it so it does show the sidebox background image, the same way that the header and footer image does not show up?
I don't want to be a different color. I want it so you can see the background image of the main wrapper.
Clyde
I want to use the logo sidebox as a Category Link. With 1 category it works great, but I have 5 categories. Can I duplicate everything to create 5 logo side boxes to use with my categories??
Or do I need a different contribution?
You CAN duplicate everything (you'll just have to rename all the files)
This mod was really meant to use only one logo/image.
You might want to look at the categories dressing mod available in the downloads section. This might be more appropriate for what you are trying to do.
I would like the logo link to open in a new window. What code needs to be added? I'm assuming it is in the logo_sideboxes_defines.php. Here is my site:
http://www.gameoverbeyond.com
I'd like the Retro Arcade Radio link in the top right to open in a new window so visitors can listen while still shopping at my site.
Also, can I add text to the logo sidebox under the logo? If so, where.
Ex: Listen While You Shop
Open includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo_sidebox_defines.php
Modify this define Statement as indicated by the highlighted portion
define('LOGO_SIDEBOX_LINK', 'http://www.retroarcaderadio.com/" target="_blank');
Add This New Define Statement
define('LOGO_SIDEBOX_INFO_TEXT', '<br />Listen While You Shop');
Save the file and upload to your server
Open includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php
Find this line of code:
$content .= $logoimage;
and immediately below Add This Line
$content .= LOGO_SIDEBOX_INFO_TEXT;
Save the file and upload to your server
Thanks clyde! Works like a champ! I appreciate the assistance, thank you again:smile:
Is there anyway i can add a Side box header image?
I cant seem to find anyway of doing this!
thanks,
andy
For some reason, I cannot get my image to show. I made sure everything was spelled correctly. I checked paths to make sure everything coincided. I also changed paths as a test putting the jpg in same directory, still a no go. I must be missing something really simple!
I am running 1.38 of Zen Cart.
Here is what I currently have:
http://www.crochetgarden.com (lower left, last box on left), has red X.
Here is what I have in my file:
And, here is the link for the image: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: logo_sidebox_defines.php,v 1.1 8/21/2008
define('BOX_HEADING_LOGO_SIDEBOX', 'Member Of');
define('LOGO_SIDEBOX_IMAGE_WIDTH', '100');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '102');
define('LOGO_SIDEBOX_IMAGE', 'cgoa.jpg');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'Member of CGOA');
//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.crochet.org/');
?>
http://www.crochetgarden.com/include...USTOM/cgoa.jpg
Thank you Thank you!! It is now working :)
how do i add mutiple logos in my logo sidebox with hyperlinks for each?, because im an authorized dealer for a couple companies and id like to have them in my sidebox.
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'd like to add a second logo sidebox. I am currently using one to display a link to my tag previewer. I'd like to add a second for announcements, upcoming shows, vacations, etc. What do I call the files for the second sidebox & what do I need to add/change in the stylesheet to accomplish this?
rename the files as indicated(highlighted
includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo_sidebox_one_defines.php
includes/modules/sideboxes/YOUR_TEMPLATE/logo_sidebox_one.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox_one.php
For logo_sidebox_one_defines.php make the following changes
for logo_sidebox_one.php make the following changesCode:define('BOX_HEADING_LOGO_SIDEBOX1', '');
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/');
for tpl_logo_sidebox_one.php make the following changesCode:if ($show_logo_sidebox == true) {
require($template->get_template_dir('tpl_logo_sidebox_one.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox_one.php');
$title = BOX_HEADING_LOGO_SIDEBOX;
You shouldn't have to make any changes to your stylesheet.cssCode:/ 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);
$content .= $logoimage1;
Clyde, I have the logo_sidebox_one showing up in my layout boxes controller, so it appears as though I have at least uploaded the files correctly. I activated the box, but it doesn't show up on the site. I cannot seem to find what I've done wrong. I've looked over the files again & again, but I have to still be missing something...Ideas? :frusty:
Here's what I have for the php files...
logo_sidebox_one_defines.php
define('BOX_HEADING_LOGO_SIDEBOX1', 'Notices & Announcements');
define('LOGO_SIDEBOX1_IMAGE_WIDTH', '125');
define('LOGO_SIDEBOX1_IMAGE_HEIGHT', '150');
define('LOGO_SIDEBOX1_IMAGE', 'notices.gif');
define('LOGO_SIDEBOX1_IMAGE_TEXT', 'Notices');
//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://www.blahblahblah" target="_blank');
logo_sidebox_one.php:
$show_logo_sidebox = true;
if ($show_logo_sidebox_one == true) {
require($template->get_template_dir('tpl_logo_sidebox_one.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox_one.php');
$title = BOX_HEADING_LOGO_SIDEBOX;
$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_logo_sidebox_one.php:
// 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.
$logoimage = 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);
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '">';
$content .= $logoimage1;
$content .= '</div>';
make these changes and see if that helps
$show_logo_sidebox = true;
if ($show_logo_sidebox_one == true) {
require($template->get_template_dir('tpl_logo_sidebox_one.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox_one.php');
$title = BOX_HEADING_LOGO_SIDEBOX1;
$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_logo_sidebox_one.php:
// 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);
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '">';
$content .= $logoimage1;
$content .= '</div>';
Hey Clyde,
I made the changes as indicated, uploaded the edited files, and...nothing. I deleted them all & tried again, but the sidebox still doesn't show up. :censored:
logo_sidebox_one does appear in the admin & it is turned on.
My files are uploaded as shown:
includes/languages/english/extra_definitions/classic/logo_sidebox_one_defines.php
includes/modules/sideboxes/classic/logo_sidebox_one.php
includes/templates/classic/sideboxes/tpl_logo_sidebox_one.php
What have I done wrong? (and WHY do I have so much trouble with these darn sideboxes?!?!). I am tearing my hair out over this!!
:clap:
THANK YOU, Clyde!! You always have the answers & I appreciate you walking me through this!
One last stupid question...how in the heck do you center the image in the logo sidebox?
Thanks again for all your help!!
~Mindy~
:yes:
THAT did the trick! THANK YOU!! (it looks great, BTW!)
Thansk for the Logo Sidebox mod it is great and working perfectly- It currently has an image which when clicked opens a new window that plays a short video-However, what I really want is for the click to open up a small pop up window that contains the video- Any ideas how I can achieve that?
Thanks
Andy
This thread may give you some ideas.
Also do a search for popups and/or popup windows
Thanks for the references- I have looked, but they dont give me specific instructions regardinga sidebox? I dont know where to put the Javasccript etc- Is it in the sdebox php file??
Thanks
Andy
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!
www.sunplastics.co.uk/shop
Kev
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 - 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 - 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
Try making the following changes and see if it helps.Code:$content .= '<br />' . $logoimage1;
$content .= '<br />' . $logoimage2;
//$content = '';
// $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
// $content .= $logoimage;
// $content .= '</div>';
Code:$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= '<br />' . $logoimage1;
$content .= '<br />' . $logoimage2;
// $content .= $logoimage;
$content .= '</div>';
Clyde,
Thanks very much - now looking perfect!
Much appreciated!
Rgds
Kev
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
Check and make sure all your files are uploading to your server and they are in your custom folders.Quote:
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
Yep, everything is absolutely in my custom folders....that was one of the first things I checked.....just rechecked again though for good measure!
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.
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!
OK i see the man is here to help so I will just be quit. :blink:
:smile:Quote:
OK i see the man is here to help so I will just be quit.
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!!!!
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?Quote:
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.
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!!!
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
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 - 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);