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
<-- 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:
-
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 * -
Secondary Style (more like Twitter's)
JavaScript code:
* Code no longer available *iFrame code:
* Code no longer available *Object code:
* Code no longer available * -
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 * -
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 :)