<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bin-Blog &#187; bookmarking</title>
	<atom:link href="http://www.bin-co.com/blog/tag/bookmarking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bin-co.com/blog</link>
	<description>Learn about the latest in Web Development - as soon as I do.</description>
	<lastBuildDate>Tue, 13 Oct 2009 18:55:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Adding Social Bookmarking Button in WordPress &#8211; Without Plugins</title>
		<link>http://www.bin-co.com/blog/2009/03/adding-social-bookmarking-button-in-wordpress-without-plugins/</link>
		<comments>http://www.bin-co.com/blog/2009/03/adding-social-bookmarking-button-in-wordpress-without-plugins/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 17:48:19 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[bookmarking]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin-killer]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=245</guid>
		<description><![CDATA[Many blogs have links to add the current post to various social bookmarking site like Digg, Reddit, Delicious, etc. This blog don't have it - but my <a href="http://lindesk.com/" title="Linux - on the Desktop">LinDesk blog</a> does.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/03/social_bookmarking.png" alt="Social Bookmarking" title="Social Bookmarking" width="148" height="136" class="alignnone size-full wp-image-244 intro" align="right" /></p>
<p class="intro">Many blogs have links to add the current post to various social bookmarking site like Digg, Reddit, Delicious, etc. This blog don&#8217;t have it &#8211; but my <a href="http://lindesk.com/" title="Linux - on the Desktop">LinDesk blog</a> does. This effect is achieved using wordpress plugins like&#8230;</p>
<ul>
<li><a href="http://blog.rswr.net/2009/02/14/social-media-wordpress-plugin/">S-ButtonZ Social Media Buttons &#8211; WordPress Plugin</a></li>
<li><a href="http://wordpress.org/extend/plugins/social-buttons/">WordPress › Social Buttons</a></li>
<li><a href="http://yoast.com/wordpress/sociable/">Sociable &#8211; Social Bookmarking for WordPress</a></li>
<li><a href="http://andybeard.eu/wordpress-plugin-hacks">Hacked WordPress Plugins</a></li>
<li><a href="http://lipidity.com/web/wordpress/wp-plugin-gregarious/">WP Plugin: Gregarious</a></li>
<li><a href="http://www.milienzo.com/wordpress-plugins/i-love-social-bookmarking/">I Love Social Bookmarking plugin</a></li>
<li><a href="http://wordpress.org/extend/plugins/add-to-any/">WordPress › Add to Any Share/Save/Bookmark Button</a></li>
</ul>
<p>For those who are new, this is part three of the <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">Plugin Killer series</a>. This series will show you how to duplicate the functionality of the a few wordpress plugins without having to install it using custom code in the wordpress theme. The earlier posts in this series are&#8230;</p>
<ul>
<li><a href="http://www.bin-co.com/blog/2009/02/avoid-duplicate-content-use-canonical-url-in-wordpress-fix-plugin/">Avoid Duplicate Content &#8211; Use Canonical URL in WordPress</a></li>
<li><a href="http://www.bin-co.com/blog/2009/03/show-popular-posts-in-wordpress-without-a-plugin/">Show Popular Posts in WordPress &#8211; without a plugin</a></li>
</ul>
<h2>The Code</h2>
<p>You can add social bookmarking button to your post by editing the <strong class="highlight"><code>single.php</code> file in your theme</strong>. Go to the place in the file where you want the buttons to show up &#8211; then add this code at that location&#8230;</p>
<pre><code class="html">&lt;a href="http://del.icio.us/post?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;"&gt;del.icio.us&lt;/a&gt;
 | &lt;a href="http://digg.com/submit?phase=2&amp;url=&lt;?php the_permalink() ?&gt;"&gt;Digg it&lt;/a&gt;
 | &lt;a href="http://reddit.com/submit?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;"&gt;reddit&lt;/a&gt;
 | &lt;a href="http://www.stumbleupon.com/submit?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php echo urlencode(the_title('','', false)) ?&gt;"&gt;StumbleUpon&lt;/a&gt;
</code></pre>
<p>Of course, you don&#8217;t have to do it like that &#8211; a better way of doing it is by putting the links in a li/ul list and then styling it. The point is, you don&#8217;t need a plugin to do this.</p>
<h2>Different Implementations</h2>
<p>Another thing I would recommend is get the images &#8211; in the above code, I just used text links. If you get the favicons of the sites you&#8217;re linking to, it will look a lot nicer. <a href="http://lindesk.com/2009/03/customizing-the-terminal-the-prompt/">Example</a> (go to the end of the post). You can use bigger images as well &#8211; <a href="http://aravindjose.com/blog/2009/01/30/the-sensible-way-of-making-money-online-and-building-a-career-with-online-video/" title="Make a living out of Videos on Web. Seriously.">example</a>. Or use some kind of effect &#8211; <a href="http://www.millionclues.com/blogosphere/blogging-tips-blogosphere/getting-quality-backlinks" title="Getting Quality Backlinks without Link Exchanges">example</a>(here the icons are a bit transparent by default &#8211; but when you hover over them, it shows up clearly &#8211; its completely opaque).</p>
<p>Here only the four big ones are given. You can find <a href="http://txt.binnyva.com/2007/02/submition-to-social-bookmarking-sites/">code for more social bookmarking sites</a> elsewhere.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/03/adding-social-bookmarking-button-in-wordpress-without-plugins/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

