Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: PNG transparency / Iexplorer  (Read 3116 times)

0 Members and 1 Guest are viewing this topic.

mp3k

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
PNG transparency / Iexplorer
« on: January 11, 2005, 08:33:53 pm »

Ok this is my problem. I modded a hardwired theme ( colors and images and so on ) just to fit my familys private gallery. I'm a n00b with php/html. I know there are some hacks ( .js .css .php ) to fix the IE png transparency bug but I'm not sure what file to edit to get it work correctly , template.html? index.php ??

I hope you understand what I mean... heres a pic...

(http://koti.mbnet.fi/mp3k/iesukas.jpg)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: PNG transparency / Iexplorer
« Reply #1 on: January 12, 2005, 01:41:53 am »

there's no fix, as IE simply doesn't fully support transparent PNGs. As a workaround, you could set the transparent color of the png to be the same color your site's background has (that's the usual "fix") - not related to coppermine though.

Joachim
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: PNG transparency / Iexplorer
« Reply #2 on: January 12, 2005, 02:17:41 am »

There is an excellent png fix for IE that doesn't mess up any other browser.

http://www.koivi.com/ie-png-transparency/

It's very easy to implement, just a matter of adding an ob_start(), include_once 'replacePngTags.php'; and echo replacePngTags(ob_get_clean());

Follow the directions on the site.  If you have issues placing the above code tags, post in this thread and I'll help you thru it.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

mp3k

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: PNG transparency / Iexplorer
« Reply #3 on: January 12, 2005, 10:49:14 am »

Thanks for your quick answers! I downloaded the .zip from that site and now replacePngTags.php file is in my www folder. I just need to know where to add those few lines of code =)  this is how the png is set < td width="778" height="207" valign="middle" align="right" background="themes/hardwired/images/hw_088.png" > ( template.html )
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.