Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    96
    Plugin Contributions
    0

    Default Reliable PNG Transparency

    This was mentioned in an older post but the link was broken, and I couldn't reply, so here ya go.

    A good a quick solution to allow IE 5-6 to render transparent PNG's in your store can be found here.

    If you throw the main PHP file in your main catalog directory, the first tag at the top of your tpl_header.php file, and the second tag at the bottom of your tpl_footer.php file, then you should be set!

    (also make sure that you specifiy height and width values for any png's that you use)

  2. #2
    Join Date
    Nov 2004
    Location
    Pittsburgh, PA
    Posts
    44
    Plugin Contributions
    1

    Default Re: Reliable PNG Transparency

    It's neat that you've posted that. I was actually checking around for png support & found the exact same solution that you've found through google. I was implementing it & lo & behold, found that you've already posted it here.

    Anyhow, just thought that I'd mention that I too have it working correctly on my test shop & actually only put the tags at the top & bottom of my tpl_main_page.php, so either way works.

    Good stuff!

  3. #3
    Join Date
    Jan 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Reliable PNG Transparency

    Hi Zenners,

    So I went to the link in question and read...
    Just don't get exactly where I should implement the codes.
    I experimented with the tpl_main didn't work , then tried the tpl_header and tpl_footer

    Could you clarify please for a novice.

    Thanks in advance...

  4. #4
    Join Date
    Jan 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Reliable PNG Transparency

    Ok so after a lot of trial and error I almost have it.
    Only one little problem.

    If someone could have look and let me ow how to fix this would be great.
    http://www.gefo.ca/GeFo_Store/

    Probably just not code in the right place
    I put it in the tpl_main and the function in the main directory.

    Thanks

  5. #5
    Join Date
    Jun 2006
    Posts
    96
    Plugin Contributions
    0

    Default Re: Reliable PNG Transparency

    Are you referring to the fact that is looks like there's a broken image over the top of it?

    That's because you need to get the spacer.png file provided to you on the instructions page, and put it in your images folder of your catalog. You can also create your own, just an empty 1x1 pixel PNG-8 image.

    Hope that helps...

  6. #6
    Join Date
    Jan 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Reliable PNG Transparency

    Thanks CFE,

    sometime the obvious just isn't.
    works fine now.

  7. #7
    Join Date
    Apr 2004
    Location
    Montreal
    Posts
    755
    Plugin Contributions
    1

    Default Re: Reliable PNG Transparency

    I get the impression this is good for images pulled from within the files mentioned to have this mod. But in the case where CSS is being used to pull up images, would this work as well?
    IntelCos

  8. #8
    Join Date
    Oct 2005
    Posts
    38
    Plugin Contributions
    0

    Default Re: Reliable PNG Transparency

    In case anyone is getting the red cross error in IE, an easy fix is to upload the spacer.png file to every folder that contains PNG images. If you are using Image Handler, you'll also need to upload it into each one of the directories in the bmz_cache folder as well as all of your product image sub-directories. i.e. the large, medium, manufacturers, banners, etc. folders.

    It means having around 30 or so copies of spacer.png on the server but it saves having to track down all the different places where relative and absolute links are being used to correct it.

  9. #9
    Join Date
    Oct 2005
    Posts
    97
    Plugin Contributions
    0

    help question Re: Reliable PNG Transparency

    I'm having trouble with this. I've applied the hack, but the images are just gone and are replaced by the transparent spager.png without the original image showing beneath:

    http://backwards.lbdclients.com

    The images are the shop and EZ-Pages sidebox headers and also three PNGs in a banner box below them. The source code looks like it should be right:

    Code:
    <h3 class="rightBoxHeading" id="ezpagesHeading"><img src="/includes/templates/custom/images/spacer.png" style="width: 178px; height: 28px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/includes/templates/custom/images/backwards_info.png', sizingMethod=scale);" alt="info" /></h3>
    I put the spacer.png file in includes/templates/custom/images and the replacePngTags.php in the root directory where the cart is installed. I added the code to the top of tpl_header.php and the bottom of tpl_footer.php. I must be doing something wrong, but I can't figure it out.

    The images are PNG-24, but I don't think that should be a deal breaker for the hack.

    Any help would be appreciated. Thanks!

 

 

Similar Threads

  1. Transparency?
    By dddmx3 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Nov 2010, 07:54 AM
  2. Transparency, HELP!
    By dddmx3 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Nov 2010, 05:47 PM
  3. Background colour transparency issues.....
    By rcnutterz in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 May 2009, 11:39 PM
  4. Background and transparency issues
    By Blackhat in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 6 Dec 2006, 05:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg