This plugin adds social media buttons to your web site (to the footer of each page, the article page or the sidebar) without compromising the privacy of website users. It implements shariff by Heise Medien GmbH (Github, article) in Open Journal Systems.
This plugin has been tested with OJS version 3.4.0. It should also be compatible with OMP 3.4 and OPS 3.4.
Available social media services (as of Shariff 3.2.1) are:
Additionally an info button that links to the heise article can be added. You can also add a mail icon.
The plugin offers a selection of settings like themes, orientation and position of the social media buttons (see settings below) accessible via "Website -> Appearance".
The plugins will be displayed in the language of the website.
You can add the Shariff PHP Backend to display the number of likes (not tested, see below).
This plugin is licensed under the GNU General Public License v3. See the file LICENSE for the complete terms of this license.
This plugin is compatible with OJS version 3.4.0. It should also be compatible with OMP 3.4 and OPS 3.4.
Clone this repo in your plugin folder (/plugins/generic) or download the code and tar.gz it and upload it via the gui (Website Settings > Plugins).
The settings form can be found unter "Website -> Appearance -> Shariff Plugin". The following settings are available:
Install the plugin as described above, activate it and choose the settings you prefer. If you choose the sidebar option, you need to enable the new Shariff-block under management/settings/website.
To display the numbers how often a page is shared in social media, you need to add the Shariff PHP Backend (https://github.com/heiseonline/shariff-backend-php/releases) to you OJS installation. To set up the backend you need to have access to the code. Follow the steps:
Documentation, bug listings, and updates can be found on this plugin's homepage at http://github.com/ojsde/shariff. Contact us via support@ojs-de.net. Find out more about the project OJS-de.net.
This plugin works for OJS and OMP 3 (the code is the same). The shariff solution by heise (version v3.2.1) is included in the plugin code (MIT License). It adds the social media buttons using html, css and js. The plugin uses hooks to add content, no existing templates are being overwritten. No database access is needed.
The buttons are added via template hooks:
To add the plugin to the sidebar, this plugin is also a block plugin.
The shariff solution offers different settings (see data attributes https://github.com/heiseonline/shariff). A selection of them are used in this plugin (some are filled automatically, some can be chosen by the user in the plugin setting):