<?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; button</title>
	<atom:link href="http://www.bin-co.com/blog/tag/button/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>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A Tweet This Button for Each Post in WordPress &#8211; Without a Plugin</title>
		<link>http://www.bin-co.com/blog/2009/06/a-tweet-this-button-for-each-post-in-wordpress-without-out-a-plugin/</link>
		<comments>http://www.bin-co.com/blog/2009/06/a-tweet-this-button-for-each-post-in-wordpress-without-out-a-plugin/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 18:20:44 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[plugin-killer]]></category>
		<category><![CDATA[series]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=275</guid>
		<description><![CDATA[<a href="http://richardxthripp.thripp.com/tweet-this">TweetThis</a> is a WordPress Plugin that 'adds a Twitter link to every post and page, so your readers can share your blog entries on their Twitter accounts with ease.' And in the tradition of my <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">WordPress Plugin Killer Series</a>, this post will show you how to do it without a plugin.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2009/03/wordpress.jpg" alt="WordPress Metal Logo" title="WordPress Metal Logo" width="300" height="300" class="aligncenter size-full wp-image-239 intro" align="right" /></p>
<p class="intro"><a href="http://richardxthripp.thripp.com/tweet-this">TweetThis</a> is a WordPress Plugin that &#8216;adds a Twitter link to every post and page, so your readers can share your blog entries on their Twitter accounts with ease.&#8217; And in the tradition of my <a href="http://www.bin-co.com/blog/2009/03/wordpress-plugin-killer-series/">WordPress Plugin Killer Series</a>, this post will show you how to do it without a plugin.</p>
<h2>The Code</h2>
<p>You can <strong class="highlight">add twitter button to your post by editing the <code>single.php</code></strong> file in your theme. Go to the place in the file where you want the button to show up &#8211; then add this code at that location&#8230;</p>
<pre><code class="javascript">&lt;a href="http://twitter.com/?status=&lt;?php echo urlencode(the_title('','', false)) ?&gt;+-+&lt;?php the_permalink() ?&gt;"&gt;Tweet This&lt;/a&gt;</code></pre>
<p>This is a super simple way of doing it &#8211; <strong class="highlight">with a little more code, you can use a URL shortner</strong> to &#8217;shortify&#8217; your permalink. Otherwise it might overflow the 140 char limit.</p>
<h2>Twitter</h2>
<p>By the way, if you are on twitter, add me &#8211; I&#8217;m <a href="http://twitter.com/binnyva">@binnyva</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2009/06/a-tweet-this-button-for-each-post-in-wordpress-without-out-a-plugin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<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>7</slash:comments>
		</item>
	</channel>
</rss>
