Jump to content

bobaliu

Members
  • Content count

    8
  • Joined

  • Last visited

Profile Information

  • Real Name
    Robert Liu
  1. Hi Nate, I changed my configuration from: /shop/images/ to images/ /shop/icons/ to icons/ That fixed my problem using your original configuration. Thanks for the great contribution! Bob
  2. Drewski - good work! That also fixed my problem. I'll say this is the best contribution I've used so far :P Bob
  3. Well, I found the problem, but I'm not sure how to fix it. This is what comes out of the tep_image function when trying to resize: http://p1auto.com/shop/product_thumb.php?i...jpg&w=150&h=120 This is what actually works: http://www.p1auto.com/shop/product_thumb.p...jpg&w=120&h=100 It looks like the directory being appended to the $src file is not correct (/shop/images/... vs. images/....) Anybody know how I can fix this? in product_info.php: tep_image(DIR_WS_IMAGES . $product_info['products_image'], ....... So, DIR_WS_IMAGES seems to be the culprit. I don't know where to go from here. Bob
  4. I'm also having some problems getting the OnTheFly contribution to work. I'm sure it's something I'm doing, since I'm a hack when it comes to programming :P If anyone can help, I would GREATLY appreciate it. Here's an example of a product which needs rescaling: http://p1auto.com/shop/product_info.php?products_id=3862 running product thumb directly seems to work... http://www.p1auto.com/shop/product_thumb.p...jpg&w=120&h=100 But the image in the product_info.php is still distorted. I deleted product_thumb.php, and I do not get an error. So, somehow product_thumb.php isn't being called? Here's the relevent part of product_info.php: <?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="left"> <tr> <td align="center" class="smallText"> <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> </td> </tr> </table> The changes to html_output.php are exactly as outlined in release 1_2 Thanks, Bob
  5. I received this email from lunarpages (my hosting company): "The permissions for the file are set to 777, this will need to be changed to 755. Your server was recently upgraded to PHPSuExec for security purposes. If you currently have any php variables set in your .htaccess file you will need to create a new file called php.ini and place any php variables in this file instead. If you are using 777 for permissions on your php scripts you will need to change the permissions to 644 or 755. You may want to change the permissions to 755 either way. I hope this helps.." So, changing from 777 to 755 allows me to run the script. Now I can not upload the files. Anybody have input? Sorry, I'm not a computer guy.. I just play one on tv. Bob
  6. Wow, 33 pages for 1 thread! I posted my easypopulate issues in a new topic. I hope somebody can help me. http://forums.oscommerce.com/index.php?showtopic=101257 Bob
  7. I have been using easypopulate v 2.73 for the last few days. Great tool! Thanks for all that contributed. The product_model size was too small for my application, so I followed some instructions and updated mySQL through PHPadmin and updated my easypopulate.php file to 20 characters. Now I get: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@p1auto.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. The error log shows: Premature end of script headers: /home/p1auto2/public_html/shop/admin/easypopulate.php I have tried the following: - uploading my old easypopulate.php file before editing product_model - use PHPadmin to change product_model back to 15 - uploading a new version of easypopulate I still get the same error. Any suggestions? Thanks! Bob
×