Embed Addthis

Posted by Ed Johnson on 09 Nov 2009 01:10, last edited by gerdami on 24 Apr 2010 11:14

Tags: addthis bookmark social

rating: 0+x

Paste this code into your site where you want the addthis widget displayed:

[[embed]]
<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_pub="xa-4af76c7a0c08c0dd";</script>
<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-addthis-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>
<!-- AddThis Button END -->
[[/embed]]

Note: The above code does not track any results. You can create an account at http://www.addthis.com and get personalized button code so you can track you own results.

Note 2: It appears that Addthis has changed the way they generate embed code and the new code is not compatible with Wikidot's [[embed]] ... [[/embed]] syntax (a "no match" error occurs).

Note 3:
You cannot just use [[html]]…[[/html]] because it would take the yoursite.wdfiles.com domain.


Here is a sample of the new code generated by Addthis:

<!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://addthis.com/bookmark.php?v=250&amp;pub=pizzageek"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=pizzageek"></script>
<!-- AddThis Button END -->

Until Wikidot updates their embed code, a workaround is to use the code in the first code block above, but Replace the pub= string (xa-4af76c7a0c08c0dd) with your user name from your Addthis account (pizzageek in this example) and it should work.

In action

Bookmark and Share


Related articles

Comments

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.