CVS edit link for dzieyzone

Hi, Good Day!

This is for a re-application for a new module called belatedPNG. This module is yet another PNG makeover for IE6 and below like PNGfix and PNGbehave. The module is an integration of DD_belatedPNG that is done by Drew Diller which is called DD_belatedPNG. Unlike PNGfix and PNGbehave, this tool solves the background image positioning which I think most of developers was also looking into it.

I was unable to upload the module because of my busy schedule for the past week.

Again Thanks,
Jay

Comments

avpaderno’s picture

The previous application was #604928: dzieyzone [dzieyzone].

dzieyzone’s picture

Issue tags: +images, +png
StatusFileSize
new10.96 KB

Hi 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

avpaderno’s picture

Status: Postponed (maintainer needs more info) » Needs review
Issue tags: -images, -png +Module review

Remember to change status, when you upload new code; other metadata are not thought to be used from the applicant.

dave reid’s picture

Have you filed any issues with PNGfix or PNGbehave to include this background-fixing feature?

dzieyzone’s picture

nope, 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.

avpaderno’s picture

In 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.

dzieyzone’s picture

Is that so? what about the pngfix and pngbehave?

avpaderno’s picture

Is that so? what about the pngfix and pngbehave?

The 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.

avpaderno’s picture

Status: Needs review » Needs work
  1. /*
     * Version: 0.0.8a
     * Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license
     *
     */
    

    In 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.

  2. The file LICENSE.txt needs to be removed; Drupal.org CVS doesn't allow to commit that file.
avpaderno’s picture

I 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.

dzieyzone’s picture

StatusFileSize
new5.54 KB

Edited the license.txt

jaypan’s picture

I 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.

avpaderno’s picture

See 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.

jaypan’s picture

Ahh, that's a fairly big thing. Too bad - this is the best pngfix I have found so far.

Jeff Burnz’s picture

@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.

dzieyzone’s picture

@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.

avpaderno’s picture

Removing 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.

dzieyzone’s picture

StatusFileSize
new3.13 KB

attached 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.

dzieyzone’s picture

Status: Needs work » Needs review

Forgot to change the status. refer to http://drupal.org/node/611816#comment-2229146

avpaderno’s picture

Status: Needs review » Needs work
  1.   if (!empty($belatedpngapply)) {
        drupal_set_html_head('<!--[if lt IE 7]>
    <script type="text/javascript" src="'. base_path() . drupal_get_path('module', 'belatedpng') . '/belatedpng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix("'.$belatedPNGapply.'");
    </script>															 
    <![endif]-->');
      }
    

    The code could use drupal_add_js().

  2. The file belatedpng.admin.inc contains just a function; its content can be moved into the module file.
dzieyzone’s picture

Status: Needs work » Needs review
StatusFileSize
new2.79 KB

@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.

dzieyzone’s picture

StatusFileSize
new2.63 KB

Re-uploading...

bennyjs’s picture

Thanks 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.

dzieyzone’s picture

Component: Miscellaneous » Code

please review my code.

avpaderno’s picture

Component: Code » Miscellaneous
sebsebseb123’s picture

Great module! PNGfix had bugs when it came to background positioning.

belatedPNG works well...could be cleaner though.

For example, this shouldn't be here:

    drupal_set_html_head('<!--[if lt IE 7]>
<script type="text/javascript" src="'. base_path() . drupal_get_path('module', 'belatedpng') . '/belatedpng.js"></script>
<script type="text/javascript">
	DD_belatedPNG.fix("'.$belatedpngapply.'");
</script>															 
<![endif]-->');
  }

...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!

avpaderno’s picture

maybe you could use PHP's $_SERVER['HTTP_USER_AGENT'] to check for IE 6

The 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).

jaypan’s picture

I agree. Conditional comments are the most reliable way to target IE browsers.

avpaderno’s picture

Status: Needs review » Fixed
avpaderno’s picture

I apologize for the delay in approving this CVS application.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

perandre’s picture

Will it be released? Worked well for me.

alexpott’s picture

This has worked well for me too (in a situation where the similar pngfix and pngbehave modules did not). Thanks dzieyzone!

emudojo’s picture

StatusFileSize
new1.82 KB

I 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

Jeff Burnz’s picture

@emudojo - please post your patch to the issue queue for this module, cheers.

skolesnyk’s picture

Oh 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.

helmethead’s picture

This 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