PDA

View Full Version : 'On the Fly' Auto Thumbnailer using GD Library



michael_s
04-21-2008, 10:21 AM
I found out today, that if you have the "Anti Robot Registration Validation 1.0 + images
" found at http://addons.oscommerce.com/info/1237 installed, then the validation image will not work, instead it will show the no image.gif

This can be fixed, but it does remove the default no image function.

I simply navigated to catalog/includes/functions/html_output.php under the new function introduced with "on the fly thumbnailer using GD library" called "the html image wrapper function" find:

if no file exists display the 'no image' file
if (!is_file($src)) {
$src = "images/no_image.jpg";
}

and change to:

// if no file exists display the 'no image' file
//if (!is_file($src)) {
//$src = "images/no_image.jpg";
//}

//above commented code breaks validation code when enabled!!

This is just a workaround that works for me, Im not a programmer of php, if anyone can fix this so it also works with the no image function too, then it will be great!



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