Author Topic: show_image_in_imgtag.php fixes  (Read 18749 times)

Alejandro Kurczyn

  • Full Member
  • ***
  • Posts: 516
show_image_in_imgtag.php fixes
« on: November 07, 2006, 04:34:54 am »
I think I have found a bug on /components/com_virtuemart/show_image_in_imgtag.php :

It has a "hardcoded" height and width values using the VM defined variables, and this stops other modules from using this handy program.

To fix this, change the code as follows:

Code: [Select]
//  $fileout = IMAGEPATH."/product/resized/".$file."_".PSHOP_IMG_WIDTH."x".PSHOP_IMG_HEIGHT.$noimgif.$ext;
$fileout = IMAGEPATH."/product/resized/".$file."_".$newxsize."x".$newysize.$noimgif.$ext;

I have tried this and There is no apparent side effects.

If you have more fixes for this program, please post them in this topic.


  • Beginner
  • *
  • Posts: 12
Re: show_image_in_imgtag.php fixes
« Reply #1 on: July 09, 2009, 02:25:47 am »
Wish I new what to replace. I am having great difficulty with the show_image_in_imgtag.php file right now!!!


  • Beginner
  • *
  • Posts: 28
Re: show_image_in_imgtag.php fixes
« Reply #2 on: December 21, 2011, 21:24:38 pm »
You are unbelieavable!!! (both of you!) Excellent Hack!! it saved me tens of hours to fugure this out!!!!

You are most welcome for that!!!!

 ;D ;D ;D ;D :D :D :D :D