vtiger Forum Index vtiger
The Honest Open Source CRM
 

Quick fix for image size problem in Products/Inventory
Click here to go to the original topic

 
       vtiger Forum Index -> Code Contributions - 5.0.2
Previous topic :: Next topic  
Author Message
babygekko



Joined: 21 Sep 2006
Posts: 1
Location: Kuta, Bali, Indonesia

Posted: Thu Sep 21, 2006 4:31 am    Post subject: Quick fix for image size problem in Products/Inventory  

Hi,
Did you ever notice that the image does not size properly according to the image specs when you view a single image in the Inventory/Products module? It's just set to 450 (width) and 300 (length) Here's the fix in file /include/utils/DetailViewUtils.php:

Start from line 451:
================================

$image_lists .=implode(',',$images).');</script><script language="JavaScript" type="text/javascript" src="modules/Products/Productsslide.js"></script><script language="JavaScript" type="text/javascript">Carousel();</script>';
$label_fld[] =$image_lists;
}elseif(count($image_array)==1)
{ // PRANA begin fix
$pranaimg = $imagepath_array[0].$image_id_array[0]."_".$image_array[0];
getimagesize ($pranaimg, $prana_image_info);

$label_fld[] ='<img src="'.$pranaimg.'" border="0" '.$prana_image_info[3].'>';
}else
{
$label_fld[] ='';
}
Back to top  
philip



Joined: 25 Aug 2004
Posts: 297

Posted: Mon Sep 25, 2006 7:53 am    Post subject: Re: Quick fix for image size problem in Products/Inventory  

Hi,

In the above syntax the variable $prana_image_info has not been or assinged but used in the function. Have you missed any code/syntax?

Philip
Back to top  
 
       vtiger Forum Index -> Code Contributions - 5.0.2
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.15 © 2001, 2002 phpBB Group