Active
Project:
PNG Fix
Version:
5.x-3.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2008 at 05:33 UTC
Updated:
6 Aug 2009 at 11:37 UTC
I've tried over the last 2 hours and scouring the interweb to try and get this module to do anything.
I've enabled the module, and have specified ".fixpng" (excluding quotes, and I've also tried fixpng, pngfix, .pngfix or whatever) and my code in the page.tpl.php is:
<div class="fixpng"><img height="97" width="167" src="blahblah/section-home.png" /></div>
I've also tried <div class=".fixpng" .... <div id="fixpng ... etc and in IE 5.5 and 6 I see a non-transparent png.
Can someone give me an example of their configuration and page code?
When I view the page source I see:
<script type="text/javascript" src="/sites/all/modules/pngfix/jquery.pngFix.js"></script>
<script type="text/javascript">$(document).ready(function(){ $('.fixpng').pngFix(); });</script>... so the module is definitely installed.
I'm in Drupal 5.7.
Thanks in advance.
Comments
Comment #1
robloachDoes the JavaScript work at all for you? Because if not, then it definitely is a problem with the JavaScript.
http://jquery.andreaseberhard.de/pngFix/
Comment #2
dean.p commentedHi, the JavaScript is not doing anything. I might try again tonight as I think I was using 32bit png's instead of 24bit if that makes any diff.
Comment #3
chadcross commentedDid you go to "administer > site configuration > PNG fix" in your navigation? That will take you to a page where you can add classes of html elements you need fixed. There are some instructions on that page.
Comment #4
seutje commentedwouldn't u have to specify the img tag in ur case?
Comment #5
hankpalan.com commentedI don't know if this helps but I have my image under an id instead of class...so I put #subscribe instead of .subscribe and it worked perfectly.
Comment #6
betoaveigaCheck this...
I was having the same problem, go to: admin/settings/pngfix
Then enter and save the name of the class that you will use on DIVs to contain your PNG graphics. Ex. ".pngfix"
My mistake was that I entered "pngfix" instead of ".pngfix" (in admin/settings/pngfix), so nothing happened.
Using ".pngfix" the module works fine for me.
Finally, my code looks like this...
Good luck!
Comment #7
drecute commentedHi,
I think the comment made by _sack, saying "I think I was using 32bit png's instead of 24bit" is being overlooked.
I just want to be clear on this. What png bit is required ? 32bit or 24bit.
Please I need some clearance, cos I have been on this for about 3 hours now. The code is interpreted like this;
Thanks.