Guest Posted June 19, 2003 Posted June 19, 2003 I need to have 2 separate images---1 for the main page/category listings and 1 for the "click to enlarge". I tried installing the Small,Medium,Large contribution but it errored out. Any one know of a contribution that will work on my version of osc? Thanks for the help!
Cyz Posted June 19, 2003 Posted June 19, 2003 the contribution mopic's should do exactly what you need it allows you to input upto 6 images with both a thumbnail and a full size for click to enlarge
Guest Posted June 19, 2003 Posted June 19, 2003 The image module you mentioned should work OK for 2.2 ms1. I used a different solution at first which works as well, try searching for enlarge image problems on this forum, the solution by Richard Lyman is simple. Recently I decided to bite the bullet and dive into the mysql database and set up the three image version you mentioned and as I've said I did get it to work although I then hacked a few lines out here and there ro make it a two image module i.e. thumbnail and large. Save you site and datebase and go for it. It's so much simpler to select images from admin to upload. :D
Guest Posted June 19, 2003 Posted June 19, 2003 I've tried the Small.Medium,Large - Big Image - and mopics...can't get any of them to work. At this point it's obvious I'm doing something wrong. I was able to install New_Attributes_v4b and it works great. I really don't know what I'm doing so unless the instructions are step by step in clear English, I'm bound to screw it up. I couldn't find anything by Richard Lyman...do you have the name of the contribution?
Guest Posted June 19, 2003 Posted June 19, 2003 Found it! Try this for a simple solution you will have to create a folder and call it big_images and upload your large images to this folder on your server. Re: Enlarge Image problems Author: Richard Lyman Date: 04-13-02 18:24 i haven't done the 'big image' mod myself. what i did do as an 'interium' fix for myself. (simply because i'm trying to keep up with snapshots, and the cvs doesn't have big image yet, (i'm not using cvs <G>, i do database change checks by hand, and overlay the snapshots, i've put a configure.php in catalog/includes/local for most of the stuff i need, and do minimal patchwork to the remainder (which this would be). create directory catalog/big_images make sure permissions are correct i suggest copying your existing catalog/images dir contents to catalog/big_images directory add define('DIR_WS_BIG_IMAGES', 'big_images/'); to catalog/includes/local/configure.php mod catalog/popup_image.php change <?php echo tep_image(DIR_WS_IMAGES . $products_... to <?php echo tep_image(DIR_WS_BIG_IMAGES . $products_... once again, YOU MUST have an image for each item, large or small <G> Hope this helps. :P
Guest Posted June 19, 2003 Posted June 19, 2003 I followed the steps but the enlarged view image is blank now. There were 2 things I did differently. 1. I do not have a configure.php in my catalog/includes/local so I just modified the configure.php in catalog/includes 2. I did not copy my entire catalog/images to catalog/big_images I did upload one image from catalog/images to catalog/big_images on the product I was testing. This should have at least pop-up the same image in product view. P.S. I set the permissions on catalog/big_images to 644...is that right? Thank you for helping me!!
Guest Posted June 19, 2003 Posted June 19, 2003 Just quickly.. I'm on the phone. The image name in your big_images folder must have the same name as the thumbnail in your images folder i.e, toy.gif...then in big_images............toy.gif (but the big image) I'll recap latter when i'm not so busy.
Guest Posted June 19, 2003 Posted June 19, 2003 Yeah I made sure to use the exact same file name. I copied all of my product images from catalog/images into catalog/big_images hoping it was a critical step that I tried to bypass but that didn't fix it. I changed define('DIR_WS_BIG_IMAGES', 'big_images/'); to define('DIR_WS_BIG_IMAGES', 'images/'); and it works. If I code it back to 'big_images/' it shows blank again.
Guest Posted June 19, 2003 Posted June 19, 2003 Hmmm if you got it working did you have a big image to display or was it just displaying the thumbnail but from the big_image folder.
Guest Posted June 19, 2003 Posted June 19, 2003 It won't show anything from the /big_images folder...if I point it to that folder the pop-up is blank. If I point it to /images it will pop-up the same file in the product view since it's calling for the same file. It's not making sense to me why it won't grab the file from /big_images.
Guest Posted June 19, 2003 Posted June 19, 2003 It must be the same file type i.e. toy.gif....then in the big image folder toy.gif(but this image will be the bigger image.
Guest Posted June 19, 2003 Posted June 19, 2003 I think I figured it out...it's the file permissions. I had it set to 744 which allowed Group/Other to Read only. By chmod those to read and execute(755), it works. Will this permission setting allow for any security issues?
Guest Posted June 19, 2003 Posted June 19, 2003 Cool glad you got it working as for allowing people to access your image folder I personaly don't see its a big deal. But if your worried then keep asking someone will point you in the right direction.
Guest Posted June 19, 2003 Posted June 19, 2003 Thank you very much for pointing me to this mod! My product images were blurry from the resizing using one image for both..this works great for my needs.
Guest Posted June 20, 2003 Posted June 20, 2003 Glad I could feed something back into the project I'm not a tech head but sometimes you don't have to be. Good Luck. :D PS. If you get goeing checkout the banner add thingy it's good for small e shops to exchange adds.
mdfst13 Posted June 20, 2003 Posted June 20, 2003 I think I figured it out...it's the file permissions. I had it set to 744 which allowed Group/Other to Read only. By chmod those to read and execute(755), it works. Will this permission setting allow for any security issues?The execute bit on a directory allows one to use the directory in paths and list the contents. It is necessary if you want to use the contents of the directory for anything. Setting it is a security risk in the same way that turning your computer on is a security risk. Yes, a turned off computer is very secure...but not very useful. In general, there is no reason to have a 1 (eXecute), 2 (Write), 4 (Read), or 6 (rw) in directory permissions. 0 (none), 5 (rx), and 7 (all) are the relevant settings. If you want increased security, you might be able to get it with 750. However, that depends on the settings for Apache (if Apache runs as the same group or user that owns the directory, it will work; otherwise, it won't). In a perfect world, I would run Apache as user apache of group apache and mask all file permissions to 640 and alll directory permissions to 750. All files and directories would be owned by an editor account and have group set to apache. Thus, the editor account would be able to write to them, and Apache would be able to read them. Unfortunately, many run in circumstances that don't allow these choices. Good luck, Matt I love deadlines. I like the whooshing sound they make as they fly by. ---Douglas Adams
mdfst13 Posted June 20, 2003 Posted June 20, 2003 My error, the .php files would need to be 650. I was thinking that it was using them like .html files, but apparently it is supposed to check for execute rights. 750 is still correct with directories. --Matt I love deadlines. I like the whooshing sound they make as they fly by. ---Douglas Adams
Recommended Posts
Archived
This topic is now archived and is closed to further replies.