The idea is to be able to draw. You can start from scratch or import an image from flickr. The optional flickr integration uses flickrapi module. The nodes are saved using imagefield module.
Basically I want kids to be able to use it, so it tries to be quite easy. I'm also planning on integrating onto drupal other html5 canvas apps (don't know what apps yet) but as I'm new to drupal and this is my first module, i'd like to have some feedback.
You can download the module at: http://dl.dropbox.com/u/1041436/paint.zip
Be aware that you'll also need to download paintweb from the http://code.google.com/p/paintweb/. So please read the README.txt file
Screenshots:
*Paintweb loaded: http://dl.dropbox.com/u/1041436/screenshot.png
*Import from flickr: flickrhttp://dl.dropbox.com/u/1041436/screenshot1.png
That's all, thanks for your time :)
Oscar
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | paint_8.zip | 14.38 KB | omllobet |
| #12 | paint_7.zip | 16.34 KB | omllobet |
| #9 | paint_6.zip | 16.38 KB | omllobet |
| #8 | paint_5.zip | 16.3 KB | omllobet |
| #6 | paint_4.zip | 16.14 KB | omllobet |
Comments
Comment #1
omllobet commentedComment #2
omllobet commentedNew version with some minor modifications to make it works in sites with javascript performance option enabled and clean url.
I've removed paint from dropbox.
Thanks.
Comment #3
avpadernoHello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review the code, pointing out what it needs to be changed.
As per requirements, the motivation message should be expanded to contain more features of the proposed project. For themes, it should include also a screenshot of the theme, and (when possible) a link to a working demo site using the proposed theme; for modules, it should include also a comparison with the existing solutions.
Comment #4
omllobet commentedWell, first of all it integrates paintweb: paintWeb is a Web application which allows users to draw inside the Web browser, making use of the new HTML 5 Canvas API. So you'll be able to draw and also to edit images in the browser. So this module comes with the editor and integrates the save button into drupal so when you hit the save button on paintweb a new image node is created/update if you have the rigth permissions (the image nodes uses imagefield module). Yo also have the ability to search and import images from flickr in a really easy way so you don't have to start drawing from scratch. It offers a edit button when you are on the edit node page. An you can also see an editing link when you're not on the teaser view of a node. And also the module has the ability to make a copy of a node if it has permissions.
Currently the modules for image edition that I found basically can crop or turn images. In http://drupal.org/node/769830 you can see some start code to integrate paintweb as a tinyMCE plugin, but it seems there was no more work on it and it was never released as a module.
I've set-up drupal in a free hosting here: http://osini.byethost31.com/drupal/
Thanks,
Comment #5
omllobet commentedChanged some permission names to fit in drupal style permissions. Also, made the README more clear.
Also, you can find a demo of paintweb (not within drupal) at
http://www.robodesign.ro/paintweb/trunk/demos/demo1.html
Thanks
Comment #6
omllobet commentednew version: use menu_get_object instead of arg
Comment #7
avpadernohook_uninstall().I am not sure I understand what the purpose of
strcmp($fieldname, check_plain($fieldname))is.#requiredis not used for hidden form fields.What is the purpose of a form that has only hidden fields?
That code should be part of the access callback.
Why isn't the code calling
drupal_set_message()?The code should not call
exit()in such cases.The code should also check the node is published.
l()is the right function to call in this case.Comment #8
omllobet commented1.- ok, done.
2.- ok, done.
3.- ok, done.
4.- That's to inform the user not to put some html or strange chars in the name of the field and the other settings
5.- ok, done
6.- That form is used to pass some params to download the flickr image. So:
1.-The user selects the import flickr link.
2.-Searches a text. Submits paint_flickr_form()
3.-Then 12 or less thumbnails appear on the web. see paint_get_flickr_photos
It clicks one, and then the module fills with javascript this form and submit it (see flickr.js).
So now, the module can download the real image, see paint_download_image and this image is loaded into paintweb.
Is it ok? or do you prefer another solution like to put in every image a link like http://{domain_name}/?q=paint/flickr/download&farmid=2&id=18212&secret=999182
7.- ok, done
8.- ok, done
9.- ok, done
10.- ok, done
11.- ok, done
Comment #9
omllobet commenteduse file_save_data
added some little javascript
Comment #10
mlncn commentedHello omllobet,
Huge apologies that your module and CVS application has remained un-reviewed for so long. I can see you have made changes or addressed everything in kiamlaluno's very thorough partial review.
Another note:
Everything else looks good and i recommend your application for approval, you can correct comments and anything else that comes up in code committed to drupal.org proper!
Thanks for this module!
Comment #11
avpadernoComment #12
omllobet commentedComments corrected
Comment #13
mlncn commentedComment #14
zzolo commented@Daniele, thanks for the application and patience. There are still a couple thing I would like to clear up before approval. I am sorry for the delay but I feel they are pretty important.
The following points are just a start and do not necessarily encompass all of the changes that may be necessary for your approval. Also, a specific point may just be an example and may apply in other places.
Neccessary for approval:
This function needs to be in a .install file.
This function is not named correctly and is probably not fired. (I have not actually tried to run the module so do not know). Should not have the double underscore.
Why are you form altering your own form? This seems unnecessary.
HTML output should be in a theme function. You could also just consider putting these parts into the form definition itself with the appropriate attributes and form types.
Suggested for a better module (IMO), but not necessary for application approval:
Should be the following (note the spaces):
Inline JS is not cool for many reasons. Please consider moving this to your JS file and utilizing jQuery.
Not proper American English.
--
Note: Please be patient with the CVS application process. It is all done by volunteers. Our goal is not to be arbitrarily slow or meticulous. Our goal is to get you CVS access and ensure that you are and will become a more responsible Drupal contributor. For a quick reference on what I look for in a code review, please see this article, or read the handbook page on how to review for reference.
Comment #15
zzolo commentedHi @omllobet, sorry for the name mix up above, the message was indeed intended for you.
Also, just wanted to say that you are very close and doing a great job!
Comment #16
omllobet commentedNecessary
1.- ok, changed.
2.- ok, done.
3.- totally true, it seems I messed up in a revision.
4.- yeah, fixed.
5.- ok, done.
Suggested
1.- I'll take a look :).
2.- changed some function names and variable names to lowerCamelCase, some spaces corrected and changed the name of some vars to something more meaningful.
3.- ok, corrected.
4.- ok, I'll try to simplify it when it gets approved..
5.- Could you explain a little bit more how'll that work. You mean have like a imagefield field in a node but a paintweb field so people will see the paintweb app algon with other nodes and be able to create an image on the node creation right?
As a side note I'm planning to integrate paintweb into Wysiwyg so this work http://drupal.org/node/769830 doen't get lost. (already contacted with the code author).
6.- ok, now in my todo list.
7.- thanks, fixed.
8.- mmm I see, I'll split the optional flickr part into another file. Now in my todo list before a release is done.
I'd also like to thank the reviewers for your time and help.
Oscar
Comment #17
omllobet commentedups, I forgot to attach the file.
Comment #18
zzolo commentedHi @omllobet, thanks for the application and patience. Congratulations, you have been approved. The following points are more recommendations for when you do put your code on drupal.org and develop it further; these are not requirements, simply suggested improvements based on my experience and knowledge of the existing Drupal community. Also, please read further about CVS access and resources.
This CSS assumes that Drupal is in the webroot which is not a good assumption. Unfortunately there is not a really good way to do this considering how one can't use variables in CSS. I would simply copy that image to your module, as we know its GPL.
Please read the following resources to make sure you know how to use CVS and the specifics to the Drupal CVS infrastructure, as well as how to be a good module maintainer on Drupal.org. The Drupal community is very large and dynamic; we welcome you as a module maintainer and hope that you embrace and challenge the Drupal community and continue to contribute.
Thanks to the following people who helped review this application, it is very appreciated:
--
Note: Please be patient with the CVS application process. It is all done by volunteers. Our goal is not to be arbitrarily slow or meticulous. Our goal is to get you CVS access and ensure that you are and will become a more responsible Drupal contributor. For a quick reference on what I look for in a code review, please see this article, or read the handbook page on how to review for reference.
Comment #21
avpaderno