New Identi.ca Share Button

June 30th, 2011 by Jacob Barkdull

NOTE: This share button is no longer available, as identi.ca has not run StatusNet (now known as GNU social) for years now and the code is therefore incompatible with the site. This page is preserved for historical/archival purposes, and the code remains available for download as a ZIP file.

Identi.ca still doesn't have a proper share button. For a long time I've looked for a good Identi.ca share button. One like Twitter's, one that: displays a count of posts, and lets people share the page with the post automatically containing the page title and URL. I looked so long without finding anything that I wrote one myself. And I've talked a little bit about the half-PHP-half-JavaScript Identi.ca share button that I wrote, but I really haven't shown it off or explained how to use it. It's kind of pointless to write it just for myself.

So allow me to explain a few things.

How It Looks

Identi.ca Share Icon Identi.ca Share Icon <-- Beauty, eh?

How It Works

The button works by sending the current page URL to Identi.ca's search and counting how many times it appears in the JSON feed. That number is used to represent how many other people have "dented" something about the page. That number is also a link that links to a page to post a new notice containing the page title and URL. If you'd like a better understanding, the source code is here

The Button Code

Either via JavaScript or an Iframe. Simply copy the lines for whichever method you like, paste them where you want in your HTML code. And you're done. Additionally, you may use a specific page title by adding "?title=<page title here>" after the "identishare.php", and/or use the secondary style by using "?style2", if you're using the Iframe code these options should be "&title=<page title here>" and "&style2" respectively. You may also host the files yourself, which I would recommend and appreciate.

The code you'll need to use the button on your website:

  1. Identi.ca Share Icon Default Style

    Use this code if you'd like to use JavaScript:

    * Code no longer available *

    Use this code if you'd like to use an iFrame:

    * Code no longer available *

    Use this code if you'd like to use an Object:

    * Code no longer available *
  2. Identi.ca Share Icon Secondary Style (more like Twitter's)

    JavaScript code:

    * Code no longer available *

    iFrame code:

    * Code no longer available *

    Object code:

    * Code no longer available *
  3. Identi.ca Share Icon Default Style (wide)

    JavaScript code:

    * Code no longer available *

    iFrame code:

    * Code no longer available *

    Use this code if you'd like to use an Object:

    * Code no longer available *
  4. Identi.ca Share Icon Default Style (wide & small)

    JavaScript code:

    * Code no longer available *

    iFrame code:

    * Code no longer available *

    Object code:

    * Code no longer available *

A Few Sites Using The Button

Note: some of these sites use an older version of the button.

Softcatalà
Ethical Pets
Cuslanz
Inconstant Moon
Emmabuntüs' Blog
JRobb.org
Jason's Chatter
Tekkit Crunch
Fyns Linux User Group
Metztli IT Blog
Planet Communia
Duh Časa

Help Me Out

Please help me improve the button, if you make improvements please send them my way. "Perfect" isn't a word I would use when describing this button. It is perfectly functional, but it doesn't do a few important things, like count short URLs. However, I think it is still the best button around currently.

Another thing you can do to help me out is host the files yourself. It's okay if you want to use this button as-is, but please host the files yourself if you are able. I'd just rather not have my server doing the work. These are the files you'll need: identishare.zip

Also, you can help me by Flattring this page.

Thank you. And enjoy :)

Loading...

On the Blog RSS

May 2nd, 2015

Over the past few days I've been in talks with a nice fellow named Kamil Jablonski, a concept artist, graphic designer, and web developer who recently contributed a Polish locale for HashOver. He shared with me a logo design for HashOver, that after some back and forth became, in my opinion, a very cool design.

September 17th, 2014

It was some time ago when I wrote the original share button for Identi.ca, back then Identi.ca enjoyed quite a lot of traffic and user activity, but more than that it was also developed heavily and was praised by many, including myself, for being technologically impressive whilst allowing easy online conversations and communication.

August 25th, 2014

This may sound like analyzing yesterday's news, but I think it's important, and more than that I need to put this here as a resource to point certain people to.

Subscribe to Newsletter

Want to get the latest news and updates about my software, blog posts and behind the scenes information? Than subscribe to my newsletter to stay up-to-date!