Quick question kinda noobish, in the manual edits, the intructions for "catalog/includes/functions/html_output.php" read:
FIND function tep_image and RENAME IT function tep_image_original
AFTER this function, ADD:
// START oscThumb
// If you want to call the original function, you can call tep_image_original or call this one with $original=true.
function tep_image($src, $alt = '', $width = '', $height = '', $params = '', $original = false, $thumbnail_type = 0) {
global $oscthumb;
// We are asked to return the result of the original function
if ($original || $oscthumb->enabled==false) {
return tep_image_original ($src, $alt, $width, $height, $params);
}
$oscthumb->set_type ($src, $width, $height, $thumbnail_type); // Detect the type of image we are currently processing
if ($oscthumb->set_size ($src, $width, $height)==false) return false; // Choose the displayed width and height of the image, and if display something
$image = $oscthumb->process($src); // Returns the beginning of the image tag, like <img src="oscthumb.php?src=... or <img src="images/logo.gif"
// Add remaining image parameters if they exist
if ($width) {
$image .= ' w="' . tep_output_string($width) . '"';
}
if ($height) {
$image .= ' h="' . tep_output_string($height) . '"';
}
if (tep_not_null($params)) $image .= ' ' . $params;
$image .= ' border="0" alt="' . tep_output_string($alt) . '"';
if (tep_not_null($alt)) {
$image .= ' title="' . tep_output_string($alt) . '"';
}
$image .= '>';
return $image;
}
// END oscThumb
My first question is am I suppose to change every instance of tep_image to tep_image_original in the file?
Second Question it says after tep_image add the code above after, but the placement in your modified files is different. Where should I put this? I am editing it maunually becasue the section of code where the above is located in your modified files is slightly modified.