Guest Posted August 2, 2003 Posted August 2, 2003 How can I either a) remove it totally or B) have the image come up a truly larger size (I do have a /full and a /thumbs directory on my server)
xxGeek Posted August 3, 2003 Posted August 3, 2003 try here http://www.oscommerce.com/forums/viewtopic.php?t=25733 or here as mentioned in the previous post http://www.oscommerce.com/forums/viewtopic.php?t=41355 The more you do, the more you learn
Guest Posted August 3, 2003 Posted August 3, 2003 Thanks I'm now twice as confused :) Is there a SIMPLE way to remove 'click to enlarge' from showing up? I don't need it at all, since I modified the "webpage" to now have a customer click and it brings up the full-sized image.
JH Posted August 3, 2003 Posted August 3, 2003 The script that performs the “click to enlarge” function is "popup_image.php" found in the catalog directory. It is actually PHP code along with some JavaScript. You can edit that script to change how the dimensions of your popups are calculated. You could backup the original "popup_image.php" script (always nice to have a way to restore original functionality) and replace it with your code using the same script name. However, the supplied script plays within the bounds of the way osCommerce is designed and the changes you would need to make to the original script are minor. There is also support built in there for Netscape as well as IE. Your choice.
Guest Posted August 3, 2003 Posted August 3, 2003 Thank you, and thank you Must easier to understand now :)
Guest Posted August 3, 2003 Posted August 3, 2003 I tried, I really did -- but to me, it seems something already IS commented out, and I don't want to touch the file and break it "SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script>" isn't //--> a comment out in php?
Guest Posted August 3, 2003 Posted August 3, 2003 Commented it out, it still shows up NOW what did I do wrong? :( /* <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> */
Rumble Posted August 3, 2003 Posted August 3, 2003 Change /* <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> */ to..... <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?>'); I thought you had a superb programmer friend who could fix anything if you screeched 'Help help help!!' :D Reddy to Rumble Thank you osCommerce and all who Contribute to her!
Rumble Posted August 3, 2003 Posted August 3, 2003 You dont need '); at the end :D should look like <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> Reddy to Rumble Thank you osCommerce and all who Contribute to her!
Guest Posted August 3, 2003 Posted August 3, 2003 He's already got 9 emails from me since last night :(
Guest Posted August 3, 2003 Posted August 3, 2003 Guess it will now be 10, since I'm not quite sure what has to be changed. Thanks anyway :)
Rumble Posted August 3, 2003 Posted August 3, 2003 I showed you which code to change and what to :? Reddy to Rumble Thank you osCommerce and all who Contribute to her!
Guest Posted August 3, 2003 Posted August 3, 2003 I know you did, hon, but I'm still unsure, I got confused by your second message, since the ONLY thing I had added was /* and */. I *really* don't want to keep breaking scripts without knowing what I'm doing, it is very frustrating to not know what the heck I'm doing at all.
Rumble Posted August 3, 2003 Posted August 3, 2003 Ok sweetie, replace the whole of this....... /* <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> */ with <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> If it doesnt work just replace it back, no harm done :wink: Reddy to Rumble Thank you osCommerce and all who Contribute to her!
Guest Posted August 3, 2003 Posted August 3, 2003 Going to try *fingers crossed*. I did backup the file before I began tinkering with it, so if everything breaks, I can replace it. I am waaaaaaaaaaay too old to try to learn a new programming language :)
Guest Posted August 3, 2003 Posted August 3, 2003 Did what you said. Nothing is broken. "Click to enlarge" is still there when I go to any of my products :cry:
wizardsandwars Posted August 3, 2003 Posted August 3, 2003 Pam, without wanting to learn something new, why are you attempting to develope a website at all? Why not just hire a programmer to do it all for? When you come here, and ask for assistance, we provide answers on how to achomplish these modification as a developer. These changes we provided were *never* meant for somone that doesn't know how to program, and doesn't want to learn. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
Rumble Posted August 3, 2003 Posted August 3, 2003 Change <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> to.......... <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> Reddy to Rumble Thank you osCommerce and all who Contribute to her!
Guest Posted August 3, 2003 Posted August 3, 2003 With 93 domains and about 70 active websites, I'd say I know what I'm doing in everything but PHP. If I hired someone to do everything for me, I'd have 70-80 hours free each week all of a sudden with nothing to do :) I'll go back in my corner and not bother you, wizardsandwars, don't worry. Pam, without wanting to learn something new, why are you attempting to develope a website at all? Why not just hire a programmer to do it all for? When you come here, and ask for assistance, we provide answers on how to achomplish these modification as a developer. These changes we provided were *never* meant for somone that doesn't know how to program, and doesn't want to learn.
Guest Posted August 3, 2003 Posted August 3, 2003 Ok, I'll try that. Well, so far today I'm learning how to be frustrated yet not throw a monitor across the room. :D Did what you said, this is how the finished product ended up, yet "click to enlarge" still shows up on my webpages after refreshing. <tr> <td align="center" class="smallText"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </td> </tr>
Rumble Posted August 3, 2003 Posted August 3, 2003 Well i would have to look at the webpage first hand and possibly the product_info.php file too. Try clearing out your temporary internet folder out aswell. Reddy to Rumble Thank you osCommerce and all who Contribute to her!
Rumble Posted August 3, 2003 Posted August 3, 2003 Also, make sure you dont have this anywhere in your product_info.php file TEXT_CLICK_TO_ENLARGE Reddy to Rumble Thank you osCommerce and all who Contribute to her!
wizardsandwars Posted August 3, 2003 Posted August 3, 2003 Actually, you're not bothering me at all. I come here because I enjoy helping others with OSCommerce. But there are a couple things that have bothered me about your posts. First, you ask for help with some contributions, and modifications. We gladly offer what we can. Then you repeatedly say that you do not like php, you have no desire to learn php, and you think that making changes to php is much too difficult. But you still need the modificaitons, and it doesn't appear that you are interested in hiring a developer. Well, lets see, what other options are there? Your posts by nature, imply that you would like us to do these things for you. While I'm all for lending a hnad, or pointing you in the right direction, I don't htink that this is a place to go to find someone to do work for you for free. You even became rude when I suggested that you do these modifications yourself. As if we *owe* you something. No, you're not bothering me. and I'm not worried. I'd just like to see you be a little more open minded about learning php, and making these modifications yourself. Yes you will break your cart time after time. Yes, it's a bit of a steep learning curve. But I think you'll find that with your experience, it wont be as hard to pick up as you might think now. Shoot, if you can keep all of htose nested tables, rows and columns straight, php should be a snap! ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.