Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FlipC

Archived
  • Posts

    42
  • Joined

  • Last visited

Profile Information

  • Real Name
    FlipC

FlipC's Achievements

  1. Still haven't figured out why I get kicked back to login. Anyone else read or had this problem? Anyone using this with auto thumb ? Have a clue as how I can go about figuring out what is going on when this occurs? IE some type of reporting script or something? - Error console and error report via htaccess does nothing...
  2. My problem is that if I use the drop down navigation I get sent back tot he log in screen. Also happens if I try to add stock to anything. Ideas?
  3. Problem solved. Turned out I missed the image=# in the additional_images.php file. Just got so used to looking for that _# that I completely overlooked it without the underscore!
  4. So heres one problem not talked about: I want to add more than the standard 8 images Ultra Pics allows. Now I assumed this would be easy. Just take modified code and duplicate the parts for the number of images I want. In this case it's 12. I did this and everything looks fine. In both the Admin adn Catalog secitons. Except for the fact that the new additions link to the first 6 XL images. Now sense tells me that this would mean I would have a whole list of code going: (not actual code just ref.) sm_9 blah blah = xl_3, instead of sm_9 blah blah = xl_9 I have triple checkd the files. I can't find anything. So I am here. Does anyone know the EXACT bit of code that controls the actual link to the large image? IE can you make it so say sm_5 goes to xl_2 etc ?
  5. Ok somone has to have some ideas?
  6. I want to add text below the extra images that Ultra Pics allows me to show. Anyon know how to do this or ideas?
  7. nate, Quick note, I finally got it to work. After I've done some testing I will make notes and a readme and post it on the Phesis.Co.uk site (Cre Loaded 6). FYI Neither Mo Pics , Ultra Pics, noe the BTS (Basic template System) effects this mod. On another note. Are you still trying to get transparent PNG to work?
  8. nate, Sorry once again I had it removed when you looked at it. Still screwing around with it. Here's a link to look at Broken Image This one is the DEV site I refered to. Its a clone of my site set up except for graphically. I wont be changing that one so it will be exactly what I was referring to. I initially assumed for your contrib to work one must set the image scalling within OSC OFF (or 0) . Are you saying this is not the case? My apologies but my PHP is limited. I understadn echoing HTMl within PHP but not . Can you please post here?
  9. Mark-UK, First nate was saying your images can not be Bit Maps. (bmp) Nor should they be as I belive compression is better with other formats as is cross platform visibility. So your first step is to change all of your BMPs into jpegs, gifs, or PNGs. (suggest Macromedias "Fireworks" for batch processing) Secondly, Within the Admins Image control settings. If a person sets there image to "0" It disables OSC's resizing so the image will be it's natural size. So the reason your image is SO big would be becuase the IMAGE you uploaded IS that size. Third, Nates contrib uses code to scale an image down to a nice thumbnail size. This size depends on the original pictures size and is a % of the bigger side and the smaller side is constrained so as not to distort the thumbnail being created. Fourth, It is possible to have this contrib create a MEDIUM sized image also. Go to the page where you downloaded this contribution and read thorugh for this mod of the contrib. Good Luck. nate_02631 If I can give you access to a DEV model of the same set up Im using would you be interested in looking into what is cuasing the contrib NOT to work correctly?
  10. Yes nate, my config is exactly that way. I've concluded that it's either the BTS mod or the Mo Pics mod thats causing my problems. Since Im not coming to grips with how the image is called, I'm stuck.
  11. As a side note: If I place the "product_thumb.php" file anywhere else, IE: /templates/content/product_thumb.php Click Here To See I get the following error: Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/flipc/sk8.worldconspiracy.org/html/templates/content/product_thumb.php on line 27 Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/flipc/sk8.worldconspiracy.org/html/templates/content/product_thumb.php on line 35 This dosent make much sense since it works correctly from main directory. Working in Main
  12. Sorry my logic was off but I had checked it. I just rechecked it. Checked both just for sure. Anything else I should look at?
  13. Sorry , still trouble shooting this. Had switched back to defualt Output file for a few seconds. MOD one is back in now. I had tested before with thumb nail Worked fine. Why I was stumped. Even though I have double checked this here is my html_output.php file: // Modified tep_image function to keep proper ratio and use GD Library (in conjunction// with product_thumb.php for image resizing. Requires PHP GD Image Library version 2+ function tep_image($src, $alt = '', $width = '', $height = '', $params = '') { if (($src == '' || $src == 'images/') && IMAGE_REQUIRED == 'false') { return; } $image = '<img src="' . $src . '" border="0" alt=" ' . htmlspecialchars(StripSlashes($alt)) . ' " title=" ' . htmlspecialchars(StripSlashes($alt)) . ' "'; if ((strstr($width,'%')!='') || (strstr($height,'%')!='')) { $dont_calculate = 1; } if (CONFIG_CALCULATE_IMAGE_SIZE && (!$width || !$height) && !$dont_calculate) { if ($image_size = @getimagesize($src)) { if (!$width && $height) { $ratio = $height / $image_size[1]; $width = $image_size[0] * $ratio; } elseif ($width && !$height) { $ratio = $width / $image_size[0]; $height = $image_size[1] * $ratio; } elseif (!$width && !$height) { $width = $image_size[0]; $height = $image_size[1]; } } elseif (IMAGE_REQUIRED == 'false') { return ''; } } if (CONFIG_CALCULATE_IMAGE_SIZE && !$dont_calculate) { if ($image_size = @getimagesize($src)) { $ratio = $image_size[1] / $image_size[0]; // real ratio $orig_width = $image_size[1]; $orig_height = $image_size[0]; // do we need scaling if ($image_size[0] > $width || $image_size[1] > $height) { $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = $height / $ratio; } else { $height = $width * $ratio; } // Generate thumbnail on the fly $image = '<img src="product_thumb.php?img='.$src.'&w='.intval($width).'&h='.intval($height).'" border="0" alt=" ' . htmlspecialchars(StripSlashes($alt)) . ' " title=" ' . htmlspecialchars(StripSlashes($alt)) . ' "'; } } } if (!$dont_calculate) { $width = intval($width); $height = intval($height); } if ($width && $height) { $image .= ' width="' . $width . '" height="' . $height . '"'; } if ($params != '') { $image .= ' ' . $params; } $image .= '>'; return $image; }CODE] My config file is correct as everything works without the MOD. I had checked that becasue of earlier post.
  14. Sorry but after reading all 15 pages I still havent found a solution to my problem. Or just read over it. On my "products display" I get the red X box(s) Red X/No Image box sized Its obviously calling the MOD as I dont have a thumbnail or a size set (set as 0 in config) . When I view a product page there is no thumbnail box or ENLARGE link whatsoever. http://sk8.worldconspiracy.org/index.php?cPath=97_116 Even though I do have a full size image listed in the Admin. Tested without MOD and works fine. No thumbnail (as should be) and ENLARGE link there and it works. Ideas?
  15. hey Paul Dissregard my post for a few , at least until I reply again. I just found out my download of the Phesis Loaded 6.2 beta is misisng the header and footer .php files in the templates. I never saw - nor could I find , any post aobut the download being updated and only one is listed so Im unsure how I have a different version. Go figure. Anyway , Im going to replace my current isntalls with this new one and Im betting since I have an actuall header.php file I will be albe to do what I need now. Will let you know how it goes. Thanks again.
×
×
  • Create New...