View Full Version : Cool Flash Carousel Menu

08-09-2008, 02:01 AM
Great contrib and special thanks to the creator
I didnt like the fact that the new thumbnail images had to be created knowing that oscommerce already had its own thumbs created, so I tampered with the code a bit. I have only uploaded a txt file describing how to install the code in order to achive this in the original (or any other version) of kampanya.php.

The installation code is:
find in kampanya.php line

$new_image = $specials['products_image'].thumb_kampanya('images/'.$specials['products_image'], $width, $height,false);

and replace it with

$src = DIR_WS_IMAGES .$specials['products_image'];

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

$new_image = str_replace('images/','',$src);

More... (http://addons.oscommerce.com/info/6123)