Page 1 of 1

No-JS PNG Solution

Posted: Thu Nov 08, 2007 8:19 am
by BigFishPhilip
Hello All,

Just started trying out CMSMS and am most impressed so far!  Thanks a ton for the work so far.  I had to implement a good PNG fix so I thought I might as well document it.  It's based on Justin Koivisto's technique at http://koivi.com/ie-png-transparency/.  I won't repeat what he says, just a quick checklist of what worked for me with CMSMS...

1. Create the replacePngTags.php.
2. Use the FileManager to upload the file to your server.
3. Create a User Defined Tag called "ob_start" and paste this into it...

Code: Select all

ob_start();
4. Create another User Defined Tag called "replacePngTags" and paste this into it...

Code: Select all

include_once 'uploads/(some folder?)/replacePngTags.php';
echo replacePngTags(ob_get_clean());
5. Edit you template(s) and place "{ob_start}" at the very top (before ) and "{replacePngTags}" at the very bottom (after .

This worked for me anyway.  Remember to follow what Justin says, background images must be declared inline and so on.

Happy Coding,
Philip

Re: No-JS PNG Solution

Posted: Fri Nov 09, 2007 12:50 am
by hexdj
Thanks for the tip, I'm gonna try this one out later. I have been looking for a way to implement Transparency for a while now.

Re: No-JS PNG Solution

Posted: Fri Sep 26, 2008 9:28 pm
by hexdj
adedip:
what are you talking about? this is a tip not a question.

Re: No-JS PNG Solution

Posted: Sun Sep 28, 2008 7:08 pm
by hexdj
Not sure what you mean? what does PNG Transparency have to do with Google Maps?