Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

custom images and ssl


Guest

Recommended Posts

using a shared ssl certificate... i cannot link to images as i currently do in the header (/images/bla.gif)

 

how can i incorperate the DIR_WS_IMAGES into any images i have added to the site that are not stock oscommerce or work with any modules?

Link to comment
Share on other sites

using a shared ssl certificate... i cannot link to images as i currently do in the header (/images/bla.gif)

 

how can i incorperate the DIR_WS_IMAGES into any images i have added to the site that are not stock oscommerce or work with any modules?

 

I use shared SSL all the time for my images ... my own images are all in a separate folder so I can easily find them (used for design), and links look like this:

 

tep_image(DIR_WS_IMAGES . 'custom/monika.jpg', 'Monika', BOX_WIDTH, '')

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

You want '01.jpg'

 

It could be that your host is set up in a way that the $REQUEST_TYPE variable does not get properly set to 'SSL' in application_top.php. Just make sure that your HTTPS_SERVER and DIR_WS_HTTPS_CATALOG are defined properly.

Link to comment
Share on other sites

would requesting the wrong image url serve a parse error though?

 

i have no problems with a regular ssl on this host (different site)

 

this is my first time using shared ssl

Link to comment
Share on other sites

am i doing this right? i keep getting a parse error.

 

<? php tep_image(DIR_WS_IMAGES . '/images/01.jpg', 'img', 750, '23') ?>

I think 750 should be '750' ??

Link to comment
Share on other sites

that's the width of the image, and 23 is the height

 

you need a semicolon after the tep_image function is called and before the php is closed.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

thank you :) that worked

 

 

how can i make an image a td background using DIR_WS?

 

presently, it's <TD BACKGROUND="/images/spacer.gif" WIDTH=114 HEIGHT=1 ALT=""></TD>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...