Jump to content


Stop Resizing Images in Reviews Module


  • You cannot reply to this topic
No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 15 November 2004 - 09:22 PM

For some reason the MKportal reviews module in version 1.1 resizes all uploaded images to 400 pixels wide. To stop resizing of images in the Reviews module make the following edits. There are 2 occurrences of this code that you will need to change.


FIND (in /mkportal/modules/reviews/index.php)
$mklib->CreateImage(400,$mklib->sitepath.$mklib->reviews_dir.$image, $mklib->sitepath.$mklib->reviews_dir.$thumb);

REPLACE WITH:
//$mklib->CreateImage(400,$mklib->sitepath.$mklib->reviews_dir.$image, $mklib->sitepath.$mklib->reviews_dir.$thumb);



$mklib->CreateImage($mklib->sitepath.$mklib->reviews_dir.$image, $mklib->sitepath.$mklib->reviews_dir.$thumb);

I'm assuming that this "feature" was intended to be a max width limit instead of resizing all uploads but for now this is the quick fix.


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users