Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Addon Sideboxes / Image as a sidebox

Image as a sidebox

Started by in2deep on 19 Sep 2012, 2:35 AM · Views: 987

Results 1 to 5 of 5
19 Sep 2012, 2:35 AM
#1
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Image as a sidebox

I'm trying to add images to a right hand column. I've created the php files in this tutorial: http://www.zen-cart.com/wiki/index.php/Tutorial

So I've created the new_sidebox.php , new_sidebox_defines.php and the tpl_new_sidebox.php the sidebox info shows up in the layout boxes controller. The problem is no images appear on my site as expected . The code for the last one is:

<?php $content = <<< End_Of_Quote <a href="http://www.mysite.com/" target="blank">...</a> <img src="/images/side_banner1.jpg" width="170" height="255" border="0"> End_Of_Quote; ?>

What am I doing wrong here?

20 Sep 2012, 4:40 AM
#2
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: Image as a sidebox

If this won't work can anyone recommend another solution?

20 Sep 2012, 9:45 AM
#3
stevesh avatar

stevesh

Black Belt

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

Re: Image as a sidebox

I would be inclined to use the Blank Sidebox mod and either remove the header from the code or turn it off in the stylesheet if you only want the image to display.

22 Sep 2012, 2:02 AM
#4
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: Image as a sidebox

I'll give it a shot, thanks.

22 Sep 2012, 3:58 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Image as a sidebox

It sounds like you have the right files, but what is this?
$content = <<< End_Of_Quote

Is that really in your file? If so, the bare < symbols are likely to cause an error, not to mention the unquoted text.