CVS edit link for calexo

Hello all !
I'm a user of Drupal, and created some sites.
Now, I'd like to go further, and begin helping this powerful community.
I have some project in mind. The first one will be creating a filter which will allow to fix a maximum size for images (Only local images are allowed. tag). image_resize_filter will then be able to do the job.
As a french user, I'd like to help in translations too.
It is right now impossible to do this for user-created content in bbcode, for example.
Thanks a lot, and go Drupal go !!
CommentFileSizeAuthor
#1 image_max_filter.zip11.61 KBcalexo

Comments

calexo’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new11.61 KB

Here is the image max filter project.
Thanks for your review !

avpaderno’s picture

Status: Active » Needs work
Issue tags: +Module review

Hello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.

As per http://drupal.org/cvs-application/requirements, the motivation message should be expanded to contain more details about the features of the proposed module/theme; for modules it should include also a comparison with the existing solutions, while for themes a screenshot is also required.

calexo’s picture

Status: Needs work » Active

Hello,
Thanks !
Given that I can't edit my original motivation message, here are the details about the module.

It allows to fix a maximum width and/or height for inline images (< i m g > tags). Those sizes can be set by on a format basis.
If a size is already in the tag, it checks wether this size is greater than the max or not. If so, it reduces it.
If no size is given in the original HTML, the module sets to the max value.
Ratios are kept.
I think that's all !
I developped this module, because I couldn't find a solution without modifying the Image Resize Filter (the author refused to add this feature in his module), or modifying the bbcode module which produces the HTML code for my website.
Now, users can add inline images without checking their size ! Thanks to this module combined with Image Resize Filter, the picture are resized to dimensions which don't break the theme.
Thanks !

PS. Sorry for my english, but as said, I'm french !

avpaderno’s picture

Status: Active » Needs review
calexo’s picture

Please ?

avpaderno’s picture

Status: Needs review » Needs work
  • The points reported in this review are not in order or importance / relevance.
  • Most of the times I report the code that present an issue. In such cases, the same error can be present in other parts of the code; the fact I don't report the same issue more than once doesn't mean the same issue is not present in different places.
  • Not all the reported points are application blockers; some of the points I report are simple suggestions to who applies for a CVS account. For a list of what is considered a blocker for the application approval, see CVS applications review, what to expect. Keep in mind the list is still under construction, and can be changed to adapt it to what has been found out during code review, or to make the list clearer to who applies for a CVS account.
  1. License files cannot be committed in Drupal.org repository. Projects committed in Drupal.org repository have the same license used by Drupal.
  2. /**
     * Implementation of hook_install().
     */
    function image_max_filter_install() {
      drupal_set_message(t('The image max filter has been installed.'), 'warning');
    }
    
    

    The message is not a warning message, but eventually a status message. Such messages are not useful; when the users install a module, they expect the module to be installed. The message should be given if the module has not been correctly installed; in such cases, Drupal probably reports an error message.

  3. AFAIK, filter modules don't implement hook_uninstall().
  4.         t('Visit the <a href="!url">Input formats</a> configuration page. Click "configure" next to the text format you want to enable the image max filter on.', array('!url' => 'admin/settings/filters')),
    
    

    The code is not using the correct URLs placeholder.

  5. See http://drupal.org/coding-standards to understand how a module should be written. In particular, see how the code should be formatted.
  6. Could you describe the difference between the proposed module, and http://drupal.org/project/image_filter, http://drupal.org/project/image_resize_filter?
avpaderno’s picture

Status: Needs work » Closed (won't fix)

Please read the following links as this is very important information about CVS applications.

Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for these applications. Please read Migrating from CVS Applications to (Git) Full Project Applications and Applying for permission to opt into security advisory coverage on how this affects and benefits you and the application process. In short, every user has now the permissions necessary to create new projects, but they need to apply for opt into security advisory coverage. Without applying, the projects will have a warning on projects that says:

This project is not covered by Drupal’s security advisory policy.

avpaderno’s picture

Component: Miscellaneous » new project application
Issue summary: View changes