Closed (fixed)
Project:
Drupal.org CVS applications
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Oct 2009 at 15:47 UTC
Updated:
19 Jul 2010 at 11:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
avpadernoThe previous application was #604928: dzieyzone [dzieyzone].
Comment #2
dzieyzone commentedHi Guys,
I just want to share with you my contributed module called belatedPNG, integration of the DD_belatedPNG created by Drew Diller. It is yet another way of fixing PNG images in IE 6 and below. It supports also PNG image background positioning.
Providing you this link (http://spindev2.spinweb.ph/greencross) as an example also you can visit the developer site (http://www.dillerdesign.com/experiment/DD_belatedPNG) for updates.
Regards,
Jay
Comment #3
avpadernoRemember to change status, when you upload new code; other metadata are not thought to be used from the applicant.
Comment #4
dave reidHave you filed any issues with PNGfix or PNGbehave to include this background-fixing feature?
Comment #5
dzieyzone commentednope, i have not posted any issues for both module. One thing that also that caught my attention is that DD_belated script is it uses Microsoft's implementation of VML instead of Microsoft's AlphaImageLoader filter.
Comment #6
avpadernoIn Apply for contributions CVS access is clearly stated that we tend to avoid duplication of modules. If the modules have different code, but have the same purpose, it's a kind of duplication too.
Comment #7
dzieyzone commentedIs that so? what about the pngfix and pngbehave?
Comment #8
avpadernoThe page I am referring to is for who applies for a CVS account; if you are applying for a CVS account, and you propose a module that is the duplicate of an existing module, it is probable that your account is rejected.
If you look at all the issues present in this queue, you will not find an application that attaches one of those modules; if you are suggesting that we made an exception for one of those modules, you are wrong.
Comment #9
avpadernoIn Drupal.org CVS the only accepted files are the ones licensed under GPL license v2+; compatible licenses are not accepted.
Files available from third-party sites, then, should not be included in Drupal.org CVS.
Comment #10
avpadernoI still agree with Dave about the necessity of offering to integrate the proposed code with existing modules.
It is then possible to do what the module does by creating a custom block; there is no need to use a module that only fixes the transparent issue in Internet Explorer.
Comment #11
dzieyzone commentedEdited the license.txt
Comment #12
jaypanI have to say, I'm impressed with the belatedPNG module. I'm usually very hesitant about using non-contributed modules, and having tried pretty much every pngfix out there at one time or another and found limitations with them all, this one actually seems to work really well.
I tried the pngFix, and it didn't work on my CSS sprites (it compresses the width of the entire background image into the width of the visible portion, which defeats the purpose of the CSS sprite. I used pngbehave, but due to the number of transparent images I am using on the site I am developing, it froze up my site. Eventually it worked, but the whole site disappeared for seconds at a time after clicking on it. But this belatedPNG seems to work with my site very well, and doesn't noticably slow down anything.
I understand Drupal not wanting to allow duplicate modules, but with pngfixes, no pngfix is the same. They all have their positive points and their limitations, so I think that cutting this module off, when it seems to work really well, would be a mistake.
Comment #13
avpadernoSee my comment #9, which is still valid.
Also, files available from third-party modules should not be placed in Drupal.org CVS. The main issue here, anyway, is the license used for the code, which is not GPL License v2+, as requested for all the files committed in CVS.
Comment #14
jaypanAhh, that's a fairly big thing. Too bad - this is the best pngfix I have found so far.
Comment #15
Jeff Burnz commented@dzieyzone
You need to remove the license file and the script, then provide a link to download the script and instructions for users on where to place it.
Not a bit fan of the camelCasing, and needs to run through coder and cleaned up.
Comment #16
dzieyzone commented@Jay Matwichuk Thank you for convincing that this module deserve a try to be a part of drupal module.
@Jeff Burnz I will do the re-work for this module.
Thanks to everyone, hope you find it useful.
Comment #17
avpadernoRemoving the license file is the first step; dzieyzone needs to understand that his module would be released under GPL License, not MIT License as he reported in LICENCE.txt.
Comment #18
dzieyzone commentedattached herewith is the updated zip file for the belatedpng:
removing camelcase
remove the licensed.txt
delete javascript file and add instructions on how to get the script.
Comment #19
dzieyzone commentedForgot to change the status. refer to http://drupal.org/node/611816#comment-2229146
Comment #20
avpadernoThe code could use
drupal_add_js().Comment #21
dzieyzone commented@KiamLaLuno
1. basically it is possible to put as drupal_add_js() but the thing is, it should be wrapped with if IE conditional comment because it should only be executed for IE6 and below.
2. File are now updated including the README.txt file. and the function inside belatedpng.admin.inc was moved to the .module file removing the said inc file.
Comment #22
dzieyzone commentedRe-uploading...
Comment #23
bennyjs commentedThanks for this module! I tried the other two and neither worked for me. I was about ready to give up but gave this one a try and it worked. Hope it becomes an official contributed module.
Comment #24
dzieyzone commentedplease review my code.
Comment #25
avpadernoComment #26
sebsebseb123 commentedGreat module! PNGfix had bugs when it came to background positioning.
belatedPNG works well...could be cleaner though.
For example, this shouldn't be here:
...maybe you could use PHP's $_SERVER['HTTP_USER_AGENT'] to check for IE 6.....then use drupal_add_js
Also, why does the readme file talk about the FCKeditor?
...either way....really helped me out. Thanks!
Comment #27
avpadernoThe user agent identifier is not reliable, as some browsers have an option that allows the user to change the user agent it uses.
The conditional HTML comments used by Internet Explorer is the only way to verify if the browser is really Internet Explorer (at least in the versions higher than 4.0).
Comment #28
jaypanI agree. Conditional comments are the most reliable way to target IE browsers.
Comment #29
avpadernoComment #30
avpadernoI apologize for the delay in approving this CVS application.
Comment #32
perandre commentedWill it be released? Worked well for me.
Comment #33
alexpottThis has worked well for me too (in a situation where the similar pngfix and pngbehave modules did not). Thanks dzieyzone!
Comment #34
emudojo commentedI made a small change to the module, instead of a text-field (limited to 150 chars), now there's a textarea you add your selectors 1 per line without commas the script will take care of the rest.
when adding selectors to the text area try to disable the WYSIWYG editor as it adds some unwanted markup (I'm already removing it but better to be aware), if you're using the CKeditor you can go to /admin/settings/ckeditor/editg and then add admin/settings/belatedpng.edit-belatedpng-css-toapply under visibility *exclude* to avoid it to render for that field not sure about Tiny on any other Rich editor
Comment #35
Jeff Burnz commented@emudojo - please post your patch to the issue queue for this module, cheers.
Comment #36
skolesnyk commentedOh my! This is the best module to tackle IE6 bugs. Better then all the PNG fixes I've tried so far. Can't express my gratitude enough!
Please, accept this module into Drupal's project list.
Comment #37
helmethead commentedThis looks like an awesome module! However, one issue i am having is where the conditional statement (set_html_head) is placing the belated PNG fix. It sets it before all my CSS and javascript is loaded on the page. So, should this be setting this AFTER jquery, and other javascript is loaded? or does it work independently of that?
cheers
Helmet