The AddThis module provides Drupal integration to addthis.com link sharing service.
Description from addthis.com:
The AddThis button spreads your content across the Web by making it easier for your visitors to bookmark and share it with other people, again... and again... and again. This simple yet powerful button is very easy to install and provides valuable Analytics about the bookmarking and sharing activity of your users. AddThis helps your visitors create a buzz for your site and increase its popularity and ranking.
AddThis is already on hundreds of thousands of websites including SAP, TIME Magazine, Oracle, Freewebs, Entertainment Weekly, Topix, Lonely Planet, MapQuest, MySpace, PGA Tour, Tower Records, Squidoo, Zappos, Funny or Die, FOX, ABC, CBS, Glamour, PostSecret, WebMD, American Idol, and ReadWriteWeb, just to name a few. Each month our button is displayed 20 billion times.
Requirements
None.
Installation
Normal Drupal 6 module installation, see http://drupal.org/node/70151 for further information on how to install modules.
See also: Drupal 7 installation & configuration instructions.
For link sharing statistics registration at http://addthis.com/ is required, but the module will work even without registration.
Configuration
There are two ways of using the Drupal 6 module:
-
Display AddThis button in node links.
- Go to Administer / Site configuration / User Interface / AddThis.
- Check Display on node pages.
- Optionally check Display in node teasers.
- If you want to limit AddThis visibility by content type go to Administer / Content management / Content types and choose a content type. Visibility can be set for each content type under Workflow settings.
-
Use AddThis as a block.
- Go to Site building / Blocks and make AddThis button block visible.
Customization
You have a number of options available at Administer / Site configuration / Addthis under Button image settings
and Widget settings. Image settings control the button image and widget controls the drop down and window that is opened when user clicks on a link sharing service. More information on how to customize your AddThis button can be found at http://addthis.com/help/customize/custom-button/
If configuration options are not flexible enough for you it is also possible to override theme_addthis_button in your own theme.
Ajax
If you use ajax features like in views, buttons may not appear because the content is loaded with ajax. The following code fixes that.
Code for D7:
This should be fixed starting with version 7.x-4.0-alpha3.
Code for D6:
Drupal.behaviors.addThisAJAX = function(context) {
var script = 'http://s7.addthis.com/js/250/addthis_widget.js#domready=1';
if (window.addthis){
window.addthis = null;
}
$.getScript( script );
};
Roadmap
Future development of this module will include at least RSS support. CCK and Views integration may be included in future releases.
Drupal 5.x version will no longer get any new features.
Drupal 7.x has been a complete rewrite of the module into version 4.x. There are now alpha release that are ready to be tested out.
Contact
Current maintainers: