Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Trying to add a image to a sidebox

Trying to add a image to a sidebox

Locked

Views: 1,024

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
21 Aug 2009, 9:02 AM
#1
topdiscs avatar

topdiscs

New Zenner

Join Date:
Aug 2009
Posts:
4
Plugin Contributions:
0

Trying to add a image to a sidebox

Hi there

I'd just like to say I tried looking through the faq's and did see something relevant but didn't really understand the answer.

Basically I would like to put a small image on the right sideboxes which says "paypal verified". I have found an appropriate image on the paypal site.

I thought maybe a way of doing it would be to change one of the banners to the image I need and then display that.

Its working but the link goes to zencart. I can't see a way of changing the link.

Is there a better way of doing it? I'd like to put a box on the site which also links to zencart - trouble is when I do this... it swaps the two boxes over each time I visit the site. This would be ok but I've changed the titles on the images so instead of saying "sponsored by" it now says "Paypal verified" and then hopefully the correct image should display underneath.

Other than that, Paypal is brilliant!

Thanks

Phil

21 Aug 2009, 9:16 AM
#2
topdiscs avatar

topdiscs

New Zenner

Join Date:
Aug 2009
Posts:
4
Plugin Contributions:
0

Re: Trying to add a image to a sidebox

I meant "Zencart is brilliant"!!!
doh!

21 Aug 2009, 10:39 AM
#3
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Trying to add a image to a sidebox

In the Free Software Add-ons (link above) there is a BLANK SIDEBOX module. You can use this to create a simple custom sidebox in which these elements can be displayed.

By giving this BLANK SIDEBOX custom names, you can use it as many times as you like (ie: create as many customized sideboxes as you need).

Full instructions on how to configure it are embedded in the module's zip file.

21 Aug 2009, 11:06 AM
#4
topdiscs avatar

topdiscs

New Zenner

Join Date:
Aug 2009
Posts:
4
Plugin Contributions:
0

Re: Trying to add a image to a sidebox

Hi there

I've just done this and its now displaying on the site.
I'm not sure how I put an image into the code.

I presume the file I need to change is : tpl_blanksidebox.php
which reads...

<?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>' . TEXT_BLANK_SIDEBOX . '</p>'; $content .= '<p>You can include text, links, images, HTML markup and even PHP code</p>'; $content .= '</div>'; ?>

Any ideas?
It doesn't seem to say in the instructions. It says you can add images - but not how!

Thanks

Phil

21 Aug 2009, 11:13 AM
#5
topdiscs avatar

topdiscs

New Zenner

Join Date:
Aug 2009
Posts:
4
Plugin Contributions:
0

Re: Trying to add a image to a sidebox

Sorted it!

Thanks for your help.

21 Aug 2009, 11:14 AM
#6
stevesh avatar

stevesh

Black Belt

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

Re: Trying to add a image to a sidebox

You can put your HTML code calling your images in either of those places (<img src="path to your image">) with an <a href .. > if you want it clickable.