CVS edit link for amcc

Module description:
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

CommentFileSizeAuthor
#1 drag_to_share.zip34.22 KBamcc

Comments

amcc’s picture

Title: amcc [amcc] » drag_to_share module
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new34.22 KB
avpaderno’s picture

Title: drag_to_share module » amcc [amcc]
Issue tags: +Module review

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

avpaderno’s picture

Status: Needs review » Fixed
  1. function drag_to_share_menu() {
      $items = array();
    
      $items['admin/settings/drag_to_share'] = array(
        'title'            => t('Drag to Share'),
        'description'      => t('Settings for Drag to Share.'),
        'page callback'    => 'drupal_get_form',
        'page arguments'   => array('drag_to_share_admin_settings'),
        'access arguments' => array('administer drag_to_share'),
        'file'             => 'drag_to_share.admin.inc',
      );
    
      return $items;
    }
    

    Menu titles, and descriptions should not be passed to t() because that is already done by Drupal code.

  2. 	if (arg(0) == 'node'){
    		// load the node
    		$node = node_load(arg(1));
    		
    

    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.

Status: Fixed » Closed (fixed)
Issue tags: -Module review

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

avpaderno’s picture

Component: Miscellaneous » new project application
Assigned: Unassigned » avpaderno
Issue summary: View changes