X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Easy dynamic thumbnail generation (https://forum.x-cart.com/showthread.php?t=22308)

efindlow 10-18-2008 08:41 PM

Re: Easy dynamic thumbnail generation
 
Quote:

Originally Posted by balinor
Right, that is incorrect. Try this:

### RĐ­ckgabe-Strings erstellen
if (empty($params['html'])) $_RETURN['img'] = '<img src="'.$_DST['file'].'" '.$params['html'].' '.$_DST['string'].' alt="" title="" />';
else $_RETURN['img'] = '<img src="'.$_DST['file'].'" '.$params['html'].' '.$_DST['string'].' />';

ohh perfect - thanks for this works great

nfc5382 03-01-2014 10:44 AM

Re: Easy dynamic thumbnail generation
 
Just noticed that my php log was filling up with errors related to this mod. Anyone else see the same?

[12-Feb-2014 19:54:30] PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /var/.../store/Smarty-2.6.9/plugins/function.thumb.php on line 298
[12-Feb-2014 19:54:30] PHP Warning: imagedestroy(): supplied argument is not a valid Image resource in /var/.../store/Smarty-2.6.9/plugins/function.thumb.php on line 403
[12-Feb-2014 19:54:30] PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /var/.../store/Smarty-2.6.9/plugins/function.thumb.php on line 298
[12-Feb-2014 19:54:30] PHP Warning: imagedestroy(): supplied argument is not a valid Image resource in /var/.../store/Smarty-2.6.9/plugins/function.thumb.php on line 403
[12-Feb-2014 19:54:31] PHP Warning: imagecopyresized(): supplied argument is not a valid Image resource in /var/.../store/Smarty-2.6.9/plugins/function.thumb.php on line 285


All times are GMT -8. The time now is 07:09 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.