The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
Extservice
jquery.extservice.js is a plugin that allows you to add embedded items from external services to a webpage easily and with a consistent syntax.
Currently supported services:
- Digg (the “digg it” button)
- Disqus (the forum thread for your webpage)
- Delicious (the blog badge)
- Google Analytics (the tracking code)
If the document contains
<title>An awesome document – My awesome website</title>
<meta name="title" content="An awesome document">the meta value will be used as the default title for Digg and Disqus. Failing that, the value of the title element will be used.
The content of a <meta name="description" content="..."> element, if any, will be used as the default description for Digg.
The href of a <link rel="self" type="text/html" href="..."> element, if any, will be used as the default URI for Digg and Disqus.
USAGE:
Add the following to the body:
<div id="digg"></div>
<div id="disqus">
<!-- This will be replaced with the forum -->
<p><a href="http://<your-disqus-forumname>.disqus.com/?url=ref">
View the discussion thread.
</a></p>
</div>
<div id="delicious"></div>
Add the following to the head after loading jQuery itself:
<script type="text/javascript" src="<path-to-extservice>/jquery.extservice.min.js"></script>
<script type="text/javascript">
$(function () {
$('#digg').loadDigg ({ bgcolor: 'yellow' });
$('#disqus').loadDisqus ('<your-disqus-forumname>');
$('#delicious).loadDelicious ();
$.loadGoogleAnalytics ('<your-google-analytics-id>');
});
</script>
