Guest Posted December 17, 2005 Share Posted December 17, 2005 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 More sharing options...
♥Monika in Germany Posted December 17, 2005 Share Posted December 17, 2005 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 More sharing options...
Guest Posted December 18, 2005 Share Posted December 18, 2005 am i doing this right? i keep getting a parse error. <? php tep_image(DIR_WS_IMAGES . '/images/01.jpg', 'img', 750, '23') ?> Link to comment Share on other sites More sharing options...
stevel Posted December 18, 2005 Share Posted December 18, 2005 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. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Guest Posted December 18, 2005 Share Posted December 18, 2005 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 More sharing options...
Guest Posted December 18, 2005 Share Posted December 18, 2005 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 More sharing options...
Guest Posted December 18, 2005 Share Posted December 18, 2005 that's the width of the image, and 23 is the height Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted December 18, 2005 Share Posted December 18, 2005 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 More sharing options...
Guest Posted December 18, 2005 Share Posted December 18, 2005 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 More sharing options...
stevel Posted December 18, 2005 Share Posted December 18, 2005 <TD BACKGROUND="<?php echo DIR_WS_IMAGES . "spacer.gif"; ?> WIDTH=114 HEIGHT=1 ALT=""></TD> Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Guest Posted December 18, 2005 Share Posted December 18, 2005 thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.