Jump to content
Latest News: (loading..)

x-shane-xx@hotmail.com

Members
  • Content count

    58
  • Joined

  • Last visited

4 Followers

About x-shane-xx@hotmail.com

  • Birthday 01/01/1973

Profile Information

Recent Profile Visitors

18,665 profile views
  1. x-shane-xx@hotmail.com

    By Quantity

    I am trying this mod later but i think this is partly what you are after. http://www.oscommerce.com/community/contributions,1333
  2. x-shane-xx@hotmail.com

    'On The Fly' Auto Thumbnailer using GD Library 2.1

    ok, think i finaly got it figured out. ignore the above 2 posts as all the problems were due to a missing space. in step 7 it has you replace the html wrap. do that but look for the following: if (tep_not_null($alt)) { $image .= ' title="' . tep_output_string($alt) . '"'; } and replace it with: if (tep_not_null($alt)) { $image .= ' title="' . tep_output_string($alt) . ' "'; } hope this helps someone. Matthew www.rogersdvds.com
  3. x-shane-xx@hotmail.com

    'On The Fly' Auto Thumbnailer using GD Library 2.1

    Now I need your advice, I reconfigured the html_output.php on the admin side. //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { // BOF - Modification: On The Fly Auto Thumbnailer // Set default image variable and code $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title="' . tep_output_string($alt) . '"'; } if (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } if (tep_not_null($parameters)) $image .= ' ' . $parameters; $image .= '>'; return $image; // Don't calculate if the image is set to a "%" width if (strstr($width,'%') == false || strstr($height,'%') == false) { $dont_calculate = 0; } else { $dont_calculate = 1; } // Dont calculate if a pixel image is being passed (hope you dont have pixels for sale) if (!strstr($image, 'pixel')) { $dont_calculate = 0; } else { $dont_calculate = 1; } // Do we calculate the image size? if (CONFIG_CALCULATE_IMAGE_SIZE && !$dont_calculate) { // Get the image's information if ($image_size = @getimagesize($src)) { $ratio = $image_size[1] / $image_size[0]; // Set the width and height to the proper ratio if (!$width && $height) { $ratio = $height / $image_size[1]; $width = intval($image_size[0] * $ratio); } elseif ($width && !$height) { $ratio = $width / $image_size[0]; $height = intval($image_size[1] * $ratio); } elseif (!$width && !$height) { $width = $image_size[0]; $height = $image_size[1]; } // Scale the image if not the original size if ($image_size[0] != $width || $image_size[1] != $height) { $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } else { $height = intval($width * $ratio); } $image = '<img src="product_thumb.php?img=' . $src . '&w=' . tep_output_string($width) . '&h=' . tep_output_string($height) . '"'; } } elseif (IMAGE_REQUIRED == 'false') { return ''; } } $image .= '>'; return $image; } // EOF - Modification: On The Fly Auto Thumbnailer it works and shows the small pics in the catagories but was wondering if there is a better way of writing this? thx Matthew www.rogersdvds.com
  4. x-shane-xx@hotmail.com

    'On The Fly' Auto Thumbnailer using GD Library 2.1

    Alright, i really can not figure this out. the small pictures will not show in the catalog > Categories / Products in the admin area. this only occurs when i use the coontrib otf autothumb v2.4fix3. it requires the replacement of the function tep_image, and that is where the problem starts. I have edited the $params to the correct $parameters and have replaced the define section in the configuration.php. still no luck. but if i put the original html_output.php in the admin section, the pictures work. i have read thru the entire 25 pages and still no resolve. i am using 2.2rc2a on the below configurations. The images and the contrib works great on my local machine setup below: Server OS: Database: MySQL 5.0.27-community-log Server Date: 07/06/2008 00:18:09 Datebase Date: 07/06/2008 00:18:08 Server Up Time: HTTP Server: Apache/2.2.3 (Win32) PHP/5.2.0 PHP Version: 5.2.0 (Zend: 2.2.0) the images and the contrib does not work on the Linux host: Server OS: Linux 2.4.21-53.ELsmp Database: MySQL 4.1.22-max-log Server Date: 07/05/2008 23:19:28 Datebase Date: 07/05/2008 23:19:28 Server Up Time: 23:19:28 up 61 days, 47 min, 0 users, load average: 3.23, 3.29, 3.34 HTTP Server: Apache PHP Version: 4.3.11 (Zend: 1.3.0)
  5. x-shane-xx@hotmail.com

    PHP5 coming - need oscaffiliate help

    with a little reading and work it should be fine. Plz see http://forums.oscommerce.com/index.php?showtopic=171198 http://www.oscommerce.com/community/contributions,3727/ http://forums.***.com/index.php?showtopic=304 http://www.teratechnologies.net/stevekamer...ry070104-120319
  6. x-shane-xx@hotmail.com

    Payment gateway cvv / cvv2

    nevermind, I got it figured out with google, php.com and alot of other payment mods,...
  7. x-shane-xx@hotmail.com

    which high risk merchant account?

    depends on what you are selling online? if you would like some ideas, you can pm me
  8. x-shane-xx@hotmail.com

    Payment gateway cvv / cvv2

  9. x-shane-xx@hotmail.com

    Purchase Without Account

    hey, here is a comparison program i use,,, http://www.sourcegear.com/diffmerge/ be careful when you are comparing and overwriting files if you have alread installed any mods,,, hope this helps!
  10. x-shane-xx@hotmail.com

    Dow Commerce

    I am looking for any help with how to install a payment gateway. Dow Commerce sent the API information, but I am not sure how to use it. All help would be appreciated or a lead on a person who could help with the implementation.
×