Jump to content

tokyoracer

Members
  • Content count

    22
  • Joined

  • Last visited

Profile Information

  • Real Name
    Trisha
  • Gender
    Female
  • Location
    New York
  • Website
  1. Ok, I may be drunk with sugar but i think I may really have it this time - I ended up with this modification in the OTC tep_image function: // 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) . '"'; if (substr($src, -4) == '.swf') $image = '<embed src="' . tep_output_string($src) . '"'; } } elseif (IMAGE_REQUIRED == 'false') { return ''; } } It seems to be working for now - I'll let ya know! :blink:
  2. Aw, gee, I spoke too soon - once I cleared my cache the thumbnails ARE NOT displaying properly - ARGHHH!! I think I'm on the right track though - maybe switching the order.... Sam, your original idea worked just fine except for that "iimage reloading thing" OK, I'm gonna go drown my sorrows in a pint of ice cream and come back to this later..... As always, thanks for your time -
  3. Methinks me has it! :lol: In the OTF tep_image function I removed the tidbit you originally suggested: if (substr($src, -4) == '.swf') return tep_image_original ($src, $alt, $width, $height, $params); moved it further down - to change this: // 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 ''; } } to this: // 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); } if (substr($src, -4) == '.swf') $image = '<embed src="' . $src . '"'; } else { $image = '<img src="product_thumb.php?img=' . $src . '&w=' . tep_output_string($width) . '&h=' . tep_output_string($height) . '"'; } } elseif (IMAGE_REQUIRED == 'false') { return ''; } } Initial testing seems to show that it covers all the bases and I don't even need to use the tep_image_original! swf files seem to be resizing/displaying properly, regular images seem to be thumnailing properly, and there doesn't seem to be the white flash of blank page while the images reload. ~ Fingers crossed ~ Sam, I could have never done it without you giving me that snippet! Thanks a million! Now, I'm still having an issue with IE - it reloads the images on EVERY page and I don't think it has anything to do with the OTF Thumbnailer. I uploaded a stock html_output file and it behaves the same way. I guess that's for another thread. Thank you Sam again - I'll let you know if it blows up!
  4. Hmmmm, this is going to need a little tweak - The swf file "thumbs" are showing up just fine now, but on any pages that display them, i get a momentary flash of white and then the page loads. It seems as though ALL the images are getting parsed again. In Firefox, it only seems to occur on pages with swf - and in IE it happens on every page. So close and yet...yet.... Any thoughts? Thanks so much!
  5. Oh got it!! That works a treat!! :) It never even occurred to me to use the whole original function in it's entirety. I had actually tried my hand at writing a new function tep_swf by stripping down the original function and escaping the new function - but I was really making a mess of it and more complicated than it needed to be. HA HA! There are those days when i think i do, but then there are days like today...... :blush: Hey spooks, thanks for taking the time to help me - I had already spent a day on this and was quite bleary-eyed, and if not for you I would be at it again today. My best to you -
  6. Hi! Great contribution! :) I just installed it and it seems to be working very well. One problem: because I replaced the tep_image function, I lost some previous modifications I made in that function that allowed swf to be handled as an embedded image. Some of my products are small flash movies/games, and it was nice having them display on product info pages and in the specials, etc. (even though they were downsized in the stock OsCommerce method of "squish it down"). Is there a way to add back in some kind of code that says "if a file is swf, bypass thumbnail function and pass it through as an embed"? I really hope someone can help me with this. I've been fooling around with it, but each time I think i have it, I am rudely awakened! Thanks so much!
  7. tokyoracer

    Cool Flash Carousel Menu

    Hi All! I looked through the thread but didn't see - Does this work in 2.2ms2? Does it require some special changes? Thanks so much! It looks GREAT! :D
  8. tokyoracer

    [contribution] Super Download Store

    Well, thank you Alex! That seems to do it. I'm going to test it further in several different scenarios, but it is working fine so far. When the voucher covers the entire order total and brings it to 0.00, my downloads are happily waiting at checkout_success for me. I don't know if it makes any difference, but my checkout_process is slightly reordered from the stock (a fix to pass ccgv(trad) variables correctly to my payment module). So this: $payment_modules->before_process(); is located AFTER this code: require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_totals = $order_total_modules->process(); instead of BEFORE that code. Do you foresee any issues? I'll keep testing over the next couple of days and let you know if all is working well. What a great mind you have. Thanks again, Patty
  9. tokyoracer

    [contribution] Super Download Store

    Hi, I just installed this contribution and it works great! I had been using the original Downloads Controller up until now and it was terrific, but I do appreciate the added features of this one. I am using ccgv(trad) with this contribution and they both work together very well as long as there is a positive final order total that gets passed to a payment module. Downloads are available immediately at checkout if they have been appropriately paid for. There is only a problem when a voucher or coupon brings the order total down to 0.00. In that case, all payment modules are bypassed (normal behavior) and although my order is processed properly in most respects, it appears as if there is no call anywhere to update the status of the order. Obviously, downloads availability depends on the order status being updated, so I'm wondering if you have any ideas? Is this a common problem or did I just have something wrong? So if someone applies a voucher and their subsequent order total is even as little as $0.01, and they pay with credit card, etc., then their download is waiting. But, if someone applies a voucher that completely covers their purchase, and order total is 0.00, the order is processed but the download remains pending. It's skipping the payment modules, so therefore missing out on the payment module's updating! I see earlier that someone asked a similar question and you were going to take a look at the ccgv(trad) code. I did query Vger about this issue, but so far have not found a solution. Do you think somewhere in checkout_ process I could insert an "update status if order total =0" kind of statement? Any pointing in the right direction is appreciated. Thanks much, Patty
  10. tokyoracer

    Orderlist contrib

    1) Has anyone found a way to sort by product name and 2) Has anyone fixed the missing info when sorting by client name? I would LOVE to get this working!! Thanks, Patty
  11. tokyoracer

    Orderlist contrib

    In addition to trying to create a SEARCH BY PRODUCT filter, I think I have come across one last bug. When I filter by STATUS all the information parameters are displayed properly. When I filter using SELECT CLIENT, there is mostly missing information in Client Details. Looks like: Account ID: Company: Customer Name: IS displayed Default Address: Suburb: Location: , , ZIP / Post Code: Telephone: Billing Name: Billing Address: Suburb: Location: , , ZIP / Post Code: Delivery Name: Delivery Address: Suburb: Location: , , ZIP / Post Code: FAX: Does anyone know the fix for this? Thanks! :thumbsup:
  12. tokyoracer

    Orderlist contrib

    Hi Again! Has anyone had any progress in creating a filter that will sort by product name? It would be extremely helpful feature for me. We have started selling "virtual" event tickets and I need to be able to print out a specific attendance list for each event date. I've been playing around with it, but I am more of a "copy and paster" and seem to just be making a mess of it. Could someone help point me in the right direction? Thanks so much!
  13. tokyoracer

    Orderlist contrib

    Also, what worked for me is I changed Line 242 to read: <td class="main" align="right" width="25%"><?php echo date('l, F dS, Y h:i:s A'); ?></td> Now it outputs the day of week, month, day, year and the time. I'm running PHP5 so maybe that's the deal. Anyway, hope it is useful! Thanks guys!
  14. tokyoracer

    Orderlist contrib

    Thanks for getting back so quick! The keyword changes worked great, and the search function seems to be working well. The change for the time caused the page not to load. Regarding the filter for sorting by product: Might I be able to include product name and/or product ID into the keywords for the search function? My ultimate goal is to be able to sort first by STATUS and then by PRODUCT NAME, but that may be too industrious for now! Thanks again!
×