Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

This contri looks familiair with image magic, so i want to use this one instead...But:

 

 

Fatal error: Call to undefined function tep_image() in C:\program_files\wamp\www\catalog\includes\header.php on line 67

 

So, that where the first tep_image() is used.

 

this function is in htm_output.php

 

 

original....

// The HTML image wrapper function

function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {

if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {

return false;

}

 

 

 

 

changed....

// The HTML image wrapper function

function tep_image_original($src, $alt = '', $width = '', $height = '', $parameters = '') {

if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {

return false;

}

 

// 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=true, $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);

}

 

 

 

 

 

Well it is not working, is the "original" function still used, why can't the program see the new tep_image function?

 

please advice.

 

Regards

Bas

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...