Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

withlovenana

Archived
  • Posts

    7
  • Joined

  • Last visited

Everything posted by withlovenana

  1. I don't know how you all are getting this to work. I have tried 3 times on a frest install and getting this error Fatal error: Call to undefined function tep_hide_session_id() in /home/withlove/public_html/catalog3/admin/index.php on line 54 on admin page under adminstaror tab that is now says"BOX_CONFIGURATION_ADMINISTRATORS" when I click on additional images tab now page shows this error: The requested URL /catalog3/admin/FILENAME_LOGIN was not found on this server. I really need this install. We have 2 pictures for each product and we need the popup for each. I followed the instructions just as were included in v2.0.1. new install of osc rc2a. running php 5.2.5 register globals on. Would appreciate any advice. Spent way too much time on this to get no where. Thanks!
  2. I tried to install this contribution and got to the part where you are to replace the tep_image function code in the catalog/includes/functions/html_output.php file. When I replace my code with the supplied code as seen here: // "On the Fly" Auto Thumbnailer using GD Library, servercaching and browsercaching // Scales product images dynamically, resulting in smaller file sizes, and keeps // proper image ratio. Used in conjunction with product_thumb.php t/n generator. function tep_image($src, $alt = '', $width = '', $height = '', $params = '') { // if no file exists display the 'no image' file if (!is_file($src)) { $src = "images/no_image.jpg"; } // Set default image variable and code $image = '<img src="' . $src . '"'; // Don't calculate if the image is set to a "%" width if (strstr($width,'%') == false || strstr($height,'%') == false) { $dont_calculate = 0; } else { $dont_calculate = 1; } // Dont calculate if a pixel image is being passed (hope you dont have pixels for sale) if (!strstr($image, 'pixel')) { $dont_calculate = 0; } else { $dont_calculate = 1; } // Do we calculate the image size? if (CONFIG_CALCULATE_IMAGE_SIZE && !$dont_calculate) { // Get the image's information if ($image_size = @getimagesize($src)) { $ratio = $image_size[1] / $image_size[0]; // Set the width and height to the proper ratio if (!$width && $height) { $ratio = $height / $image_size[1]; $width = intval($image_size[0] * $ratio); } elseif ($width && !$height) { $ratio = $width / $image_size[0]; $height = intval($image_size[1] * $ratio); } elseif (!$width && !$height) { $width = $image_size[0]; $height = $image_size[1]; } // Scale the image if not the original size if ($image_size[0] != $width || $image_size[1] != $height) { $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } else { $height = intval($width * $ratio); } $image = '<img src="product_thumb.php?img=' . $src . '&w=' . tep_output_string($width) . '&h=' . tep_output_string($height) . '"'; } } elseif (IMAGE_REQUIRED == 'false') { return ''; } } // Add remaining image parameters if they exist if ($width) { $image .= ' width="' . tep_output_string($width) . '"'; } if ($height) { $image .= ' height="' . 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; } When I tried to view my catalog, I get a blank screen. What have I don't wrong?
×
×
  • Create New...