Jump to content
Sign in to follow this  
fuckoffshirts

Content Blank, after editing html_output.php

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×