surfalot Posted May 1, 2007 Author Share Posted May 1, 2007 I gave up on the lightbox (which is a wonderful mod - and I will probably try again after I do some speed optimizing) so I went back to the last mod uploaded by Surfalot. Does anyone know of a way to add a css border to all product pictures including the category and product listings? I have done a google search on the osc forums, and read the posts, but I do not want to make 'unsanctioned' changes. And I am sure that someone has done this with morepics. There isn't an easy way. You can add this to your stylesheet, but it's real generic and may affect other images. TD.smallText img { border: 1px solid #999999; } The best way is to add a class name to the image places you wish and define a new style for that specifically. hehe, 'unsanctioned'? You can make any changes you wish to the GNU code posted in osC contributions. And you can post your changes (with a new version number) back to the contribution if you wish (except for Wolfens Featured Sets because Wolfens is a trademark company name, and we won't go there here). But it will be up to you to support any new contrib for others. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 3, 2007 Share Posted May 3, 2007 where on earth do i limit the width / height of the popup images? Quote Link to comment Share on other sites More sharing options...
surfalot Posted May 3, 2007 Author Share Posted May 3, 2007 where on earth do i limit the width / height of the popup images? it would be approximately where you uploaded your code if you are using my latest version. :D The code is built into the popup_image.php file. just uncomment it. change /* // // for use if you want to define a maximum width and height for the large popup images. // to // // for use if you want to define a maximum width and height for the large popup images. // and remove the following */ // // to use the above code, you must remove the next two lines. // $img = DIR_WS_IMAGES . $insert; echo '<tr><td align="center"><img src="' . $img . '"></td>'; Quote Link to comment Share on other sites More sharing options...
Guest Posted May 4, 2007 Share Posted May 4, 2007 damn, sadly i used v2 listed there with the lightbox css thing :( any ideas how do do it with it? i can change it to 1.3 as client has seen v2 and loves the effect :( Quote Link to comment Share on other sites More sharing options...
surfalot Posted May 4, 2007 Author Share Posted May 4, 2007 damn, sadly i used v2 listed there with the lightbox css thing :( any ideas how do do it with it? i can change it to 1.3 as client has seen v2 and loves the effect :( sorry, I don't. I've not payed with the lightbox contrib. you would find more help for that in a support topic focusing on the lightbox contrib. If you can't find that, PM matrix_france for help since they didn't include a support topic link with the contribution post. although there is nothing improper done, I wouldn't encourage folks to combine contributions and repost to an individual contributions page. And particularly when they don't stick around to support it. >_< Quote Link to comment Share on other sites More sharing options...
acinom Posted May 7, 2007 Share Posted May 7, 2007 Hi there, Fantastic contribution! I love it, so thankyou for all the work that has been done! This was the last thing I installed on my site. So my question to anyone and everyone who has mopics6 installed.... Do you have it running successfully with the Cross Sell (X SELL) Version 2.3 (or any version really) contrib.? As I can't see it now at catalog end, but it works fine in admin. Would love to have both working together!! :) Thanks, Monica Quote Link to comment Share on other sites More sharing options...
acinom Posted May 10, 2007 Share Posted May 10, 2007 The answer is yes! You can have both above contributions working harmoniously together. I looked over my xsell files again and found code that was missing. Same story as usual, eh? Monica Quote Link to comment Share on other sites More sharing options...
KPGroup Posted May 22, 2007 Share Posted May 22, 2007 Hello, First of all thank you so much to everybody who worked on this contribution. It is a superb addition to OSC. It is working almost flawlessly for me. I am sure we will be able to resolve the small problem I encountered. INFO: I have installed More Pics 6 v1.2 I have made the quickfix for thumbnails RECENT CHANGES: I have changed the DOCTYPE declaration of all my php files recently because I was having a problem with my left column in Firefox. This problem is now fixed. (more details here) PROBLEM: When using Firefox (2.0.0.3, Mac OSX), if I click on a small product image, the popup window pops up but it is blank. The large image is not loaded. If I close the popup window and re-try, the large image loads properly. This happens only the first time I click on a small image for a specific product. If I go to another page and return to this product, the image will load on the first click. If I go to another product, same problem again. I don't know where to look. It seems to be related to me changing the DOCTYPE declaration. Let me know if you have any idea. Thanks in advance :thumbsup: Have a great day! Karim Quote Link to comment Share on other sites More sharing options...
surfalot Posted May 23, 2007 Author Share Posted May 23, 2007 Hello, First of all thank you so much to everybody who worked on this contribution. It is a superb addition to OSC. It is working almost flawlessly for me. I am sure we will be able to resolve the small problem I encountered. INFO: I have installed More Pics 6 v1.2 I have made the quickfix for thumbnails RECENT CHANGES: I have changed the DOCTYPE declaration of all my php files recently because I was having a problem with my left column in Firefox. This problem is now fixed. (more details here) PROBLEM: When using Firefox (2.0.0.3, Mac OSX), if I click on a small product image, the popup window pops up but it is blank. The large image is not loaded. If I close the popup window and re-try, the large image loads properly. This happens only the first time I click on a small image for a specific product. If I go to another page and return to this product, the image will load on the first click. If I go to another product, same problem again. I don't know where to look. It seems to be related to me changing the DOCTYPE declaration. Let me know if you have any idea. Thanks in advance :thumbsup: Have a great day! Karim try the validator http://validator.w3.org/ may give you clues to what is wrong. Quote Link to comment Share on other sites More sharing options...
KPGroup Posted May 23, 2007 Share Posted May 23, 2007 try the validator http://validator.w3.org/ may give you clues to what is wrong. thank you, I tried and I get: Error Line 7 column 29: required attribute "TYPE" not specified. <script language="javascript"><!-- The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>. and Error Line 38 column 47: required attribute "ALT" not specified. <tr><td align="center"><img src="images/"></td> </tr> Any idea what the javascript "type" is supposed to be? Thanks again for the lead :thumbsup: Quote Link to comment Share on other sites More sharing options...
KPGroup Posted May 23, 2007 Share Posted May 23, 2007 I changed this : <script language="javascript"> to this: <script language="javascript" type="text/javascript"> It fixed one validation error. But the image still doesn't load. when viewing the source of popup_image.php, the image name seems to be there even if I can't see the image: <tr><td align="center"><img src="images/Dyno1-ECISE46323.jpg"></td> </tr> After reloading, the source is still the same but the image is displayed. The only error is a missing alt for the image. Quote Link to comment Share on other sites More sharing options...
KPGroup Posted May 25, 2007 Share Posted May 25, 2007 I am out of ideas. Anybody? Quote Link to comment Share on other sites More sharing options...
surfalot Posted May 29, 2007 Author Share Posted May 29, 2007 I am out of ideas. Anybody? the next step would be to correct that error. find in popup_image.php $img = DIR_WS_IMAGES . $insert; echo '<tr><td align="center"><img src="' . $img . '"></td>'; change to echo '<tr><td align="center">' . tep_image($img, '', '', '', 'border="0"') . '</td>'; Quote Link to comment Share on other sites More sharing options...
KPGroup Posted May 31, 2007 Share Posted May 31, 2007 (edited) the next step would be to correct that error. find in popup_image.php $img = DIR_WS_IMAGES . $insert; echo '<tr><td align="center"><img src="' . $img . '"></td>'; change to echo '<tr><td align="center">' . tep_image($img, '', '', '', 'border="0"') . '</td>'; I made the change and I still get the same problem unfortunately :'( Edited May 31, 2007 by KPGroup Quote Link to comment Share on other sites More sharing options...
Guest Posted June 14, 2007 Share Posted June 14, 2007 Hi Need Some Help Trying to install Categories and Products Images Folder Tree. Got it installed but when i try and add an image the folder is created but the image is not uploaded to the new folder. Any one else got this to work? Thanks Rob Quote Link to comment Share on other sites More sharing options...
KPGroup Posted June 15, 2007 Share Posted June 15, 2007 I made the change and I still get the same problem unfortunately :'( Nobody? Quote Link to comment Share on other sites More sharing options...
ColorsbyLiza Posted June 18, 2007 Share Posted June 18, 2007 een trying to work this out for the past 3 days. :'( I recently installed (first) "more pics V1.3b" and since I got errors I then installed "more pics V1.2c". Both versions gave me the same outcome. The issues are as follows... 1. MYSQL gave me this error: Error SQL query: ALTER TABLE `products` ADD `products_subimage1` VARCHAR( 64 ) AFTER `products_image` ; MySQL said: Documentation #1060 - Duplicate column name 'products_subimage1' 2. The Catalog page shows the thumbnail image, but when I click on it I go to product_info.php page with the product desription, no image appering here. But when I click the "review button" on the bottom, I get the thumbnail image and the "click to enlarge" button which opens the popup window with the arrows and images. :'( 3. In the admin area there is a "More Pics" tab, but no pics displayed. 4. The "remove image" function in admin, product update doesnt work. Please,please,please....I need your help. :'( Quote Link to comment Share on other sites More sharing options...
rrrhythm Posted June 21, 2007 Share Posted June 21, 2007 ... When using Firefox (2.0.0.3, Mac OSX), if I click on a small product image, the popup window pops up but it is blank. The large image is not loaded. If I close the popup window and re-try, the large image loads properly. This happens only the first time I click on a small image for a specific product. If I go to another page and return to this product, the image will load on the first click. If I go to another product, same problem again.... this is somehow related to whether the image is cached, because you can re-create the problem by clearing your cache. i just solved this exact same problem on my site. the trick was to get rid of the width and height assignment in the javasript function, which lets them be set automatically. in product_info.php, find: <script language="javascript"><!--function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150') } //--></script> and delete the bit in red. if all your big images happen to be the same size, you could replace the '100' with the actual pixel height/width of your big images. cheers, rj Quote Link to comment Share on other sites More sharing options...
KPGroup Posted June 21, 2007 Share Posted June 21, 2007 It works!!! You're my hero. ;) I replaced the 100 with my big images' dimensions. Thanks a lot. I had almost given up at this point. :thumbsup: this is somehow related to whether the image is cached, because you can re-create the problem by clearing your cache. i just solved this exact same problem on my site. the trick was to get rid of the width and height assignment in the javasript function, which lets them be set automatically. in product_info.php, find: and delete the bit in red. if all your big images happen to be the same size, you could replace the '100' with the actual pixel height/width of your big images. cheers, rj Quote Link to comment Share on other sites More sharing options...
Ackis Posted June 23, 2007 Share Posted June 23, 2007 in phpMyAdmin, click on the little "SQL" link image. Copy all the text from the database_additions.txt file into the Run SQL query window, click go. that's all there is to that. I'm so sorry for my unknowledge in this but. There are 2 SQL images.... and I don't have the "go" button. :'( I don't know what to do? :blink: All I know is that it doesn't work yet. Best regards Jessica Quote Jessica Fuchs Link to comment Share on other sites More sharing options...
racespec Posted June 23, 2007 Share Posted June 23, 2007 Hey Guys Has anyone used the morepics contribution with SPPC, i have used, and the thumbnails no longer show up on the product_info.php page. However, when i click the main image, i can still scroll to the next image Has anyone experienced this? Thanks Tarek RACESPEC Quote Link to comment Share on other sites More sharing options...
Ackis Posted June 26, 2007 Share Posted June 26, 2007 I'm so sorry for my unknowledge in this but. There are 2 SQL images.... and I don't have the "go" button. :'( I don't know what to do? :blink: All I know is that it doesn't work yet. Best regards Jessica Ok, I've fixed this so don't bather. :) Have a nice day! Quote Jessica Fuchs Link to comment Share on other sites More sharing options...
Ackis Posted June 26, 2007 Share Posted June 26, 2007 Could you help me please? I don't know what I've done wrong. :huh: I have STS installed and now MorePics as well. I do get all the pictures on the product info page BUT it doesn't matter which image I click at I still get the first one in the pop-up window!! WHY?? And why doesn't the "back and next" buttons show? Do any of you have a clue what I may have done wrong? Take a look and you'll see what I mean. Just click any image at the page http://rcmaffian.se/oscommerce_st/catalog/...;products_id=23 Please anyone?? Best reards Jessica :blink: Quote Jessica Fuchs Link to comment Share on other sites More sharing options...
surfalot Posted June 27, 2007 Author Share Posted June 27, 2007 Nobody? I'm out of ideas. Looks like you'll have to do some debugging. Either remove items or add items from the page until you narrowed the problem down. Check your PHP error reporting and make sure errors are being displayed. Quote Link to comment Share on other sites More sharing options...
ColorsbyLiza Posted June 27, 2007 Share Posted June 27, 2007 Hello! Just wanted to thank you all for this great contribution. :thumbsup: Also a special mention to Spax/Peter, who helped me through completing this wonderful addition. :D Keep it up! Liza ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.