If you get a error when calling the image directly in the browser like this:
--------------------------------------------------------------------------------
http://www.yourname.com/components/com_virtuemart/show_image_in_imgtag.php?filename=yourimage.jpg--------------------------------------------------------------------------------
And get this error:
--------------------------------------------------------------------------------
<b>Warning</b>: readfile() has been disabled for security reasons in <b>/home/yoursite/public_html/components/com_virtuemart/show_image_in_imgtag.php</b> on line <b>155</b><br />
--------------------------------------------------------------------------------
You can ad the function to the named files above like this (just above the first readfile call):
---------------------------------
function rpl_readfile($file){
$handle=@fopen($file,"r");
echo @fread($handle,filesize($file));
@fclose($handle);
}
------------------------
and then change ALL the readfile cals in rpl_readfile like this:
-----------------------------
if( file_exists( $fileout ) ) {
/* We already have a resized image
* So send the file to the browser */
switch(strtolower($ext))
{
case ".gif":
header ("Content-type: image/gif");
rpl_readfile($fileout);
break;
case ".jpg":
header ("Content-type: image/jpeg");
rpl_readfile($fileout);
break;
case ".png":
header ("Content-type: image/png");
rpl_readfile($fileout);
break;
}
}
-------------------
If you do this in the other mentioned files: (for vm 1.1 don't know if there are more in 1.13)
/components/com_virtuemart/fetchscript.php
/components/com_virtuemart/show_image_in_imgtag.php
/administrator/components/com_virtuemart/classes/shipping/minixml/classes/doc.inc.php
You can solve the problems not showing tumpnail images in browse pages and a lot of javascripts erros.... on other pages....