I have created a module called "Drag to Share" which allows users to share a node with various social websites. The module differs from anything else available on Drupal.org by using JQuery to allow users to drag an image to activate the sharing functionality. The inspiration for this was from the Meebo Toolbar which can be found here (rollover an image to activate it):
http://business.meebo.com/demo/
There's a tutorial which i've borrowed from to create the jquery (with the authors full permission):
http://net.tutsplus.com/tutorials/javascript-ajax/drag-to-share/
Here is my module in action (rollover the image to test):
http://01am.co.uk/blog/testing-all-browsers-mac-and-pc
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).
Module functionality:
The module allows you to share the node with Twitter, Delicious, Digg and Facebook
It does this without interrupting the structure of the page as nothing is shown until you hover over an image.
You are prompted to drag an image, when you do this the screen darkens and the logos for the social websites above animate onto the screen. A message with the image/page title and a small version of the image gets attached to the cursor so you can drop it on one of the logos. Dropping the message onto the logo opens a new window that shares the current node by passing the url and title.
The module creates various options for the user:
you can choose the node types to include the functionality
you can choose which services you want to include
you can enter custom css tags to narrow down which images get the "drag to share" functionality
New features:
After searching drupal.org and talking to a number of other users i've seen no other module that offers this drag and drop functionality. It is something i've included on a clients site recently and plugs a gap in needing this kind of sharing functionality without altering the design of the site and adding lots of logos.
A number of users have expressed an interest in a module providing this functionality here:
http://drupal.org/node/633486
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | drag_to_share.zip | 34.22 KB | amcc |
Comments
Comment #1
amcc commentedComment #2
avpadernoHello, and thanks for applying for a CVS account.
I am adding the review tags, and soon one of our volunteers will review your code, and points out the eventually parts that needs to be changed.
Comment #3
avpadernoMenu titles, and descriptions should not be passed to
t()because that is already done by Drupal code.It should be better to use menu_get_object(), which would return the correct node object, in the case revisions are enabled.
Thank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.
Comment #6
avpaderno