dr_lucas Posted June 8, 2004 Share Posted June 8, 2004 I am using the resize contribution, and inserted 1 line to html_output.php, but it is hard coded (currently set to https), and I prefer to change it to tep, so it will work faster when I use http and not https: $image = '<img src="https://www.MyUrl.com/resize.php?image=http://www.MyUrl.com' . tep_output_string($src) . '&width=' . $width . '" border="0" alt="' . tep_output_string($alt) . '"'; I tried to change it like this, but it output the title twice instead of once, so I must be doing it wrong: $image = tep_image(DIR_WS_HTTP_CATALOG . 'resize.php?image=http://www.MyUrl.com' . tep_output_string($src) . '&width=' . $width . '" border="0" alt="' . tep_output_string($alt) . '"'); What is the the correct way to revise it? Quote Did I help you? Click "Like" or "Thanks"! It's free of charge. :)My contributions:Total Configuration (newly updated 07/2018, for both osC 2.2 and 2.3.4.1 BS Frozen CE)User Tracking with Admin 1.0 (newly updated 07/2018)FedEx - Web Services v9, FAQ System , Who's Online Enhancement, Order Editor, MoneyBookers IPN, Ship in Cart (MS2), Admin Products Paging, Margin Report v1.00, 2Checkout INS / IPN (Instant Notification System) for MS2.2, Visitor Web Stats, Time Zone Offset - Adjust to match your location, Category Meta Tags Link to comment Share on other sites More sharing options...
iveo Posted June 11, 2004 Share Posted June 11, 2004 (edited) I am using the resize contribution, and inserted 1 line to html_output.php, but it is hard coded (currently set to https), and I prefer to change it to tep, so it will work faster when I use http and not https: $image = '<img src="https://www.MyUrl.com/resize.php?image=http://www.MyUrl.com' . tep_output_string($src) . '&width=' . $width . '" border="0" alt="' . tep_output_string($alt) . '"'; I tried to change it like this, but it output the title twice instead of once, so I must be doing it wrong: $image = tep_image(DIR_WS_HTTP_CATALOG . 'resize.php?image=http://www.MyUrl.com' . tep_output_string($src) . '&width=' . $width . '" border="0" alt="' . tep_output_string($alt) . '"'); What is the the correct way to revise it? this is the function from the html_output.php: function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '', $res = 1, $addattribs = 1) so you see what you made wrong? so if you place an image with that function it looks like this: tep_image(>images adress< , >alt-text< , >width< , >height< , >parameters<) ;) Edited June 11, 2004 by iveo Quote Link to comment Share on other sites More sharing options...
dr_lucas Posted June 18, 2004 Author Share Posted June 18, 2004 Thanks you ;) Quote Did I help you? Click "Like" or "Thanks"! It's free of charge. :)My contributions:Total Configuration (newly updated 07/2018, for both osC 2.2 and 2.3.4.1 BS Frozen CE)User Tracking with Admin 1.0 (newly updated 07/2018)FedEx - Web Services v9, FAQ System , Who's Online Enhancement, Order Editor, MoneyBookers IPN, Ship in Cart (MS2), Admin Products Paging, Margin Report v1.00, 2Checkout INS / IPN (Instant Notification System) for MS2.2, Visitor Web Stats, Time Zone Offset - Adjust to match your location, Category Meta Tags Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.