"Drag to Share" module - drag and drop sharing to Twitter, Digg, Delicious, Facebook etc

Events happening in the community are now at Drupal community events on www.drupal.org.
amcc's picture

I've created a module for a site i'm working on that allows drag and drop sharing, i'd like to share this with the community. This works by adding jquery to the page and allowing you to drag images and drop them on logos to share the page with various social applications - it uses Twitter, Delicious, Digg and Facebook, though more could easily be added.

I've seen this on a few websites, the one below is a good example (roll over the main image).:
http://abduzeedo.com/reader-tutorial-easy-digital-painting-illustration-...
The above site uses the Meebo toolbar:
http://business.meebo.com/publishers/
demo here:
http://business.meebo.com/demo/

There's a tutorial which i've borrowed from to create the jquery (with the authors permission):
http://net.tutsplus.com/tutorials/javascript-ajax/drag-to-share/
demo here:
http://nettuts.s3.cdn.plus.org/467_dragtoShare/source/dragToShare.html

I also found a discussion on exactly this with a few other users wanting the same thing, here:
http://drupal.org/node/633486

The module i've made has various admin options:
You can select the node type to activate the module on,
you can add css tags to select only specific types of image,
you can also show only the social services you want.

I've modified the code from the tutsplus.com tutorial fairly heavily, my version only needs jquery 1.2 so it will work with a standard drupal 6 install, has a dependency on jquery_ui (http://drupal.org/project/jquery_ui)

I'd welcome any thoughts - i can upload a copy of the module if necessary

Comments

You welcome my thoughts? I

Garrett Albright's picture

You welcome my thoughts? I think it's an incredibly, incredibly, incredibly horrid gimmick, but don't let that stop you.

One thing to note is that you can only post code on Drupal.org if it is licensed under the GPL. I can't find any mention of what license the code available on that tutsplus.com page is under, but if it's not under the GPL, modifying it - even fairly heavily - isn't going to put it under it - you may need to rewrite it completely yourself to ensure compliance.

Code license

amcc's picture

The tutorial was used as a starting point for this module, the code has been developed extensively from that point. I have also contacted the author of the tutorial to ask if he minds me creating a drupal module with this functionality as it would behave in a similar way to his tutorial (though the tutorial itself states that it's emulating various pre existing sites that do this). I have full permission to go ahead.

I am not including any files from elsewhere that are under a different licence so I don't think there could be any licencing issues.

It's probably best to look at what I've done rather than make a snap judgement. There is one fairly small js file containing very standard JQuery code that does most of the work. As for whether it's a good idea or not that isn't really of interest. It's something requested by clients of mine, and various other people within the Drupal community.

The tutorial was used as a

Garrett Albright's picture

The tutorial was used as a starting point for this module, the code has been developed extensively from that point. I have also contacted the author of the tutorial to ask if he minds me creating a drupal module with this functionality as it would behave in a similar way to his tutorial (though the tutorial itself states that it's emulating various pre existing sites that do this). I have full permission to go ahead.

But it's not the original author of the code that has this policy; it's the D.o site. It's strict and sometimes frustrating, but it's the rules and we have to play by them. That's why, for example, when you install the [F]CKEditor module, you have to download the actual [F]CKEditor scripts separately and copy them into the module directory yourself.

I've now made the a module

amcc's picture

I've now made the a module called 'Drag to Share' find it here:
http://drupal.org/project/drag_to_share

Contributed Module Ideas

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: