Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Islander2u

Archived
  • Posts

    46
  • Joined

  • Last visited

Everything posted by Islander2u

  1. Congratulations TheFinnisher on de-bugging the sql errors, but would it be too much to ask to post your fix for the rest of us. Thanks, Eric
  2. Hello Wouf, I believe that part of the problem you are having is that this contribution is using htmlArea 2.x as the editor, which at this time only supports Windows. I think I remember MaxiDVD mentioning that he has plans to use the 3.x version in the future, but as its in beta right now, he was running into many bugs integrating it into this contribution. Hope that helps, Eric
  3. HJP, Thank you for your response. That was my main question, is there one fix that works with the majority of configurations (no centershop or with) and it sounds like no, there are other factors as well. After having read this thread, I know how time consuming it must be, it looks as though you live in here, but your input and tips are greatly appreciated. Thanks
  4. Are there any plans to release/submit an updated version of this contribution that will work with or without center shop? Or do we need to continually read through 50+ pages each time to find the fixes. I have not added this to my shop yet, but reading through this thread, I see the same questions, problems, and mistakes brought up over and over. If someone has gotten it working properly, wouldn't it be a good idea? As I haven't added this yet I don't know if this is because it is widely depending on how the user has set up there shop and not the contribution its self. I don't want these questions to be taken the wrong way. I know its a lot of time and effort to build these contributions, and everyone in the community appreciates the help, but it would be helpful.
  5. Sorry to be bothersome. There does seem to be a conflict with the Keep Image Proportions 1.3 (02/06/2004) Once I re-applied that contrib. the same problem happens, all pop-ups end up 0x0 pixel images. Has anyone else used these two contributions together? I believe the problem lies in "catalog/includes/functions/html_output.php" if (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } is replaced by // BEGIN Code Keep Image Proportions if (tep_not_null($width) && tep_not_null($height)) { if (IMAGE_CONSTRAIN_PROPORTIONS == 'true') { $image_size = @getimagesize($src); if ($image_size[0] <> 0) { $ratio = $width / $image_size[0]; if ($image_size[1]*$ratio > $height) { $ratio = $height / $image_size[1]; $width = $image_size[0] * $ratio; } else { $height = $image_size[1] * $ratio; } } $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } } else { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } // END Code Keep Image Proportions both mods seperate work fine, but when combined... Can anyone throw any light my way?
  6. Please disregard my two previous posts, as this board will not allow me to edit my own comments. I think I put too much crack in my coffee this morning while adding multiple contributions. I did an oops and uploaded the 1.1 version with out the Jpsy thingie on my system. I deleted, re-upped the 1.0 version and there is once again piece and harmony in my world of osC. Sorry for any confusion.
  7. I wanted to add that... If I remove the <?php if (($HTTP_GET_VARS['image'] ==0) && ($products['products_image_lrg'] != '')) { echo tep_image(DIR_WS_IMAGES . $products['products_image_lrg'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==1) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_1'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==2) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_2'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==3) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_3'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==4) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_4'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==5) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_5'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==6) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_6'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } else echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); ?> and just use the original <?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name']); ?> it works fine again. Im not sure when this quit working.
  8. Ahhh, help. I dont know whats going on, all my popups are comming up with a hight and width of "0" my popup_image.php is... <?php /* $Id: popup_image.php,v 1.18 2003/06/05 23:26:23 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); $navigation->remove_current_page(); $products_query = tep_db_query("select pd.products_name, p.products_image, p.products_image_lrg, p.products_image_xl_1, p.products_image_xl_2, p.products_image_xl_3, p.products_image_xl_4, p.products_image_xl_5, p.products_image_xl_6 from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'"); $products = tep_db_fetch_array($products_query); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo $products['products_name']; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <script language="javascript"><!-- var i=0; function resize() { if (navigator.appName == 'Netscape') i=40; if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i); self.focus(); } //--></script> </head> <body onload="resize();" onclick="javascript:top.window.close();" onblur="self.close()"> <?php if (($HTTP_GET_VARS['image'] ==0) && ($products['products_image_lrg'] != '')) { echo tep_image(DIR_WS_IMAGES . $products['products_image_lrg'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==1) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_1'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==2) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_2'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==3) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_3'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==4) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_4'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==5) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_5'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } elseif ($HTTP_GET_VARS['image'] ==6) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_6'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); } else echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT); ?> </body> </html> <?php require('includes/application_bottom.php'); ?> The only thing I can think of is that Im using Keep Image Proportions 1.3 (02/06/2004) but dont see where it would be conflicting. Heres where Im testing the site... http://globalmediashosting.net/tmp/catalog/ if anyone can help.
  9. Is any one using Prices for Logged-In Users Only with MS2, or is this only for previous versions?
  10. Hello hjp, Are you using the current osc (2.2ms2) in your demo shop? Also, does it continue to work if you turn off center shop? Thanks for the info
  11. I am trying to figure out a way to limit the amount of items being displayed in Viewed Products 1.0 but having no luck I tried to borrow code from recently viewed which has this feature. $counter = 0; $info_box_contents = array(); $recent_products = split(';',$recently_viewed); foreach ($recent_products as $recent) { if ((strlen($recent) >0) && ($counter < 10)) { $counter++; if (strlen($counter) < 2) { $counter = '0' . $counter; } but I cant seem to get it to work. Has anyone else done this or have any leads?
  12. Emiliano, What I am looking for is a way that when a product expires, it is removed from the catalog. For example if I were to sell milk, it would remove its self when the milk expired. It had been mentioned in a recent post, that this was possible, but I'm not sure if this is the contribution being referied to. I had read through this compleate posting, and contribrution details, but am still unclear if this would do that or not. thank you for your time and info.
  13. I once had a contribution that if you didnt enter a price, no price would show up, not even $0 I can no longer find this to add to MS2. Does anyone know the name or know how to add this feature?
  14. OK, the step wasnt missed in the directions, there were a few syntax errors in steps 1.5 & 1.6. Step 1.5 Was... <tr> <td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_MAINPAGE); ?></td> </tr> Should be... <tr> <td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td> </tr> Step 1.6 Was... define('FILENAME_DEFINE_MAINPAGE', 'define_mainpage.php'); Should be... define('FILENAME_DEFINE_MAINPAGE', 'mainpage.php'); I hope this helps others with one of the best osc contributions provided.
  15. Has anyone had any problems with the define mainpage portion of html area? It shows up in the backend fine, and is editable, but on the front end I cant seem to shake this error... Warning: Failed opening 'includes/languages/english/FILENAME_MAINPAGE' for inclusion (include_path='.:/usr/local/lib/php') I've gone over and over to see if I messed an define statement or something, but everything looks ok.
×
×
  • Create New...