Integration of share42.com social sharing buttons widget.

Advantages

  • Beautiful icons - All icons are made in the same style and look beautiful.
  • Small size - The code of the script is perfectly optimized. In addition, it will be cached by the browser.
  • No requests to third-party sites - There are many situations when the website opens too slowly, because the script is loaded from another website. Installation of the script on your website will allow to avoid this problem.
  • No extra links - All links are made via JavaScript, so when you install the script the number of outbound links on your website will not increase.
  • No extra HTML code - All the HTML code of the buttons is generated with JavaScript.
  • Uses only one image (sprite) - It will reduce the number of requests to the server that hosts your website.
  • You choose social media services to be available on your website.
  • Easy to install.

Installation

  • Go to share42.com and generate the widget like you want
  • Download the script and unpack the files into "sites/all/libraries/share42" folder - both "share42.js" and "icons.png"
  • Enable the module and use it either as a field or as a block

Custom icons

If you want to have your own custom icons please modify the icons.png file changing the needed icons to the ones you need on your site. The module might add support for the custom icon packages in the future versions.

Multi-site setup

If you are using multi-site setup and want to have different widget setup per site then you should unpack the share42 files to the site specific folder like 'site/sitename/libraries/share42' and tell the module to use it either of 2 ways:

  1. Libraries module - just install it and the module will use the site specific files from 'site/sitename/libraries/share42'
  2. Variable "share42_library_path" - you can set this variable per site either through the code or in settings.php:
    $conf['share42_library_path'] = 'site/sitename/libraries/share42';

Variable will always override anything returned by the Libraries API.

Credits

Initial development was done by Alexey and sponsored by http://drupal.in.ua

Project information

Releases