Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Can anyone please help with this step.

 

I am assuming that the full code to be replaced is between line 66 and 120:

 

  function tep_image($src, $alt = '', $width = '', $height = '', $params = '') {
$image = '<img src="' . $src . '" border="0" alt="' . $alt . '"';
if ($alt) {
  $image .= ' title=" ' . $alt . ' "';
}
if ($width) {
  $image .= ' width="' . $width . '"';
}
if ($height) {
  $image .= ' height="' . $height . '"';
}
if ($params) {
  $image .= ' ' . $params;
}
$image .= '>';

return $image;
 }

////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
 function tep_image_submit($image, $alt = '', $parameters = '') {
global $language;

$image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';

if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';

if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;

$image_submit .= '>';

return $image_submit;
 }

////
// Draw a 1 pixel black line
 function tep_black_line() {
return tep_image(DIR_WS_IMAGES . 'pixel_black.gif', '', '100%', '1');
 }

////
// Output a separator either through whitespace, or with an image
 function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') {
return tep_image(DIR_WS_IMAGES . $image, '', $width, $height);
 }

////
// Output a function button in the selected language
 function tep_image_button($image, $alt = '', $params = '') {
global $language;

return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $params);
 }

 

Is this correct? Or am i amending too much or too little code???

 

I seem to be having trouble with this contrib at this point

 

Many Thanks

D4

Posted

i just finished getting mine to work yesterday.

 

You should only replace:

 

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

$image = '<img src="' . $src . '" border="0" alt="' . $alt . '"';

if ($alt) {

$image .= ' title=" ' . $alt . ' "';

}

if ($width) {

$image .= ' width="' . $width . '"';

}

if ($height) {

$image .= ' height="' . $height . '"';

}

if ($params) {

$image .= ' ' . $params;

}

$image .= '>';

 

return $image;

}

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...