<?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>Maverick Web Creations &#187; social bookmarking</title>
	<atom:link href="http://www.maverickwebcreations.com/tag/social-bookmarking/feed" rel="self" type="application/rss+xml" />
	<link>http://www.maverickwebcreations.com</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 05:37:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to Add DZone Buttons to WordPress</title>
		<link>http://www.maverickwebcreations.com/2008/10/29/how-to-add-dzone-buttons-to-wordpress.html</link>
		<comments>http://www.maverickwebcreations.com/2008/10/29/how-to-add-dzone-buttons-to-wordpress.html#comments</comments>
		<pubDate>Wed, 29 Oct 2008 00:00:13 +0000</pubDate>
		<dc:creator>admin_mwc</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[DZone]]></category>
		<category><![CDATA[reddit]]></category>
		<category><![CDATA[social bookmarking]]></category>
		<category><![CDATA[social news]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=347</guid>
		<description><![CDATA[<p>DZone is a great site for developers to share the latest news on programming and web development. If your site has anything to do with these topics, be sure to submit to DZone as often as you can.</p>
<p>On <a href="http://www.dzone.com/links/buttons.jsp">DZone&#8217;s Tools, Buttons and Widgets page</a>, there are 2 types &#8230; <a href="http://www.maverickwebcreations.com/2008/10/29/how-to-add-dzone-buttons-to-wordpress.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>DZone is a great site for developers to share the latest news on programming and web development. If your site has anything to do with these topics, be sure to submit to DZone as often as you can.</p>
<p>On <a href="http://www.dzone.com/links/buttons.jsp">DZone&#8217;s Tools, Buttons and Widgets page</a>, there are 2 types of voting buttons you may use on your web site. I chose to use the &#8220;Style 1 (tall)&#8221; button for my web site.</p>
<p>This tutorial differs from my previous posts on How to Add reddit Buttons to WordPress and How to Add Digg Buttons to WordPress because I no longer display my voting buttons at the right or left of each post. Now, I prefer to display my voting buttons at the bottom of each post on the theme file single.php.</p>
<p><strong>Here’s How the DZone Button Will Look on Your Web Site…</strong></p>
<p><img src="http://www.maverickwebcreations.com/wp-content/uploads/2008/10/2008-10-28_120223.png" alt="How to Add DZone Buttons to WordPress" title="2008-10-28_120223" class="alignnone size-full wp-image-350" width="60" height="75" /></p>
<p>If your blog post has been submitted to DZone, you should see a DZone button with a green arrow pointing upwards and a red arrow pointing downwards, which allows readers to either vote your post up or down on DZone.</p>
<p><img src="http://www.maverickwebcreations.com/wp-content/uploads/2008/10/2008-10-28_120237.png" alt="How to Add DZone Buttons to WordPress" title="2008-10-28_120237" class="alignnone size-full wp-image-352" width="59" height="75" /></p>
<p>If you have not submitted your blog post to DZone, you should see a DZone button with a &#8220;submit&#8221; text on it.</p>
<p><strong>DZone&#8217;s Integration Code</strong></p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;var dzone_url = '[url]';&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;var dzone_title = '[title]';&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;var dzone_blurb = '[description]';&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;var dzone_style = '1';&lt;/script&gt;
&lt;script language=&quot;javascript&quot; src=&quot;http://widgets.dzone.com/widgets/zoneit.js&quot;&gt;&lt;/script&gt;
</pre>
<p>According to DZone:</p>
<blockquote><p>The options of dzone_url, dzone_title, and dzone_blurb are optional. If you leave out the url and title, the widget will pick them up from the page the widget is currently on.</p>
<p>If you set a dzone_style or have not set a dzone_url and have multiple buttons on a single page, you will need to set them with every use of the button.</p></blockquote>
<p>What that means is it is best to include the dzone_url, dzone_style and dzone_title variables but you may exclude the dzone_blurb variables.</p>
<p><strong>WordPress Default Theme’s single.php Template</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;p class=&quot;postmetadata alt&quot;&gt;
....................
&lt;/p&gt;
</pre>
<p>Although you may add this code to your index.php and archive.php templates, I would advice against it because it increases your page load times. </p>
<p><strong>What We Need to Do</strong></p>
<p>We need to replace DZone integration code’s [url] and [title] with WordPress’  and  respectively somewhere within the <a href="http://codex.wordpress.org/The_Loop">WordPress Loop</a>.</p>
<p><strong>DZone Integration with WordPress with HTML and CSS</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;p class=&quot;postmetadata alt&quot;&gt;
....................
&lt;/p&gt;
&lt;div class=&quot;social_news&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;var dzone_url = '&lt;?php the_permalink() ?&gt;';&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;var dzone_title = '&lt;?php the_title(); ?&gt;';&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;var dzone_style = '1';&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://widgets.dzone.com/widgets/zoneit.js&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
</pre>
<pre class="brush: css; title: ; notranslate">
.social_news
{
	margin: 0px 5px 0px 0px;
	padding: 0px;
	float: left;
}
</pre>
<p>You may display multiple buttons in a single row with the social_news class. That is how I displayed my voting buttons below. It has a 5 pixel margin on the right to leave a tiny gap in between buttons.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2008/10/29/how-to-add-dzone-buttons-to-wordpress.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Add reddit Buttons to WordPress</title>
		<link>http://www.maverickwebcreations.com/2008/10/17/how-to-add-reddit-buttons-to-wordpress.html</link>
		<comments>http://www.maverickwebcreations.com/2008/10/17/how-to-add-reddit-buttons-to-wordpress.html#comments</comments>
		<pubDate>Fri, 17 Oct 2008 00:00:58 +0000</pubDate>
		<dc:creator>admin_mwc</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[reddit]]></category>
		<category><![CDATA[sharethis]]></category>
		<category><![CDATA[social bookmarking]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[social news]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=200</guid>
		<description><![CDATA[<p>reddit, like Digg offers <a href="http://www.reddit.com/buttons/">web site integration buttons</a> for webmasters. The implementation of the reddit buttons is very similar to my previous post on <a href="http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html">how to add Digg buttons to WordPress</a>. In my next post, I will show you how to display Digg and reddit voting buttons to your &#8230; <a href="http://www.maverickwebcreations.com/2008/10/17/how-to-add-reddit-buttons-to-wordpress.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>reddit, like Digg offers <a href="http://www.reddit.com/buttons/">web site integration buttons</a> for webmasters. The implementation of the reddit buttons is very similar to my previous post on <a href="http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html">how to add Digg buttons to WordPress</a>. In my next post, I will show you how to display Digg and reddit voting buttons to your WordPress posts at the same time.</p>
<p>For now, let&#8217;s take a look at what reddit has to offer&#8230;</p>
<p>reddit has a larger list of buttons than Digg. For this post, I shall use the button that looks most like the default buttons you see on reddit.com. Again, I selected this button for usability reasons because I want people who are familiar with reddit to feel comforable with the reddit buttons on my web site.</p>
<p><strong>Here&#8217;s How the reddit Button Will Look on Your Web Site&#8230;</strong></p>
<p><img class="alignnone size-medium wp-image-202" title="reddit Button 1" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/10/2008-10-16_153042.png" alt="How to Add reddit Buttons to WordPress" width="47" height="66" /></p>
<p>If your blog post has been submitted to reddit, you should see a reddit number and a “reddit” text in your reddit button.</p>
<p><img class="alignnone size-medium wp-image-201" title="reddit button 2" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/10/2008-10-16_153125.png" alt="How to Add reddit Buttons to WordPress" width="47" height="66" /></p>
<p>If you or someone else has not submitted your blog post to reddit, you won’t see any redditnumber but you will see the option to submit your blog post to reddit.</p>
<p><strong>reddit&#8217;s Integration Code</strong></p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.reddit.com/button.js?t=2&quot;&gt;&lt;/script&gt;
&lt;script type='text/javascript'&gt;reddit_url='[URL]'&lt;/script&gt;
&lt;script type='text/javascript'&gt;reddit_title='[TITLE]'&lt;/script&gt;
</pre>
<p><strong>WordPress Default Theme&#8217;s index.php Template</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php while (have_posts()) : the_post(); ?&gt;
	&lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
		&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;&lt;?php the_time('F jS, Y') ?&gt; &lt;!-- by &lt;?php the_author() ?&gt; --&gt;&lt;/small&gt;
		&lt;div class=&quot;entry&quot;&gt;
			&lt;?php the_content('Read the rest of this entry &amp;raquo;'); ?&gt;
		&lt;/div&gt;
		&lt;p class=&quot;postmetadata&quot;&gt;&lt;?php the_tags('Tags: ', ', ', '&lt;br /&gt;'); ?&gt; Posted in &lt;?php the_category(', ') ?&gt; | &lt;?php edit_post_link('Edit', '', ' | '); ?&gt;  &lt;?php comments_popup_link('No Comments &amp;#187;', '1 Comment &amp;#187;', '% Comments &amp;#187;'); ?&gt;&lt;/p&gt;
	&lt;/div&gt;
&lt;?php endwhile; ?&gt;
</pre>
<p><strong>What We Need to Do</strong></p>
<p>We need to replace reddit integration code&#8217;s <strong>[URL]</strong> and <strong>[TITLE]</strong> with WordPress&#8217; <strong>&lt;?php the_permalink() ?&gt;</strong> and <strong>&lt;?php the_title(); ?&gt; </strong> respectively somewhere within the <a href="http://codex.wordpress.org/The_Loop">WordPress Loop</a>.</p>
<p><strong>Basic Example of reddit Integration with WordPress</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php while (have_posts()) : the_post(); ?&gt;
	&lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
		&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.reddit.com/button.js?t=2&quot;&gt;&lt;/script&gt;
		&lt;script type='text/javascript'&gt;reddit_url='&lt;?php the_permalink() ?&gt;'&lt;/script&gt;
		&lt;script type='text/javascript'&gt;reddit_title='&lt;?php the_title(); ?&gt;'&lt;/script&gt;
		&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;&lt;?php the_time('F jS, Y') ?&gt; &lt;!-- by &lt;?php the_author() ?&gt; --&gt;&lt;/small&gt;
		&lt;div class=&quot;entry&quot;&gt;
			&lt;?php the_content('Read the rest of this entry &amp;raquo;'); ?&gt;
		&lt;/div&gt;
		&lt;p class=&quot;postmetadata&quot;&gt;&lt;?php the_tags('Tags: ', ', ', '&lt;br /&gt;'); ?&gt; Posted in &lt;?php the_category(', ') ?&gt; | &lt;?php edit_post_link('Edit', '', ' | '); ?&gt;  &lt;?php comments_popup_link('No Comments &amp;#187;', '1 Comment &amp;#187;', '% Comments &amp;#187;'); ?&gt;&lt;/p&gt;
	&lt;/div&gt;
&lt;?php endwhile; ?&gt;
</pre>
<p>This alone wouldn&#8217;t look good on your web site. We need some CSS style to spice things up!</p>
<p><strong>reddit Integration with WordPress with HTML and CSS</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;social_news&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.reddit.com/button.js?t=2&quot;&gt;&lt;/script&gt;
&lt;script type='text/javascript'&gt;reddit_url='[URL]'&lt;/script&gt;
&lt;script type='text/javascript'&gt;reddit_title='[TITLE]'&lt;/script&gt;
&lt;/div&gt;
</pre>
<pre class="brush: css; title: ; notranslate">
.social_news
{
	margin: 0px 0px 0px 10px;
	padding: 0px;
	float: right;
}
</pre>
<pre class="brush: css; title: ; notranslate">
.social_news
{
	margin: 0px 10px 0px 0px;
	padding: 0px;
	float: left;
}
</pre>
<p>Wrap the reddit code with a DIV class. You may choose to align the DIV class left or right but I think it looks better on the right.</p>
<p>Here’s the full source code:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php while (have_posts()) : the_post(); ?&gt;
	&lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
		&lt;div class=&quot;social_news&quot;&gt;
		&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.reddit.com/button.js?t=2&quot;&gt;&lt;/script&gt;
		&lt;script type='text/javascript'&gt;reddit_url='&lt;?php the_permalink() ?&gt;'&lt;/script&gt;
		&lt;script type='text/javascript'&gt;reddit_title='&lt;?php the_title(); ?&gt;'&lt;/script&gt;
		&lt;/div&gt;
		&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;&lt;?php the_time('F jS, Y') ?&gt; &lt;!-- by &lt;?php the_author() ?&gt; --&gt;&lt;/small&gt;
		&lt;div class=&quot;entry&quot;&gt;
			&lt;?php the_content('Read the rest of this entry &amp;raquo;'); ?&gt;
		&lt;/div&gt;
		&lt;p class=&quot;postmetadata&quot;&gt;&lt;?php the_tags('Tags: ', ', ', '&lt;br /&gt;'); ?&gt; Posted in &lt;?php the_category(', ') ?&gt; | &lt;?php edit_post_link('Edit', '', ' | '); ?&gt;  &lt;?php comments_popup_link('No Comments &amp;#187;', '1 Comment &amp;#187;', '% Comments &amp;#187;'); ?&gt;&lt;/p&gt;
	&lt;/div&gt;
&lt;?php endwhile; ?&gt;
</pre>
<p>You may apply this modification to your WordPress theme’s single.php and page.php or any other template that has the <a href="http://codex.wordpress.org/The_Loop">WordPress Loop</a>.</p>
<p><strong>A WordPress Plugin Alternative: Digg &#038; Reddit Me Plugin</strong></p>
<p>If you don’t want to edit your WordPress theme files, try using the <a href="http://www.michelem.org/wordpress-plugin-digg-reddit-me/">Digg &#038; Reddit Me plugin</a>. I personally think it would be too much of a hassle to manually insert the code into each post if I were to use this plugin but it really depends on your preferences and needs for your WordPress blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2008/10/17/how-to-add-reddit-buttons-to-wordpress.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Add Digg Buttons to WordPress</title>
		<link>http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html</link>
		<comments>http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html#comments</comments>
		<pubDate>Thu, 16 Oct 2008 02:24:50 +0000</pubDate>
		<dc:creator>admin_mwc</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[reddit]]></category>
		<category><![CDATA[sharethis]]></category>
		<category><![CDATA[social bookmarking]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[social news]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=184</guid>
		<description><![CDATA[<p>On <a href="http://digg.com/tools/integrate">Digg.com&#8217;s Tools/Integrate page,</a> there are 3 types of Digg buttons available for us to display on our web sites:</p>
&#8220;Digg This&#8221; with Submit Capability
Simple &#8220;Digg This&#8221; with Digg Count (original version)
Custom Submission-Only Button
<p>I think the 1st option makes the most sense. I want a Digg voting &#8230; <a href="http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>On <a href="http://digg.com/tools/integrate">Digg.com&#8217;s Tools/Integrate page,</a> there are 3 types of Digg buttons available for us to display on our web sites:</p>
<ul>
<li>&#8220;Digg This&#8221; with Submit Capability</li>
<li>Simple &#8220;Digg This&#8221; with Digg Count (original version)</li>
<li>Custom Submission-Only Button</li>
</ul>
<p>I think the 1st option makes the most sense. I want a Digg voting button on all my WordPress posts. If I only want a Digg submission button, I can simply use <a href="http://sharethis.com/">ShareThis</a>, which takes up less space.</p>
<p><strong>Here&#8217;s How the &#8220;Digg This&#8221; with Submit Capability Digg Button Will Look on Your Web Site&#8230;</strong></p>
<p><img class="alignnone size-medium wp-image-185" title="Digg Button 1" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/10/2008-10-16_101240.png" alt="How to Add Digg Buttons to WordPress" width="62" height="91" /></p>
<p>If your blog post has been submitted to Digg, you should see a Digg number and a &#8220;digg it&#8221; text in your Digg button.</p>
<p><img class="alignnone size-medium wp-image-186" title="Digg Button 2" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/10/2008-10-16_101203.png" alt="How to Add Digg Buttons to WordPress" width="60" height="86" /></p>
<p>If you or someone else has not submitted your blog post to Digg, you won&#8217;t see any Digg number but you will see the option to submit your blog post to Digg.</p>
<p>I would refrain from using another style of Digg buttons because this style is consistent with the Digg buttons on Digg.com. I would not want to confuse my readers by using an Digg button style that they are not used to.</p>
<p><strong>Digg&#8217;s Integration Code</strong></p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
digg_url = 'WEBSITE_URL';
&lt;/script&gt;
&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p><strong>WordPress Default Theme&#8217;s index.php Template</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php while (have_posts()) : the_post(); ?&gt;
	&lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
		&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;&lt;?php the_time('F jS, Y') ?&gt; &lt;!-- by &lt;?php the_author() ?&gt; --&gt;&lt;/small&gt;
		&lt;div class=&quot;entry&quot;&gt;
			&lt;?php the_content('Read the rest of this entry &amp;raquo;'); ?&gt;
		&lt;/div&gt;
		&lt;p class=&quot;postmetadata&quot;&gt;&lt;?php the_tags('Tags: ', ', ', '&lt;br /&gt;'); ?&gt; Posted in &lt;?php the_category(', ') ?&gt; | &lt;?php edit_post_link('Edit', '', ' | '); ?&gt;  &lt;?php comments_popup_link('No Comments &amp;#187;', '1 Comment &amp;#187;', '% Comments &amp;#187;'); ?&gt;&lt;/p&gt;
	&lt;/div&gt;
&lt;?php endwhile; ?&gt;
</pre>
<p><strong>What We Need to Do</strong></p>
<p>We need to replace Digg integration code&#8217;s <strong>WEBSITE_URL</strong> with WordPress&#8217; <strong>&lt;?php the_permalink() ?&gt;</strong> somewhere within the  <a href="http://codex.wordpress.org/The_Loop">WordPress Loop</a>.</p>
<p><strong>Basic Example of Digg Integration with WordPress</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php while (have_posts()) : the_post(); ?&gt;
	&lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
		&lt;script type=&quot;text/javascript&quot;&gt;
		digg_url = '&lt;?php the_permalink() ?&gt;';
		&lt;/script&gt;
		&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
		&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;&lt;?php the_time('F jS, Y') ?&gt; &lt;!-- by &lt;?php the_author() ?&gt; --&gt;&lt;/small&gt;
		&lt;div class=&quot;entry&quot;&gt;
			&lt;?php the_content('Read the rest of this entry &amp;raquo;'); ?&gt;
		&lt;/div&gt;
		&lt;p class=&quot;postmetadata&quot;&gt;&lt;?php the_tags('Tags: ', ', ', '&lt;br /&gt;'); ?&gt; Posted in &lt;?php the_category(', ') ?&gt; | &lt;?php edit_post_link('Edit', '', ' | '); ?&gt;  &lt;?php comments_popup_link('No Comments &amp;#187;', '1 Comment &amp;#187;', '% Comments &amp;#187;'); ?&gt;&lt;/p&gt;
	&lt;/div&gt;
&lt;?php endwhile; ?&gt;
</pre>
<p>The problem with this basic example is it would look like rubbish in your WordPress blog. A little CSS and HTML is required to display it properly.</p>
<p><strong>Digg Integration with WordPress with HTML and CSS</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;div class=&quot;social_news&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
digg_url = '&lt;?php the_permalink() ?&gt;';
&lt;/script&gt;
&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
</pre>
<pre class="brush: css; title: ; notranslate">
.social_news
{
	margin: 0px 0px 0px 10px;
	padding: 0px;
	float: right;
}
</pre>
<pre class="brush: css; title: ; notranslate">
.social_news
{
	margin: 0px 10px 0px 0px;
	padding: 0px;
	float: left;
}
</pre>
<p>Wrap the Digg code with a DIV class. You may choose to align the DIV class left or right but I think it looks better on the right.</p>
<p>Here&#8217;s the full source code:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php while (have_posts()) : the_post(); ?&gt;
	&lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
		&lt;div class=&quot;social_news&quot;&gt;
		&lt;script type=&quot;text/javascript&quot;&gt;
		digg_url = '&lt;?php the_permalink() ?&gt;';
		&lt;/script&gt;
		&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
		&lt;/div&gt;
		&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;&lt;?php the_time('F jS, Y') ?&gt; &lt;!-- by &lt;?php the_author() ?&gt; --&gt;&lt;/small&gt;
		&lt;div class=&quot;entry&quot;&gt;
			&lt;?php the_content('Read the rest of this entry &amp;raquo;'); ?&gt;
		&lt;/div&gt;
		&lt;p class=&quot;postmetadata&quot;&gt;&lt;?php the_tags('Tags: ', ', ', '&lt;br /&gt;'); ?&gt; Posted in &lt;?php the_category(', ') ?&gt; | &lt;?php edit_post_link('Edit', '', ' | '); ?&gt;  &lt;?php comments_popup_link('No Comments &amp;#187;', '1 Comment &amp;#187;', '% Comments &amp;#187;'); ?&gt;&lt;/p&gt;
	&lt;/div&gt;
&lt;?php endwhile; ?&gt;
</pre>
<p>You may apply this modification to your WordPress theme&#8217;s single.php and page.php or any other template that has the <a href="http://codex.wordpress.org/The_Loop">WordPress Loop</a>.</p>
<p><strong>A WordPress Plugin Alternative: Digg &#038; Reddit Me Plugin</strong></p>
<p>If you don&#8217;t want to edit your WordPress theme files, try using the <a href="http://www.michelem.org/wordpress-plugin-digg-reddit-me/">Digg &amp; Reddit Me plugin</a>. I personally think it would be too much of a hassle to manually insert the code into each post if I were to use this plugin but it really depends on your preferences and needs for your WordPress blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

