Zen Cart Logo
Forums / Basic Configuration / blank sidebox image

blank sidebox image

Locked

Views: 3,141

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
8 Jun 2007, 4:05 PM
#1
nutritionmp avatar

nutritionmp

New Zenner

Join Date:
Jun 2007
Posts:
5
Plugin Contributions:
0

blank sidebox image

sorry for having such a basic question, im sure its something im missing. But I can't get the image to show up inside the sidebox.

Heres the code. I know for sure that the location is correct, but is there something i need to add for php?

<?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><a href="<http://www.OptimumSSL.com>" title="SSL Certificate Authority" style="font-family: arial; font-size: 10px; text-decoration: none;"><img src="../images/seals/optimumSSL_tl_white2.gif" alt="SSL Certificate Authority" border="0"></img> <br/>SSL Certificate Authority</a>'; $content .= ''; $content .= '</div>'; ?>
8 Jun 2007, 5:03 PM
#4
nutritionmp avatar

nutritionmp

New Zenner

Join Date:
Jun 2007
Posts:
5
Plugin Contributions:
0

Re: blank sidebox image

no wait, i actually have to save the picture according to them, upload it and display it.

The ../images/seals/optimum is where the file is located on the server

Thats in the img src tag

Just to make sure links were cool, i even changed to this. I also changed the image name, and put in the same folder with the side box file.

// 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 .= '<img src="optimum.gif">';
$content .= '';

$content .= '</div>';

8 Jun 2007, 6:16 PM
#5
kobra avatar

kobra

Black Belt

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

Re: blank sidebox image

Just to make sure links were cool, i even changed to this. I also changed the image name, and put in the same folder with the side box file.

Get the image file and upload it to includes/templates/classic/images folder

then use this as your src:

src="../images/optimumSSL_tl_white2.gif"

And then when you get this sorted - read about "creating your own template" and do it!

8 Jun 2007, 6:54 PM
#6
nutritionmp avatar

nutritionmp

New Zenner

Join Date:
Jun 2007
Posts:
5
Plugin Contributions:
0

Re: blank sidebox image

Still didn't work, just always displays as a red x. I'll turn the feature off for now

8 Jun 2007, 6:58 PM
#7
kobra avatar

kobra

Black Belt

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

Re: blank sidebox image

Download one of the modules for this sidebox in the downlods/other section or the sidebox section like for the GoDaddy SSL or the COMODO SSL to see what you are missing

9 Jun 2007, 5:50 PM
#8
dinnages avatar

dinnages

Zen Follower

Join Date:
May 2007
Location:
Brighton/Hove/Sussex
Posts:
146
Plugin Contributions:
0

Re: blank sidebox image

kobra:

When I enter http://www.OptimumSSL.com/images/seals/optimumSSL_tl_white2.gif into my browser I get a 404 error page but http://www.OptimumSSL.com is not a Zen Cart install....

So what is your Zen Cart store url?

nutritionmp:

Still didn't work, just always displays as a red x. I'll turn the feature off for now

Just a thought, but is your site where the images are allowing you to have them accessed from another web site, thats what it looks like from what I have read.
My sites dont allow that (or thats what my choice of setting is) its to stop leeching of images by others using YOUR images & bandwidth to suupport their site.
This may be why you are getting the red X.

Then it might be something simple. Some servers are very picky about Upper&lower CAse filenames.

10 Jun 2007, 9:54 PM
#9
nutritionmp avatar

nutritionmp

New Zenner

Join Date:
Jun 2007
Posts:
5
Plugin Contributions:
0

Re: blank sidebox image

I think your option 1 may have been right. Cause the file names were perfect to the dotted I's and crossed t's. I worked it out though, now i just need to get it centered.

11 Jun 2007, 3:18 AM
#10
kobra avatar

kobra

Black Belt

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

Re: blank sidebox image

Try adding this to your stylesheetc.css file

#blanksideboxContent {
text-align: center;
}
1 Jul 2007, 9:22 AM
#11
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: blank sidebox image

Hi

I add the blank side box 2.0 ( I do have the older version also for 2 boxes already install on my site) I can see it in my admin/ layout boxes controller, but for some reason it is not showing on my site.

I also trying to use it as for article links, I rename it Articles, and on /public_html/storedemo/includes/templates/tile/sideboxes/ I enter the first link I want to be inside this box like this
$content .= '<p>http://www.tiledepot.us/store/docs/Ceramic Tile Installation Instructions.pdf</p>';
$content .= '<p>http://www.tiledepot.us/store/docs/Ceramic Tile Installation Instructions.pdf</p>';

$content .= '<p>http://www.tiledepot.us/store/docs/Ceramic Tile Installation Instructions.pdf</p>'</div>';
?>
I did it for the 3 line as I keep try and it not showing
I also upload it to Include as instruct in the read me

Any one please advice how can I make my box to show, and how can I make list of links with link to my store/ doc.

Thank you

It is not on my site , only on my demo site
http://www.tiledepot.us/storedemo/

1 Jul 2007, 3:34 PM
#12
kobra avatar

kobra

Black Belt

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

Re: blank sidebox image

motti,

Did you enable this new sidebox in admin > tools > layoutboxes controller > ??

1 Jul 2007, 4:01 PM
#13
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: blank sidebox image

Hi Kobra

Yes i did