Actually this code I posted on the other thread should do the same, it puts uncropped images into a 150x150 square.
`if (getFullWidth() === getFullHeight() OR getFullWidth() > getFullHeight()) {
printCustomSizedImage(getImageTitle(), null, 150, null);
} else {
printCustomSizedImage(getImageTitle(), null, null , 150);
}`
Just use this within the next_image() loop on the album.php of your theme. No need to hack core files, which we don't recommend since you have to do it all again with every update.
BTW, this functionality will go into zenphoto in the future anyway. (probably not 1.1.7 which is due in a few days, but the following one).