Zen Cart Logo
Forums / Addon Sideboxes / Blank sidebox not behaving as expected

Blank sidebox not behaving as expected

Locked

Views: 2,800

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
12 Jul 2009, 11:46 PM
#1
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Blank sidebox not behaving as expected

I have installed the blank sidebox template in my override folder and it seems to display the logo correctly but it doesn't seem to accept the clickable URL that I have defined in the tpl.logo_sidebox.php

It shows the image and it also shows a marker under the image for some reason.
Neither Firefox nor IE 8 show this misterious anchor.

I have attached a snapshot

Is there something I'm doing wrong to define a link for that image?
If I turn off the sidebox is goes away but if I rename the tpl.logo_sidebox.php file it still shows. :frusty:

The url is https://www.karatjewellers.ca

Can anyone help please?

12 Jul 2009, 11:52 PM
#2
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

Rob905:

I have installed the blank sidebox template in my override folder and it seems to display the logo correctly but it doesn't seem to accept the clickable URL that I have defined in the tpl.logo_sidebox.php

It shows the image and it also shows a marker under the image for some reason.
Neither Firefox nor IE 8 show this misterious anchor.

I have attached a snapshot

Is there something I'm doing wrong to define a link for that image?
If I turn off the sidebox is goes away but if I rename the tpl.logo_sidebox.php file it still shows. :frusty:

The url is https://www.karatjewellers.ca

Can anyone help please?

I'm not sure why, but I found the solution in blank_sidebox_defines.php in the language/english folder.
If that is where the info is stored, what is the purpose of the tpl. file in the sidebox folder for the override template?

12 Jul 2009, 11:53 PM
#3
kobra avatar

kobra

Black Belt

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

Re: Blank sidebox not behaving as expected

I have installed the blank sidebox template in my override folder and it seems to display the logo correctly but it doesn't seem to accept the clickable URL that I have defined in the tpl.logo_sidebox.php
I clicked it and was taken to http ://www.rotarywatches.com/uk/index.aspx
It shows the image and it also shows a marker under the image for some reason.
Neither Firefox nor IE 8 show this misterious anchor.
OK I give - - What browser do you see this in??? I know the 2 that do not show it

I do see a set of <p> tags might try posting ALL of the code you have entered for this

Zen-Venom Get Bitten

13 Jul 2009, 10:13 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Blank sidebox not behaving as expected

I'm seeing the red-X-in-a-box in IE7 and 8.

The actual logo is called rotary_logo.gif.

The red X image is called rorary_logo.gif. I'd find that and remove it from your code.

You can enter code in either of the 2 files with that mod.

13 Jul 2009, 12:47 PM
#5
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

kobra:

I clicked it and was taken to http ://www.rotarywatches.com/uk/index.aspx

OK I give - - What browser do you see this in??? I know the 2 that do not show it

I do see a set of <p> tags might try posting ALL of the code you have entered for this

I'm using Safari in Mac OS X 10.5.7

Here is the code for the logo_sidebox_defines.php file.

<?php /** * blank sidebox definitions - text for inclusion in a new blank sidebox * * @package templateSystem * @copyright 2007 Kuroi Web Design * @copyright Portions Copyright 2003-2007 Zen Cart Development Team * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: blank_sidebox.php 2007-05-26 kuroi $ */ define('BOX_HEADING_BLANK_SIDEBOX', 'Only available at Karat Jewellers'); define('TEXT_BLANK_SIDEBOX', '<img src="../../../../images/rotary_logo.gif" />'); ?>

and here is the full code from the tpl_logo_sidebox.php file.

<?php /** * blank sidebox - allows a blank sidebox to be added to your site * * @package templateSystem * @copyright 2007 Kuroi Web Design * @copyright Portions Copyright 2003-2007 Zen Cart Development Team * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: blank_sidebox.php 2007-05-26 kuroi $ */ $content = ''; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">'; // Replace the text and HTML tags between the apostophes on lines 19 and 20. // Use as many or as few lines using this model as you need for your custom content. // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19. // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!) $content .= '<p>'<img src="<a href="www.rotarywatches.com" title="Rotary Watches" target="_blank">../../../../images/rotary_logo.gif</a>" />'</p>'; $content .= '</div>'; ?>

Thanks folks.

13 Jul 2009, 12:55 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Blank sidebox not behaving as expected

Your image source can't be a link, it needs to be an address, either a path to a location on your site, or an http URL.

If you want it to be clickable, the link should be wrapped around the image.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

13 Jul 2009, 2:09 PM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,658
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

Correct syntax is:

<a href="the_url_"><img src="path_to_image/image_name.jpg /></a>"

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

14 Jul 2009, 2:59 AM
#8
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

kuroi:

Your image source can't be a link, it needs to be an address, either a path to a location on your site, or an http URL.

If you want it to be clickable, the link should be wrapped around the image.
Aside from that I noticed there was a "<" missing. :shocking:

Thanks for all the help. Making the picture an address fixed it.

Robert

14 Jul 2009, 3:14 AM
#9
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

Rob905:

Aside from that I noticed there was a "<" missing. :shocking:

Thanks for all the help. Making the picture an address fixed it.

Robert

Spoke to soon. I was looking at the site in Firefox :-(
In Safari the issue is still there.
I took the links out of the tpl file and just put it in the logo_sidebox_defines.php file like this:

define('TEXT_BLANK_SIDEBOX', '<a href="www.rotarywatches.com"><img src="http://karatjewellers.ca/zencart/images/rotary_logo.gif /><a/>');

I seem to be missing a closing " somewhere but if I put it where I think it should go the entire site stops loading. :frusty:

14 Jul 2009, 10:10 AM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

Looks like you have a duplication of your image code as I see two images being referenced.

karatjewellers.ca/zencart/images/rotary_logo.gif
1rst image - valid URL

https://www.karatjewellers.ca/images/rorary_logo.gif
2nd image - invalid URL

Either remove the second URL or correct it, to fix the problem.

The learning is in the doing.

Potent Products

14 Jul 2009, 12:15 PM
#11
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

Website Rob:

Looks like you have a duplication of your image code as I see two images being referenced.

karatjewellers.ca/zencart/images/rotary_logo.gif
1rst image - valid URL

https://www.karatjewellers.ca/images/rorary_logo.gif
2nd image - invalid URL

Either remove the second URL or correct it, to fix the problem.

I've double checked the logo_sidebox_defines.php file and there is only one link to the logo.

I do have the same logo in a different sidebox on the right side of the page but that box is working fine.

14 Jul 2009, 12:19 PM
#12
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Blank sidebox not behaving as expected

Could be in the tpl_logo_sidebox.php file.

Use Admin - Tools - Developers Tool Kit to search for rorary

14 Jul 2009, 12:25 PM
#13
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

stevesh:

Could be in the tpl_logo_sidebox.php file.

Use Admin - Tools - Developers Tool Kit to search for rorary

The tpl_logo_sidebox.php doesn't have anything in it.
Admin - Tools - Developers Tool Kit doesn't find anything either, no matter which search I do.

14 Jul 2009, 12:37 PM
#14
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Blank sidebox not behaving as expected

Has to be there - this is directly from your page source:

<div id="logosideboxContent" class="sideBoxContent"><p><a href="http://www.rotarywatches.com" target="_blank"><img src="http://karatjewellers.ca/zencart/images/rotary_logo.gif" /></a></p><p><a href="http://www.rotarywatches.com" target="_blank"><img src="http://www.karatjewellers.ca/images/**rorary_logo.gif**"></a></p></div></div>
14 Jul 2009, 8:16 PM
#15
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

stevesh:

Has to be there - this is directly from your page source:

<div id="logosideboxContent" class="sideBoxContent"><p><a href="http://www.rotarywatches.com" target="_blank"><img src="http://karatjewellers.ca/zencart/images/rotary_logo.gif" /></a></p><p><a href="http://www.rotarywatches.com" target="_blank"><img src="http://www.karatjewellers.ca/images/**rorary_logo.gif**"></a></p></div></div>

Can you tell me what file it's getting that from because the two files that I know of do not have this info in it.

16 Jul 2009, 10:01 PM
#16
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

stevesh:

Has to be there - this is directly from your page source:

<div id="logosideboxContent" class="sideBoxContent"><p><a href="http://www.rotarywatches.com" target="_blank"><img src="http://karatjewellers.ca/zencart/images/rotary_logo.gif" /></a></p><p><a href="http://www.rotarywatches.com" target="_blank"><img src="http://www.karatjewellers.ca/images/**rorary_logo.gif**"></a></p></div></div>

I've been unable to find the file that is causing this as neither of the files that have the logo in it have it listed more than once. I even tried removing the logo files and at one point killed the entire site doing so.

Guess I really did it. LOL

16 Jul 2009, 10:34 PM
#17
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Blank sidebox not behaving as expected

Are you sure you're using the **Admin - Tools - Developers Tool Kit **properly? Many people (including yours truly) don't realize at first that, after entering the search string (rorary in your case), they have to select an area to search from the dropdown to the right of the search box.

That word (rorary) is in your code, so it has to show up.

22 Jul 2009, 2:33 AM
#18
rob905 avatar

rob905

Zen Follower

Join Date:
Sep 2007
Location:
Niagara Falls, Ontario
Posts:
378
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

stevesh:

Are you sure you're using the **Admin - Tools - Developers Tool Kit **properly? Many people (including yours truly) don't realize at first that, after entering the search string (rorary in your case), they have to select an area to search from the dropdown to the right of the search box.

That word (rorary) is in your code, so it has to show up.

Yup, that's how I ended up finding out that I was using I file I had no reason to use.
I had a file named LOGO_*.
When I removed that file and just kept the basic files the problem was solved.

Thanks again.

21 Sep 2009, 10:10 PM
#19
heliwraps avatar

heliwraps

New Zenner

Join Date:
Apr 2009
Posts:
2
Plugin Contributions:
0

Re: Blank sidebox not behaving as expected

Website Rob:

karatjewellers.ca/zencart/images/rotary_logo.gif
1rst image - valid URL

https://www.karatjewellers.ca/images/rorary_logo.gif
2nd image - invalid URL

OK. First off, in the 1st image, be sure you have http:// in front of it.

http://karatjewellers.ca/zencart/images/rotary_logo.gif

define('TEXT_BLANK_SIDEBOX', '<a href="www.rotarywatches.com"><img src="http://karatjewellers.ca/zencart/images/rotary_logo.gif /><a/>');

That needs to have a " after gif. Correct syntax is

define('TEXT_BLANK_SIDEBOX', '<a href="www.rotarywatches.com"><img src="zencart/images/rotary_logo.gif" /><a/>');