Secureshare / Social Share Privacy

provides a implementation of the 2-click-solution from heise.de ( http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html )
for more privacy against Facebook, Twitter and Google+. This module implement the heise-jquery-code using libraries.

Installation:

  1. Download the jquery-code from http://www.heise.de/extras/socialshareprivacy/ , extract it and put it in your libraries folder Example: sites/all/libraries/ > sites/all/libraries/socialshareprivacy
  2. Go to admin/build/modules and enable secureshare and secureshare_block or secureshare_field or both.
  3. Got to the settings (block or content type) and select an profile

The Drush way (from dev version of this module)

on enabling with drush it will download the library from heise

  1. drush dl secureshare
  2. drush en secureshare

Configuration:

Profiles:

You can create your own settings profile under Configuration > content authoring SecureShare profiles ("admin/config/content/secureshare").

Submodule: secureshare_blocks

The submodule provides a simple block you can select the profile in the normal block settings

Submodule: secureshare_fields

This submodule provides a simple element field implementation for entities. Currently only node bundles are activated. You can select the profile in the content type settings and under the display view settings you can change the visibility and position.

Known problems:

the css file in the heise library seems broken some stylings. Its not part of this module to fix these things.
But you can use hook_css_alter or theme to replace them. Or you can override the failures in your theme css. Feel you free to send an issue to heise.de to fix the css code ;)

Developers:

The core module uses hook_element_info() so you can use in your module like other drupal render elements.

  • #type need to be set to "secureshare"
  • #secureshare_profile is the machine name of the secureshare settings profile. Example: "default"
  • #secureshare_config (optional) is a array with the heise plugin settings. Options will be merged over the profile settings.

Example (profile usage / minimal implementation):

  $element['myelement'] = array(
    '#type' => 'secureshare',
    '#secureshare_profile' => 'default',
  );

Example (profile usage / configuration overwrite):

#secureshare_config will be merged over the profile settings.

  $element['myelement'] = array(
    '#type' => 'secureshare',
    '#secureshare_profile' => 'default',
    '#secureshare_config' => array(
      'css_path' => '/my/path/to/css/file.css',
    ),
  );

Example (configuration alter):

You can also alter the configuration settings before used in pre render by.

hook_secureshare_config_alter(&$config, $profile = 'default'){}

Drupal 6

We don't create a Drupal 6 version of this module but backport patches are welcome.

Dependencies

i18n / localisation support

work in progress and comes with next bigger release

Disclaimer

The original Javascript Plugin was created under the MIT License by: Heise Zeitschriften Verlag GmbH & Co. KG and can be downloaded under: http://www.heise.de/extras/socialshareprivacy/

This drupal module was sponsored by:
ProjektWaterkant UG
TWD - team:Werbedesign UG

Project information

Releases