blog RSS feed home | technical info | demo | source-code | privacy policy

shareNice : unintrusive social sharing

Technical Information

Using shareNice on your website

To add our uninstrusive social sharing feature, see the demo, to your website all you need to do is include the following javascript code on your webpage:

<script src="" type="text/javascript"></script>    

and add the following div element to your page source:

<div id="shareNice"></div>

Configuring the shareNice lightbox

One can now reconfigure shareNice, using the following five attributes

Example config

If you want to config the text to say "shareNice this page" and only have icons for the following sites:,,email,,, use the following HTML on your page:

<div id="shareNice" data-services=",,email,," 
data-share-label="shareNice this page"></div> 

See for an example of this configuration setup in action.

Our setup on

We are hosting sharenice as a virtual host on an Apache Server, using the following httpd.conf file

        DocumentRoot /var/www/vhosts/
        UseCanonicalName Off

        CustomLog /dev/null combined

        RewriteEngine on
        RewriteCond %{HTTP_HOST} ^ [NC]
        RewriteRule ^(.*)$$1 [L,R=301]

As you can see, we are redirect ALL logs to /dev/null and as a result we are not collecting ANY information about users of

You can host your own version of shareNice

If you would like to host your version of the shareNice tool, you can download and follow the provided instructions in shareNice's repository on github. shareNice is free software please see our license for more information.

Questions, Comments, and Feedback

If you have any questions regarding shareNice please either pop into #shareNice on, or email [shareNice at mmt me uk]. All comments and feedback are welcome. shareNice is an open-source project if you feel like something can be done better feel free to hack away yourself or submit a bug-report on the shareNice git repository's issue tracker.

Hand-rolled in vi 2011