Wednesday, May 27. 2009
Launched in 2006, addthis has become the #1 bookmarking and sharing button on the Internet. Many serendipity developers and website owners have incorporated the addthis code, or "widget", into their serendipity templates. I personally added it to a number of my own templates, and this code has been a part of the current serendipity default template Bulletproof since its initial release. Addthis has maintained compatibility with older versions of their scripts, but I decided it was time to update the script, especially since they just released a new version today.
There are several button choices. Below are the current button choices, and the corresponding <img> code necessary to fetch each button:
(used in example above)
<img src="http://s7.addthis.com/static/btn/lg-bookmark-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0" />
<img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0" />
<img src="http://s7.addthis.com/static/btn/lg-addthis-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0" />
<img src="http://s7.addthis.com/static/btn/sm-bookmark-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0" />
<img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0" />Serendipity's Bulletproof template has been updated in SVN with this modification, or you can update your own copy of entries.tpl if you do not want to fetch the latest nightly build.
For more information, please visit the Addthis website, forum, or blog.
If you enjoyed this article, please leave a comment and bookmark it at your favorite social bookmarking sites using the Bookmark button below so that others will enjoy it as well!
Ich muss zugeben, ich habe mich bisweilen mit dem Dienst AddThis nicht sehr beschäftigt. Ich kann dieses Service in mein eigenes Blogs, in meine eigene Website integrieren. Danach stehen meinen LeserInnen ein Bookmarking Tool für rund 50 Social Networks
Let me know what you would need to include an option to generate the code for Serendipity, much like you currently have options for WP, TypePad, etc.
I tried this code in the entries.tpl I'm not using the Bulletproof template.
Whenever I try sharing a blog post on say twitter the url comes up like this 'http://%7B%24entry.rdf_ident%7D/'
What am I doing wrong?
It might also be helpful if you provided your URL. Also provide your email address in the comment form - only I can see it.
I added my email & website. Warning the site is an adult blog, however I really need this to work......
I think you have entered the code twice - once from an example you may have seen on the addthis site, and a second time from my example above. Use only the code from my example in this entry.
Also make sure that you replace the addthis account number code if you are not using bulletproof.
Your code has only been added once to the entries.tpl The other addthis code you might be seeing is the bookmark in the sidebar.
Replacing the addthis account number does not make a difference to the url it's picking up like this '%7B%24entry.rdf_ident%7D'.
That email address should be working though.
Jersey Display Case
You should post this on the serendipity forums if you haven't already.
Also, has AddThis responded to your request to add Serendipity to their list of blog options for their code generator?