Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    194
    Plugin Contributions
    0

    Default Re: Reliable PNG Transparency

    Hi there,

    Just in case there's anyone out there like me that needs step-by-step instructions. Here you go!

    To begin, visit that link in the first post and scroll down to "Full Source Download" and click that to download the files for this fix. Or, you can save it from here (same source):
    http://koivi.com/ie-png-transparency.zip

    Here's the steps I took to get this working...

    - First, I put the "replacePngTags.php" file in my shop directory (where ZC is installed).

    - Then I copied the spacer.png (1x1px image) to my shop/includes/templates/MY_CUSTOM_TEMPLATE/images directory. (Your custom template (override directory) may be named something else.)

    - I opened the tpl_header.php file located here:

    shop/includes/templates/MY_CUSTOM_TEMPLATE/common/tpl_header.php

    and pasted in this code at the very top above everything else...

    Code:
    <?php ob_start(); ?>
    - Then, I pasted this code...

    Code:
    <?php
        include_once 'replacePngTags.php';
        echo replacePngTags(ob_get_clean());
    ?>
    at the very bottom, after everything else, in my

    shop/includes/templates/MY_CUSTOM_TEMPLATE/common/tpl_footer.php file.

    Hope that helps somebody,
    Rebekah
    TheWindCutter.com
    Professional Microphone Windscreens
    Got wind noise? We've got you covered.

  2. #2
    Join Date
    Sep 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Reliable PNG Transparency

    Rebekah,

    Thanks for the Step-by-step...

    It works great for the pics defined in .php pages (such as header.php) but not from my stylesheet.css ... (for example, i have an image for the footer navigation bar).

    Any idea ?

    Damien

  3. #3
    Join Date
    Sep 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Reliable PNG Transparency

    It works with PNG 8 but not 24... which is a 1st step but far from great.

    If anyone knows how to keep the transparency of a PNG 24 from the stylesheet.css, it would be greatly appreciated.

    Thank you,

    Damien

  4. #4
    Join Date
    Jun 2008
    Posts
    17
    Plugin Contributions
    0

    Default Re: Reliable PNG Transparency

    This is working for the PNG images on the page, but not for the background images. Any way to fix this? Thanks.

  5. #5
    Join Date
    Feb 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Reliable PNG Transparency

    Quote Originally Posted by domsmom View Post
    This is working for the PNG images on the page, but not for the background images. Any way to fix this? Thanks.
    Same Problem for me ... if anyone knows a nice solution please let me know !

    cheers

 

 

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