Zen Cart Logo
Forums / Addon Sideboxes / How can I add images to the blank-sidebox contribution?

How can I add images to the blank-sidebox contribution?

Locked

Views: 2,481

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
16 May 2008, 12:55 AM
#1
jour avatar

jour

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

How can I add images to the blank-sidebox contribution?

Can anyone please show me how to add images to the blank sidebox i.e. how to format code and where to store image etc.

Thank you!
Phil.

16 May 2008, 1:06 AM
#2
kobra avatar

kobra

Black Belt

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

Re: How can I add images to the blank-sidebox contribution?

Add standard html to the box - if image only

<a><img src="images/your_image.xxxf" alt="your_alt_text" width="??" height="??" /></a>

if you want a linkable image

<a href="address"><img src="images/your_image.xxx" alt="your_alt_text" width="??" height="??" /></a>
22 May 2008, 4:13 PM
#3
anniti avatar

anniti

New Zenner

Join Date:
May 2008
Posts:
33
Plugin Contributions:
0

Re: How can I add images to the blank-sidebox contribution?

Hi,
I instaled Blank Sidebox Mod v2.0.

The text shows up, but the images don't;
I did put them in :
-includes/languages/english/images
-templates/mytemplate/images
-templates/common/images
-templates/template_default/images

in the blank_sidebox_defines.php
<img src="../images/myimage.gif">
<img src="images/myimage.gif">

What goes wrong, where the imagesshould be stored.

Thanks very much for your help,
anna

22 May 2008, 5:10 PM
#4
kobra avatar

kobra

Black Belt

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

Re: How can I add images to the blank-sidebox contribution?

anniti,

Read the directions that accompany the module and my #2 post here

22 May 2008, 10:08 PM
#5
website_rob avatar

website_rob

Inactive

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

Re: How can I add images to the blank-sidebox contribution?

If you look at your Zen Cart directory structure you will see that "admin" is the first directory. Further down you will see directories for "images" & "includes".

The path you use needs to match if image is for your Template or for general use.

General use images: /images/yourimage.gif

Template images: /includes/templates/your_template/images/yourimage.gif

Note: in this case the path should always start with a forward slash.

Example

in the blank_sidebox_defines.php
<img src="/images/myimage.gif">
-or-
<img src="/includes/templates/your_template/images/myimage.gif">

23 May 2008, 6:45 AM
#6
anniti avatar

anniti

New Zenner

Join Date:
May 2008
Posts:
33
Plugin Contributions:
0

Re: How can I add images to the blank-sidebox contribution?

Hi W. Rob,
Thanks for your help.
I have ZenCart installed on a Wampserver and it worked when I put in the entire path - //localhost/mysite/includes/templates/mytemplate/images/myimage.gif
Regards, anna