Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Content Blank, after editing html_output.php


fuckoffshirts

Recommended Posts

uploaded js folder

add lightbox css to my css

 

copied over files from admin to admin

 

modified product_info

 

and all is good... until I edit html_output

 

I cut and pasted

function thumbimage ($image, $x, $y, $aspectratio, $resize, $cachedir){ ........ } to the end of my html_output, upload to /functions, thumbnail is large light box script works and site still functions.

 

comment out if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) { .....} upload new file to /functions, thumbnail is large light box script works and site still functions.

 

then I cut and paste:

 

if ($image_size = @getimagesize($src)) {

if ((CONFIG_CALCULATE_IMAGE_SIZE == 'true' && $src != DIR_WS_IMAGES . 'pixel_black.gif' && $src != DIR_WS_IMAGES . 'pixel_trans.gif' && $src != DIR_WS_IMAGES . 'pixel_silver.gif' )) {

if ( ($width) || ($height) ) {

if ( $width=="100%" ) {

$width = $image_size[0];

} elseif ( $height=="100%" ) {

$height = $image_size[1];

} elseif ( $width==0 ) {

unset($width);

} elseif ( $height==0 ) {

unset($height);

}

$src=thumbimage(DIR_FS_CATALOG . '/' .$src, $width, $height, 1, 1, DIR_FS_CATALOG . '/' . DIR_WS_IMAGES . 'imagecache');

if ((($image_size[1]/$height) > ($image_size[0]/$width) ) && $height>0){

$width=ceil(($image_size[0]/$image_size[1])* $height);

} elseif ($width>0) {

$height=ceil($width/($image_size[0]/$image_size[1]));

}

}

}

} elseif (IMAGE_REQUIRED == 'false') {

return '';

}

 

and I loose content, I still have navigation and header but 0 content, any suggestion would be appriciated.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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