No-JS PNG Solution

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
BigFishPhilip

No-JS PNG Solution

Post 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
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: No-JS PNG Solution

Post 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.
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: No-JS PNG Solution

Post by hexdj »

adedip:
what are you talking about? this is a tip not a question.
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: No-JS PNG Solution

Post by hexdj »

Not sure what you mean? what does PNG Transparency have to do with Google Maps?
Post Reply

Return to “Tips and Tricks”