Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Easy dynamic thumbnail generation

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #131  
Old 10-18-2008, 08:41 PM
 
efindlow efindlow is offline
 

Newbie
  
Join Date: May 2008
Posts: 2
 

Default 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
__________________
elana findlow
www.elfdesigns.com.au
version 4.1.10
Reply With Quote
  #132  
Old 03-01-2014, 10:44 AM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 477
 

Default 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
__________________
-----------------------
x-cart v4.7.6 [LIVE]
x-cart v4.0.18 [retired 2004-2016]
x-cart v3.5.13 [retired]
x-cart v3.4.14 [retired]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:01 PM.

   

 
X-Cart forums © 2001-2020