<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>WebStractions: WebDev Info &amp; News</title><link>http://webstractions.com</link><description>Abstract thoughts in web design and development.</description><language>en</language><lastBuildDate>Wed, 18 Mar 2009 13:15:36 PDT</lastBuildDate><generator>http://wordpress.org/?v=2.8.5</generator><sy:updatePeriod xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">hourly</sy:updatePeriod><sy:updateFrequency xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">1</sy:updateFrequency><image><link>http://www.webstractions.com</link><url>http://webstractions.com/blog/wp-content/themes/webstractive/images/profile-pic.jpg</url><title>Webstractions.com</title></image><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/webstractions" type="application/rss+xml" /><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fwebstractions" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fwebstractions" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fwebstractions" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/webstractions" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fwebstractions" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fwebstractions" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fwebstractions" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fwebstractions" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:browserFriendly>This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site.</feedburner:browserFriendly><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>Jazzing Up Yoast’s Sociable WordPress Plugin to Spur More Sharing</title><link>http://feedproxy.google.com/~r/webstractions/~3/Dcwb2gTv3G8/</link><category>Wordpress</category><category>bookmarking</category><category>Joost de Valk</category><category>sharing</category><category>sociable</category><category>social</category><category>wordpress plugins</category><category>yoast</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronnie T. Dodger</dc:creator><pubDate>Wed, 18 Mar 2009 12:57:34 PDT</pubDate><guid isPermaLink="false">http://webstractions.com/?p=195</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Yoast&#8217;s <a href="http://yoast.com/wordpress/sociable/">Sociable</a> plugin for WordPress is a popular tool to display social bookmarking <i>buttons</i> to quickly Digg, Stumble, Tweet, or otherwise share your posts with the World. </p>
<p>My problem, or maybe it is just a preference, is that I do not like teeny-tiny 16&#215;16 icons. I want large in-your-face icons that just shout out <em>&#8220;click me now&#8221;</em>. </p>
<p>The current design is great for a location inline with your post heading. But the Sociable block of code follows your post or page content. </p>
<p>Assuming that your reader has ventured to the end of the post and has been interested, then <em>shout</em> at him/her with larger-than-life calls to action. Make it easy for them to see the buttons, do not dim them.  Make them want to click that button now! </p>
<h2>First replace the default icon set, two methods</h2>
<p>Venture around on the web and look for a set of social bookmarking icons that will fit in nicely with your theme. There are several free icon sets out there &#8211; Google it. Or, you could just create your own (I can&#8217;t, not that graphically talented.)</p>
<p>Once you have found your icon set, rename image filenames to match the Sociable icon filenames. You may do this to none, some, or all of the files. Depends on the set.</p>
<p><strong>Method One:</strong> Upload all of the new icons to the Yoast Sociable image directory, directly overwriting them. Keep a backup of your new icons for safe keeping in case Sociable update resets or you want to use for other theme designs.</p>
<p> Sociable image directory can be found in:<br />
<pre><code>
 (WPInstallDirectory)/wp-content/plugins/sociable/images
</code></pre></p>
<p><strong>Method Two:</strong> Create a directory for your new icons inside of the Yoast Sociable image directory.</p>
<p>Open and edit main Sociable file <kbd>sociable.php</kbd> per the following:</p>
<p><pre><pre>
// Find the following line around line 600:
$imagepath = $sociablepluginpath.&#039;images/&#039;;

// Revise $imagepath to point to new directory
$imagepath = $sociablepluginpath.&#039;images/newdirectoryname&#039;;
</pre></pre></p>
<blockquote><p><strong>Hey Joost:</strong> It would be great to allow the user to set a custom directory for icon image sets.  It would  extend  Sociable very nicely, allowing people to plop image sets in easily. </p></blockquote>
<p><strong>Image filetypes:</strong> The image filetypes of your custom icon set may not match the hard coded filetypes in the Sociable plugin.  Filetypes are mostly PNG though, with some GIFs here &#038; there. </p>
<p>You can either convert your icon to the Sociable image type, or edit the plugin code </p>
<p>I was lazy and edited the plugin! <img src='http://webstractions.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  But you should probably convert to the correct type, and preserve the transparent areas of the image as well. </p>
<blockquote><p><strong>Another suggestion:</strong> Since most freely available icon sets on the Internet are PNG format, perhaps converting all icons in the default Sociable set to PNG? This would facilitate easy swapping of PNG icon sets. Might even spur some graphically talented individuals to develop sets for Sociable &#8212; that would be kewl.
</p></blockquote>
<h2>And now, the CSS for <em>&#8220;in-your-face&#8221;</em></h2>
<p>This is the easy part. </p>
<p>First go into <strong>WpAdmin->Settings->Sociable</strong> and make sure the option for using the Sociable stylesheet is unchecked. Save your settings.</p>
<p>Add the following into your main theme stylesheet:</p>
<p><pre><pre>
/*---:[ Yoast Sociable Plugin ]:---*/
.sociable { margin: 16px 0; text-align: center; background-color: #dcdcdc; border: 1px solid silver; padding: .7em 0; }
.sociable_tagline { padding-bottom: .7em;&nbsp;&nbsp;font: bold 1.6em Verdana, Geneva, Arial, Helvetica, sans-serif;}
.sociable ul {&nbsp;&nbsp;display: inline; margin: 0 !important;&nbsp;&nbsp;padding: 0 !important; }
.sociable ul li {display: inline !important;&nbsp;&nbsp;list-style-type: none; margin: .3em; padding: 1px;}
.sociable img {width: 48px; height: 48px;&nbsp;&nbsp;}

.sociable-hovers {opacity: 1;&nbsp;&nbsp;-moz-opacity: 1;filter: alpha(opacity=40);}
.sociable-hovers:hover {opacity: .45;-moz-opacity: .45;filter: alpha(opacity=100);}

.sociable a { border:0 !important; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
.sociable a:hover {background-color: #dcdcdc; }&nbsp;&nbsp;
</pre></pre></p>
<p>Feel free to edit CSS to your own preference. This is just a basic, not hard to notice type of style. </p>
<p>Play close attention to the width/height of <kbd>.sociable img</kbd> class. I am using 48&#215;48 here. If you have a lot of icons, you may want to adjust <kbd>.sociable img</kbd> to 32&#215;32, thereby reducing the 48&#8217;s if you get squeezed for space.  </p>
<p>I suggest using only buttons for the social sites you frequent regularly, if at all possible, plus a couple of the biggies &#038; email. Focus on <em>your crowd</em> and give them the buttons they know and want to see. Too many choices for your users, and they may not notice <em>their</em> call to action.  </p>
<p>You will also notice that I reversed the hover opacity. It is set to be fully visible, and will fade when hovered over. The reasoning is that some people, myself included, find it hard to see what is there without hovering over each icon individually only to find out there is no Stumble or whatever. </p>
<p>Hopefully, this will make it easier on your readers (less difficult actually) and will spur more clicking  from them.  You want them to smack that button, so show it off. Dimming and diminishing the size of these icons seems counter-productive, silly.  </p>
<p>And feel free to test these buttons for me right now. <img src='http://webstractions.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>



Share with the world!


	<a rel="nofollow" target="_blank" href="mailto:?subject=Jazzing%20Up%20Yoast%27s%20Sociable%20WordPress%20Plugin%20to%20Spur%20More%20Sharing&amp;body=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fjazzing-up-yoasts-sociable-wordpress-plugin%2F" title="E-mail this story to a friend!"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fjazzing-up-yoasts-sociable-wordpress-plugin%2F" title="TwitThis"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/twitter_boxed_48.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fjazzing-up-yoasts-sociable-wordpress-plugin%2F&amp;title=Jazzing%20Up%20Yoast%27s%20Sociable%20WordPress%20Plugin%20to%20Spur%20More%20Sharing" title="Digg"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fjazzing-up-yoasts-sociable-wordpress-plugin%2F&amp;title=Jazzing%20Up%20Yoast%27s%20Sociable%20WordPress%20Plugin%20to%20Spur%20More%20Sharing" title="StumbleUpon"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fjazzing-up-yoasts-sociable-wordpress-plugin%2F&amp;title=Jazzing%20Up%20Yoast%27s%20Sociable%20WordPress%20Plugin%20to%20Spur%20More%20Sharing" title="del.icio.us"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fjazzing-up-yoasts-sociable-wordpress-plugin%2F&amp;title=Jazzing%20Up%20Yoast%27s%20Sociable%20WordPress%20Plugin%20to%20Spur%20More%20Sharing" title="Ping.fm"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/ping.gif" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fjazzing-up-yoasts-sociable-wordpress-plugin%2F&amp;title=Jazzing%20Up%20Yoast%27s%20Sociable%20WordPress%20Plugin%20to%20Spur%20More%20Sharing" title="Reddit"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>
<p><a href="http://feedads.g.doubleclick.net/~a/B_5UvJVEjyB7Zmvt8qtsk2tMVMQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/B_5UvJVEjyB7Zmvt8qtsk2tMVMQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/B_5UvJVEjyB7Zmvt8qtsk2tMVMQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/B_5UvJVEjyB7Zmvt8qtsk2tMVMQ/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstractions?a=Dcwb2gTv3G8:qIEeCSXuIdY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=Dcwb2gTv3G8:qIEeCSXuIdY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=Dcwb2gTv3G8:qIEeCSXuIdY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstractions?i=Dcwb2gTv3G8:qIEeCSXuIdY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=Dcwb2gTv3G8:qIEeCSXuIdY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstractions?i=Dcwb2gTv3G8:qIEeCSXuIdY:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstractions/~4/Dcwb2gTv3G8" height="1" width="1"/>]]></content:encoded><description>Why are social bookmark icons so tiny? Dimmed? Let's jazz up the Yoast Sociable WordPress plugin, and make loud, in-your-face calls to action. Instructions and guidelines for swapping in larger-sized images sets and some CSS basics to induce readers to share more often.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://webstractions.com/wordpress/jazzing-up-yoasts-sociable-wordpress-plugin/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">20</slash:comments><feedburner:origLink>http://webstractions.com/wordpress/jazzing-up-yoasts-sociable-wordpress-plugin/</feedburner:origLink></item><item><title>How to remove inline Recent Comments style from your WordPress Theme</title><link>http://feedproxy.google.com/~r/webstractions/~3/brY9uaL72r0/</link><category>Wordpress</category><category>add_filter</category><category>functions.php</category><category>inline style</category><category>recent comments</category><category>remove_filter</category><category>wordpress function</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronnie T. Dodger</dc:creator><pubDate>Sun, 15 Mar 2009 14:30:09 PDT</pubDate><guid isPermaLink="false">http://webstractions.com/?p=175</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Have you seen the following code inside the <kbd>HEAD</kbd> section of your WordPress blog source code? </p>
<p><pre><pre>&lt;style type=&quot;text/css&quot;&gt;.recentcomments a{display:inline !important;padding: 0 !important;margin: 0 !important;}&lt;/style&gt;
</pre></pre></p>
<p>Ever wonder how it got there, and how to get rid of it?</p>
<p>The inline style gets injected into the head section when you use the Recent Comments widget. The widget applies a filter to wp_head() when it is activated. </p>
<p>In order to get rid of the inline style, short of modifying the core file (not advised), is to apply a filter of our own. Let&#8217;s get to work on that.</p>
<h2>Move the styling to your theme <strong>style.css</strong> file</h2>
<p>Copy the following code to your theme css file:<br />
<pre><pre>.recentcomments a{display:inline !important;padding: 0 !important;margin: 0 !important;}
</pre></pre><br />
Once you have the code inside your style.css file, you can edit it to your hearts content. </p>
<h2>Add a filter to remove a filter</h2>
<p>Yep, seems a little crazy, but we are going to add a filter to remove the stock WordPress filter. </p>
<p>Add the following to your theme <strong>functions.php</strong> file:<br />
<pre><pre>
function remove_wp_widget_recent_comments_style() {
&nbsp;&nbsp; if ( has_filter(&#039;wp_head&#039;, &#039;wp_widget_recent_comments_style&#039;) ) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remove_filter(&#039;wp_head&#039;, &#039;wp_widget_recent_comments_style&#039; );
&nbsp;&nbsp; }
}
add_filter( &#039;wp_head&#039;, &#039;remove_wp_widget_recent_comments_style&#039;, 1 );
</pre></pre><br />
Here we are adding a filter via the WordPress add_filter() method. The first argument, <kbd>wp_head</kbd>, which is the <em>hook</em> where the style filter gets applied in the first place.</p>
<p style="clear:all;">The second argument is the callback to our custom filter, <kbd>remove_wp_widget_recent_comments_style()</kbd>.</p>
<p>The third parameter is the priority of when our filter will get processed. We are setting this to 1 to insure that it takes priority over the WordPress core function. If this argument is too higher of a number, then we run the risk of our filter not taking precedence. </p>
<p>Our custom filter is simple, it first checks to see if the WordPress filter is present. If it is present, then we simply remove the filter. The <kbd>remove_filter()</kbd> function takes the same arguments as <kbd>add_filter()</kbd></p>
<h2>Some thoughts</h2>
<p>While the inline style does not hurt anything, some purists just hate seeing it there in the first place. It is one of those quirky things that WordPress code does to you.</p>
<p>The <kbd>remove_filter()</kbd> WordPress function can come in handy for other things that bug the heck out of you. One example would be the curly quotes that replace normal quotes inside of your posts and pages. </p>
<p>You can remove the <kbd>wptexturize</kbd> filter from any of the following hooks for example:<br />
<pre><pre>
remove_filter(&#039;category_description&#039;, &#039;wptexturize&#039;);
remove_filter(&#039;list_cats&#039;, &#039;wptexturize&#039;);
remove_filter(&#039;comment_author&#039;, &#039;wptexturize&#039;);
remove_filter(&#039;comment_text&#039;, &#039;wptexturize&#039;);
remove_filter(&#039;single_post_title&#039;, &#039;wptexturize&#039;);
remove_filter(&#039;the_title&#039;, &#039;wptexturize&#039;);
remove_filter(&#039;the_content&#039;, &#039;wptexturize&#039;);
remove_filter(&#039;the_excerpt&#039;, &#039;wptexturize&#039;);
</pre></pre></p>
<p>You can think of <kbd>remove_filter</kbd> is to WordPress, as reset.css is to style sheets. Wonderful world it is.</p>



Share with the world!


	<a rel="nofollow" target="_blank" href="mailto:?subject=How%20to%20remove%20inline%20Recent%20Comments%20style%20from%20your%20WordPress%20Theme&amp;body=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fremove-recent-comments-inline-styl%2F" title="E-mail this story to a friend!"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fremove-recent-comments-inline-styl%2F" title="TwitThis"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/twitter_boxed_48.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fremove-recent-comments-inline-styl%2F&amp;title=How%20to%20remove%20inline%20Recent%20Comments%20style%20from%20your%20WordPress%20Theme" title="Digg"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fremove-recent-comments-inline-styl%2F&amp;title=How%20to%20remove%20inline%20Recent%20Comments%20style%20from%20your%20WordPress%20Theme" title="StumbleUpon"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fremove-recent-comments-inline-styl%2F&amp;title=How%20to%20remove%20inline%20Recent%20Comments%20style%20from%20your%20WordPress%20Theme" title="del.icio.us"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fremove-recent-comments-inline-styl%2F&amp;title=How%20to%20remove%20inline%20Recent%20Comments%20style%20from%20your%20WordPress%20Theme" title="Ping.fm"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/ping.gif" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fremove-recent-comments-inline-styl%2F&amp;title=How%20to%20remove%20inline%20Recent%20Comments%20style%20from%20your%20WordPress%20Theme" title="Reddit"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>
<p><a href="http://feedads.g.doubleclick.net/~a/KciVqhfdlr1m0PawOMg56SuBXbA/0/da"><img src="http://feedads.g.doubleclick.net/~a/KciVqhfdlr1m0PawOMg56SuBXbA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/KciVqhfdlr1m0PawOMg56SuBXbA/1/da"><img src="http://feedads.g.doubleclick.net/~a/KciVqhfdlr1m0PawOMg56SuBXbA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstractions?a=brY9uaL72r0:Hm4A2yBZdfg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=brY9uaL72r0:Hm4A2yBZdfg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=brY9uaL72r0:Hm4A2yBZdfg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstractions?i=brY9uaL72r0:Hm4A2yBZdfg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=brY9uaL72r0:Hm4A2yBZdfg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstractions?i=brY9uaL72r0:Hm4A2yBZdfg:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstractions/~4/brY9uaL72r0" height="1" width="1"/>]]></content:encoded><description>Have you found an inline style in your Html head section for Recent Comments? Wonder where it came from? More importantly, do you want to know how to get rid of it? It is simple to do by writing a WordPress filter to remove a filter. Oh, joy!</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://webstractions.com/wordpress/remove-recent-comments-inline-styl/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">7</slash:comments><feedburner:origLink>http://webstractions.com/wordpress/remove-recent-comments-inline-styl/</feedburner:origLink></item><item><title>Big Website List for Photoshop Tutorials, Tips and Tricks</title><link>http://feedproxy.google.com/~r/webstractions/~3/OkhoaJV-m98/</link><category>Graphics</category><category>adobe photoshop</category><category>photoshop tips</category><category>photoshop tricks</category><category>photoshop tutorials</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronnie T. Dodger</dc:creator><pubDate>Wed, 11 Mar 2009 09:31:44 PDT</pubDate><guid isPermaLink="false">http://webstractions.com/?p=143</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Late in 2004, I published a giant list of websites that catered to Photoshop tutorials, tips and tricks. I decided to dust the list off, add to it, and republish.  </p>
<p>The list is in no particular order. It is first found, first listed. Newer findings at the end.</p>
<ul>
<li><a href="http://www.tutorialoutpost.com/">Tutorial Outpost</a>  Digg style bookmarking site.</li>
<li><a href="http://www.good-tutorials.com/tutorials/photoshop/">Good-Tutorials.com</a> User submitted and ratings site.
</li>
<li><a href="http://www.photoshopcafe.com/tutorials.htm">PhotoshopCAFE</a> Ugly site. Active forum area.
</li>
<li><a href="http://home.zonnet.nl/epragt/tutorials/photoshop/index.jsp.htm">Photoshop Tutorials</a> Slightly dated, but original tutorials.
</li>
<li><a href="http://www.tutorialized.com/tutorials/Photoshop/">Photoshop From Tutorialized</a> User submission and rating site.
</li>
<li><a href="http://www.creativepro.com/topic/graphics">CreativePro Photoshop Articles</a> Original, but slightly dated.
</li>
<li><a href="http://www.epaperpress.com/psphoto/index.html">Photoshop for Photographers</a> A few digital photography tips (CS2, CS3)
</li>
<li><a href="http://www.axialis.com/tutorials/index.html">Axialis Tutorials</a> Integration with Axialis products.
</li>
<li><a href="http://www.heathrowe.com/tutorials.asp">HeathRowe Photoshop Tutorials</a> Basic tips and tricks. Outdated.
</li>
<li><a href="http://www.teamphotoshop.com/Tutorial-15,8.html">TeamPhotoshop Tutorials &amp; Tips</a> Original submissions and user forum.
</li>
<li><a href="http://www.grafika.cz/photoshop/index.html">Grafika PS Tutorials (Czech)</a> Original tutorials (Czech only).
</li>
<li><a href="http://biorust.com/index.php?page=tutorial">BioRust PS Tutorials</a> Original tutorial community.
</li>
<li><a href="http://www.cbtcafe.com/photoshop/index.htm">CBT Cafe PS Tutorials &amp; Articles</a> Wide topic range. Some video tutorials.
</li>
<li><a href="http://www.pslover.com/">Photoshop Lover</a> Submission and rating site. Massive.</li>
<li><a href="http://www.planetphotoshop.com/category/tutorials">Planet Photoshop Tutorials</a> Excellent, original. And in video!
</li>
<li><a href="http://www.computer-darkroom.com/home.htm">Computer Darkroom </a> Misc. digital photography tutorials. Still being updated.
</li>
<li><a href="http://www.phong.com/tutorials/">Phong PS Tutorials</a> Very detailed.
</li>
<li><a href="http://www.magicpixel.com.au/magicpixel/html/workwel.html">Magic Pixel PS Workshop</a> Very dated.</li>
<li><a href="http://www.informit.com/articles/index.asp?st=41503">Informit Photoshop Articles</a> Sample chapters from popular books.
</li>
<li><a href="http://www.digitalphotobook.net/articles.html">Digital Photography Tutorials</a> Dated, but good digital photo information.
</li>
<li><a href="http://www.makeshiftmiracle.com/Tutorials.html">The Makeshift Miracle Tutorials</a> Techniques from a cartoonist.
</li>
<li><a href="http://www.shanzcan.com/photoshop/photoshop.html">Shanzcan Photoshop Tutorials</a> Downloadable tutorials. Somewhat dated.
</li>
<li><a href="http://www.photoshopbrushes.com/tutorials.htm">Photoshop Brushes Tutorials</a> More than just brushes. Seems to be updated.
</li>
<li><a href="http://www.grafx-design.com/phototut.html">GrafX Design PS Tutorials</a> Original tuts, updated on a regular basis.
</li>
<li><a href="http://www.pegaweb.com/tutorials/web-design-and-adobe-photoshop-tutorials.htm">Pegaweb PS Tutorials</a> Very original. Retro-web effects too.
</li>
<li><a href="http://retouchpro.com/tutorials/index.php">RetouchPRO Tutorials</a> Restoration and retouch techniques.
</li>
</ul>
<p>The new kids on the block.</p>
<ul>
<li><a href="http://photoshoptutorials.ws/">PhotoshopTutorials.ws</a> Includes Elements. Plans for older versions of PS.
</li>
<li><a href="http://www.layersmagazine.com/category/tutorials/photoshop">Layers Magazine Photoshop Tutorials</a> How-to for everything Adobe.
</li>
<li><a href="http://www.photoshopstar.com/">PhotoshopStar</a> Very original and lesser known gem.
</li>
<li><a href="http://psd.tutsplus.com/">PSDTuts</a> Original. Paid submissions. Very popular.</li>
<li><a href="http://www.absolutecross.com/tutorials/photoshop/">Absolute Cross</a> Original and organized.
</li>
<li><a href="http://www.freeonlineclasses.net/photoshop-tutorials/photoshop-tutorials.html">Free Online Classes</a> Original and easy to follow.</li>
<li><a href="http://abduzeedo.com/tags/photoshop">Abduzeedo</a>  Original tutorials and design inspiration.
</li>
<li><a href="http://pshero.com/">PSHero.com</a> Original tutorials, custom shapes and more.
</li>
<li><a href="http://www.tutorial9.net/category/photoshop/">Tutorial9</a> Original, with photography tutorials.
</li>
<li><a href="http://www.photoshoptalent.com/photoshop-tutorials/">Photoshop Talent Exclusives</a> Large community driven site, with contests.</li>
<li><a href="http://www.adobetutorialz.com/categories/Adobe-Photoshop/">Adobe Tutorialz</a> Original. Includes photo editing techniques.
</li>
<li><a href="http://www.prowseed.com/blog/category/tutorials/">Maciej Kwas</a> Young talent from Poland.
</li>
<li><a href="http://psdfan.com/category/tutorials/">PSD Fan</a> Original and very active.
</li>
</ul>
<p>There are probably more out there than listed above. If you have a suggestion to add to the list, drop a comment below. </p>



Share with the world!


	<a rel="nofollow" target="_blank" href="mailto:?subject=Big%20Website%20List%20for%20Photoshop%20Tutorials%2C%20Tips%20and%20Tricks&amp;body=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Fbig-website-list-for-photoshop-tutorials-tips-and-tricks%2F" title="E-mail this story to a friend!"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Fbig-website-list-for-photoshop-tutorials-tips-and-tricks%2F" title="TwitThis"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/twitter_boxed_48.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Fbig-website-list-for-photoshop-tutorials-tips-and-tricks%2F&amp;title=Big%20Website%20List%20for%20Photoshop%20Tutorials%2C%20Tips%20and%20Tricks" title="Digg"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Fbig-website-list-for-photoshop-tutorials-tips-and-tricks%2F&amp;title=Big%20Website%20List%20for%20Photoshop%20Tutorials%2C%20Tips%20and%20Tricks" title="StumbleUpon"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Fbig-website-list-for-photoshop-tutorials-tips-and-tricks%2F&amp;title=Big%20Website%20List%20for%20Photoshop%20Tutorials%2C%20Tips%20and%20Tricks" title="del.icio.us"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Fbig-website-list-for-photoshop-tutorials-tips-and-tricks%2F&amp;title=Big%20Website%20List%20for%20Photoshop%20Tutorials%2C%20Tips%20and%20Tricks" title="Ping.fm"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/ping.gif" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Fbig-website-list-for-photoshop-tutorials-tips-and-tricks%2F&amp;title=Big%20Website%20List%20for%20Photoshop%20Tutorials%2C%20Tips%20and%20Tricks" title="Reddit"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>
<p><a href="http://feedads.g.doubleclick.net/~a/c8fmyH1AOLWLL6-UP4ELgeLiwN8/0/da"><img src="http://feedads.g.doubleclick.net/~a/c8fmyH1AOLWLL6-UP4ELgeLiwN8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/c8fmyH1AOLWLL6-UP4ELgeLiwN8/1/da"><img src="http://feedads.g.doubleclick.net/~a/c8fmyH1AOLWLL6-UP4ELgeLiwN8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstractions?a=OkhoaJV-m98:BICFm0Unies:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=OkhoaJV-m98:BICFm0Unies:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=OkhoaJV-m98:BICFm0Unies:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstractions?i=OkhoaJV-m98:BICFm0Unies:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=OkhoaJV-m98:BICFm0Unies:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstractions?i=OkhoaJV-m98:BICFm0Unies:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstractions/~4/OkhoaJV-m98" height="1" width="1"/>]]></content:encoded><description>In 2004, I published a website list for Photoshop tutorials, tips, and tricks. Some sites are still flourishing, some died, and I have added a few more -- complete with brief comments to help you find what you need.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://webstractions.com/graphics/big-website-list-for-photoshop-tutorials-tips-and-tricks/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">12</slash:comments><feedburner:origLink>http://webstractions.com/graphics/big-website-list-for-photoshop-tutorials-tips-and-tricks/</feedburner:origLink></item><item><title>Solutions for Filtering the Noise on Twitter</title><link>http://feedproxy.google.com/~r/webstractions/~3/3RzS5pmFoz0/</link><category>Social Networking</category><category>greasemonkey</category><category>Jon Fox</category><category>tweet filtering</category><category>tweet grouping</category><category>tweetdeck</category><category>twitter</category><category>Twitter Throttle</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronnie T. Dodger</dc:creator><pubDate>Mon, 09 Mar 2009 10:54:18 PDT</pubDate><guid isPermaLink="false">http://webstractions.com/?p=129</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>One of the biggest hassles with <a href="http://www.twitter.com">Twitter</a> is the hundreds of tweets that go flying by in the course of a day, or an hour even. If you are not following that many tweeps to begin with, then the problem is not as frustrating &#8212; unless one of those tweeps bombard you with multiple tweets and repeatedly every four hours.  </p>
<p>There are a couple of avenues you can take to get a handle on this twitter overload. Probably more than a couple, but I will cover two of them right now.</p>
<h2>Group your tweets with TweetDeck</h2>
<p>If you haven&#8217;t heard of <a href="http://www.tweetdeck.com">TweetDeck</a>, then it is worth investigating. TweetDeck has a neat feature for creating groups. Once a group is created, then you can add any of your tweeps to the group. </p>
<p>I have a few groups. One in particular is a group that I labeled <em>uber-friends</em>. This group displays tweets from people that I really want to follow daily.</p>
<p>Another group I have for technical Php broadcasts from places such as <a href="http://www.zend.com">Zend</a> and other noteworthy people or sites. This type of group is just great for daily goings-on in the Php sector.</p>
<p>I have other groups, but I think you can get the idea of how groups in TweetDeck can work to your advantage. </p>
<h2>Filter your tweets with Twitter Throttle</h2>
<p>If you are used to your web based Twitter home page and want a viable solution for filtering out the noise, then I would suggest a new <a href="https://addons.mozilla.org/en-US/firefox/addon/748">GreaseMonkey</a> script for Firefox called <a href='http://jonefox.com/blog/2009/03/07/twitter-throttle/'>Twitter Throttle</a> by Jon Fox.</p>
<p>Twitter Throttle hides multiple tweets from the same person. Hidden tweets have an &#8216;expand&#8217; link so you can still view the tweet if you wish.  </p>
<p>If two or more tweets in a row are from the same person, then it will group all of those tweets into a single hidden, and expandable, box. If this is the case, the leftover room from the consolidated tweets are filled in with previous tweets until 20 lines of tweets are filled.</p>
<p>Setting up Twitter Throttle is fairly easy, if you are used to working with GreaseMonkey scripts. The only thing you need to edit in the script would be your username and password. </p>
<h2>How do you filter through the noise?</h2>
<p>If you have any hints or tips on how you use Twitter more efficiently and filter through the noise, drop a comment below. I would be interested in knowing your thoughts.</p>



Share with the world!


	<a rel="nofollow" target="_blank" href="mailto:?subject=Solutions%20for%20Filtering%20the%20Noise%20on%20Twitter&amp;body=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Ftwitter-noise-filtering%2F" title="E-mail this story to a friend!"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Ftwitter-noise-filtering%2F" title="TwitThis"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/twitter_boxed_48.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Ftwitter-noise-filtering%2F&amp;title=Solutions%20for%20Filtering%20the%20Noise%20on%20Twitter" title="Digg"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Ftwitter-noise-filtering%2F&amp;title=Solutions%20for%20Filtering%20the%20Noise%20on%20Twitter" title="StumbleUpon"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Ftwitter-noise-filtering%2F&amp;title=Solutions%20for%20Filtering%20the%20Noise%20on%20Twitter" title="del.icio.us"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Ftwitter-noise-filtering%2F&amp;title=Solutions%20for%20Filtering%20the%20Noise%20on%20Twitter" title="Ping.fm"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/ping.gif" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Ftwitter-noise-filtering%2F&amp;title=Solutions%20for%20Filtering%20the%20Noise%20on%20Twitter" title="Reddit"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>
<p><a href="http://feedads.g.doubleclick.net/~a/NKrjA2wLRbPCVkDqp1foUbfXzgs/0/da"><img src="http://feedads.g.doubleclick.net/~a/NKrjA2wLRbPCVkDqp1foUbfXzgs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/NKrjA2wLRbPCVkDqp1foUbfXzgs/1/da"><img src="http://feedads.g.doubleclick.net/~a/NKrjA2wLRbPCVkDqp1foUbfXzgs/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstractions?a=3RzS5pmFoz0:tV7l-A0qd74:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=3RzS5pmFoz0:tV7l-A0qd74:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=3RzS5pmFoz0:tV7l-A0qd74:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstractions?i=3RzS5pmFoz0:tV7l-A0qd74:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=3RzS5pmFoz0:tV7l-A0qd74:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstractions?i=3RzS5pmFoz0:tV7l-A0qd74:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstractions/~4/3RzS5pmFoz0" height="1" width="1"/>]]></content:encoded><description>Twitter overload? Having a problem filtering through all the noise on Twitter? Let's look at a couple of options to throttle back on the noise and get to the tweets that you really care about.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://webstractions.com/social-networking/twitter-noise-filtering/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">5</slash:comments><feedburner:origLink>http://webstractions.com/social-networking/twitter-noise-filtering/</feedburner:origLink></item><item><title>iconPot: Free icons for personal &amp; commercial use</title><link>http://feedproxy.google.com/~r/webstractions/~3/ok4s6R4IhKE/</link><category>Graphics</category><category>commercial use</category><category>free icons</category><category>graphic resource</category><category>icon packages</category><category>icon resource</category><category>royalty free icons</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronnie T. Dodger</dc:creator><pubDate>Fri, 06 Mar 2009 07:17:13 PST</pubDate><guid isPermaLink="false">http://webstractions.com/?p=114</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p><div id="attachment_116" class="wp-caption alignright" style="width: 160px"><a href="http://webstractions.com/blog/wp-content/uploads/2009/03/free-icon-pack-flavour.png"><img src="http://webstractions.com/blog/wp-content/uploads/2009/03/free-icon-pack-flavour-150x150.png" alt="Oliver Twardowski&#039;s &quot;Flavour&quot; icon set" title="Icon package sample" width="150" height="150" class="size-thumbnail wp-image-116" /></a><p class="wp-caption-text">Oliver Twardowskis Flavour icon set</p></div>Looking for icons to snazz up your web development project? Look no further. A new website, <a href='http://iconpot.com/'>iconPot</a>, lists web development icons that are free to use in any of your personal or commercial projects. </p>
<p>One restriction does apply, depending upon the icon package author, you cannot redistribute, sell, or provide a download service for the icon packages. </p>
<blockquote><p>The aim of this site is simple. We list a whole bunch of icons which are all great to use for your web development projects. But we are different to other icon-related websites because we only list icons which you can use for free on personal AND commercial projects AND without having to provide back-links/credit to the author. These types of icons can be tough to find, so here is a list for your convenience!</p></blockquote>
<p>While no backlinks or attributions are required to use the icon packages, you are encouraged to donate to the author. Or at the least, give them some credit where credit is due in the form of a backlink recognizing their efforts.</p>
<p>All icons are free to use at the time of their posting to the website, but it is still your responsibility to confirm the license and any restrictions of the icons via the authors website before using them in any project. </p>
<p>Hat tip to <a href="http://twitter.com/nourayehia/">@nourayehia</a> via Twitter.</p>



Share with the world!


	<a rel="nofollow" target="_blank" href="mailto:?subject=iconPot%3A%20Free%20icons%20for%20personal%20%26%20commercial%20use&amp;body=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Ficonpot-free-icons-for-personal-commercial-use%2F" title="E-mail this story to a friend!"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Ficonpot-free-icons-for-personal-commercial-use%2F" title="TwitThis"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/twitter_boxed_48.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Ficonpot-free-icons-for-personal-commercial-use%2F&amp;title=iconPot%3A%20Free%20icons%20for%20personal%20%26%20commercial%20use" title="Digg"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Ficonpot-free-icons-for-personal-commercial-use%2F&amp;title=iconPot%3A%20Free%20icons%20for%20personal%20%26%20commercial%20use" title="StumbleUpon"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Ficonpot-free-icons-for-personal-commercial-use%2F&amp;title=iconPot%3A%20Free%20icons%20for%20personal%20%26%20commercial%20use" title="del.icio.us"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Ficonpot-free-icons-for-personal-commercial-use%2F&amp;title=iconPot%3A%20Free%20icons%20for%20personal%20%26%20commercial%20use" title="Ping.fm"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/ping.gif" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fgraphics%2Ficonpot-free-icons-for-personal-commercial-use%2F&amp;title=iconPot%3A%20Free%20icons%20for%20personal%20%26%20commercial%20use" title="Reddit"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>
<p><a href="http://feedads.g.doubleclick.net/~a/Wz1WM7T_GD2bkjcB5K0CrHJX92s/0/da"><img src="http://feedads.g.doubleclick.net/~a/Wz1WM7T_GD2bkjcB5K0CrHJX92s/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Wz1WM7T_GD2bkjcB5K0CrHJX92s/1/da"><img src="http://feedads.g.doubleclick.net/~a/Wz1WM7T_GD2bkjcB5K0CrHJX92s/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstractions?a=ok4s6R4IhKE:4XVj3WU-SXE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=ok4s6R4IhKE:4XVj3WU-SXE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=ok4s6R4IhKE:4XVj3WU-SXE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstractions?i=ok4s6R4IhKE:4XVj3WU-SXE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=ok4s6R4IhKE:4XVj3WU-SXE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstractions?i=ok4s6R4IhKE:4XVj3WU-SXE:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstractions/~4/ok4s6R4IhKE" height="1" width="1"/>]]></content:encoded><description>A new website devoted to sniffing out free icon packages to use for any web development project, personal or commercial. No backlinks or attribution required.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://webstractions.com/graphics/iconpot-free-icons-for-personal-commercial-use/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">5</slash:comments><feedburner:origLink>http://webstractions.com/graphics/iconpot-free-icons-for-personal-commercial-use/</feedburner:origLink></item><item><title>Writing a Wordpress Function: breadcrumbs()</title><link>http://feedproxy.google.com/~r/webstractions/~3/k3_7H8Oxk3k/</link><category>Wordpress</category><category>breadcrumbs</category><category>function name prefix</category><category>functions.php</category><category>helper functions</category><category>html helpers</category><category>php</category><category>seo</category><category>template functions</category><category>template tags</category><category>wordpress functions</category><category>wordpress theme</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronnie T. Dodger</dc:creator><pubDate>Wed, 04 Mar 2009 09:00:17 PST</pubDate><guid isPermaLink="false">http://webstractions.com/?p=84</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>A Wordpress theme can optionally use a functions file, which resides in the theme subdirectory and is named <em>functions.php</em>. This file basically acts just like a Wordpress plugin, and if it is present in the theme you are using, it is automatically loaded during WordPress initialization.</p>
<p>Since you can define a function that can be used in several template files of your theme, a useful function to have around would be breadcrumbs. Breadcrumbs are a user-friendly navigation tool to complement your blog with. They are also good for internal linking structure, which is a sound SEO practice. </p>
<h2>Organization First</h2>
<p>We can write new functions and place them inside functions.php without any problems. However, as we will be writing more functions in the future, this file will start to grow. The file will become bloated, unorganized, and harder to manage. </p>
<p>We will use functions.php to <em>include</em> another function file. This external  file will contain our breadcrumbs function, and other functions that are related to it. One related function for breadcrumbs will be a <em>helper</em> function that will generate the Html for anchor links (more on this later).</p>
<p>Also, instead of cluttering the main theme directory with all of our new function files, we will create a subdirectory to store them all in. This will have the added benefit of moving the entire directory into other theme designs without having to dig around looking for them in the main theme directory.</p>
<h2>Structuring Directories and Files</h2>
<p>Create a subdirectory inside of your main theme directory named <kbd>/functions/</kbd>. </p>
<p>Inside the new subdirectory, create a blank file named <kbd>template-functions.php</kbd>. We could have named this new file breadcrumbs.php, but I am planning on adding more template functions in the future. </p>
<p>Insert the following code into the newly created template-functions.php file and save it:<br />
<pre><pre>
&lt;?php

/***********************************************************
* wsf_breadcrumbs() - Shows breadcrumbs in template
***********************************************************/
function wsf_breadcrumbs() {
}

/***********************************************************
* Helper Functions for template coding
***********************************************************/
function wsf_make_link () {
}

 ?&gt;
</pre></pre></p>
<p>Right now, the functions in this file do not do anything. Don&#8217;t worry, we will be fleshing that all out below.</p>
<p>Also note that I prefixed my function names with <kbd>wsf_</kbd>. All of my functions will be prefixed this way. The reason is to avoid any conflict with pre-existing functions or plugins.  </p>
<p>Hopefully this prefix is an unique one, and makes sense where it is coming from — in this case, wsf_ stands for <strong>W</strong>eb<strong>S</strong>tractions <strong>F</strong>unction. Feel free to use your own prefix in place of this one.</p>
<p>Open up the functions.php file inside your theme directory.  Most themes should have this file. If yours does not, create it. </p>
<p class="note">From this point on, I am assuming that you have a basic grasp of coding Wordperfect templates and some knowledge of how Php works. Remember that Php statements must reside between the <kbd>&lt;?php</kbd> and <kbd>?&gt;</kbd></p>
<p>Near the top of the functions.php file, and after the opening <kbd>&lt;?php</kbd> tag, add the following line of code:<br />
<pre><pre>
&nbsp;&nbsp; require_once(&#039;functions/template-functions.php&#039;);
</pre></pre><br />
The canvas is now set, let&#8217;s get on with a little coding.<br />
<br clear="all" /></p>
<h2>Template Helper Functions</h2>
<p>Breadcrumbs contain at least one link, or they can contain many links. Each step in building the breadcrumbs involves repetitive Html coding for anchor links.</p>
<p>Lets create a helper function to dynamically create the Html for the anchor link and add in some optional goodies along with it. </p>
<p>Edit your <kbd>functions/template-functions.php</kbd> file for the wsf_make_link function:</p>
<p><pre><pre>
/***********************************************************
* Helper Functions for template coding
***********************************************************/
function wsf_make_link ( $url, $anchortext, $title=null, $nofollow=false ) {
&nbsp;&nbsp; if ( $title == null ) $title=$anchortext;
&nbsp;&nbsp; $nofollow==true ? $rel=&#039; rel=&quot;nofollow&quot;&#039; : $rel = &#039;&#039;; 
 
&nbsp;&nbsp; $link = sprintf( &#039;&lt;a href=&quot;%s&quot; title=&quot;%s&quot;%s&gt;%s&lt;/a&gt;&#039;, $url, $title, $rel, $anchortext );
&nbsp;&nbsp; return $link; 
}
</pre></pre></p>
<p>This helper function takes two required parameters and two optional parameters. They are pretty much self-explanatory and you will notice that extra goody for setting the relationship of the link to Nofollow. </p>
<p>The helper function formats the parameters into a string variable and returns that variable for you to process further. Let&#8217;s put this function to work in our breadcrumbs function now.</p>
<h2>The breadcrumbs() Template Function</h2>
<p>Edit your <kbd>functions/template-functions.php</kbd> file for the wsf_breadcrumbs function:<br />
<pre></pre></p>
<p>The breadcrumbs function takes two optional parameters for the crumb separator and the label which gets pre-pended. Hopefully this is all pretty much explanatory.</p>
<p>Currently this function will only work on single post pages and pages that you create by hand. </p>
<p>For single posts, this function will look like the breadcrumb at the top of this page. If I have a post that contains more than one category, then they all will be listed and separated by a comma. (Ugly, I know. Will work on a better method in the future).</p>
<p>For your hand generated pages, there is a loop that will recursively step through the hierarchy of parent categories. You can have a page nested three, four, or more levels deep and this loop will follow it all the way back to the top. </p>
<p>In the future I plan on adding loops for tags, categories, archives, etc. But for now, the two biggies are here.</p>
<h2>Using Your breadcrumbs() Function in a Theme</h2>
<p>This is easy to plug into any theme. Since breadcrumbs will only show up for single posts and custom pages, you will only need to add the function to your <em>single.php</em> and <em>page.php</em> files.</p>
<p>Add this line in your theme file where you want the breadcrumbs to appear:<br />
<pre><pre>
&nbsp;&nbsp; &lt;?php wsf_breadcrumbs(&#039;&amp;raquo;&#039;,&#039;You are here&#039;) ?&gt;
</pre></pre></p>
<p>That will generate a breadcrumb like this:</p>
<div class="breadcrumbs" style="font-size:.9em;background-color:#eee;">You are here: <a href="http://webstractions.com" title="Webstractions Web Development">Home</a>&nbsp;&raquo;&nbsp;<a href="http://webstractions.com/category/wordpress/" title="View all posts in Wordpress" rel="category tag">Wordpress</a>&nbsp;&raquo;&nbsp;Writing a Wordpress Function: breadcrumbs()</div>
<p>Kewl, eh? </p>
<p>That is about all there is to it. You just wrote some functions that you can re-use in all of your Wordpress themes. Congratulations!</p>
<p>If you have any problems with this, let me know with a comment below. </p>



Share with the world!


	<a rel="nofollow" target="_blank" href="mailto:?subject=Writing%20a%20Wordpress%20Function%3A%20breadcrumbs%28%29&amp;body=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fwriting-a-wordpress-function-breadcrumbs%2F" title="E-mail this story to a friend!"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fwriting-a-wordpress-function-breadcrumbs%2F" title="TwitThis"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/twitter_boxed_48.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fwriting-a-wordpress-function-breadcrumbs%2F&amp;title=Writing%20a%20Wordpress%20Function%3A%20breadcrumbs%28%29" title="Digg"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fwriting-a-wordpress-function-breadcrumbs%2F&amp;title=Writing%20a%20Wordpress%20Function%3A%20breadcrumbs%28%29" title="StumbleUpon"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fwriting-a-wordpress-function-breadcrumbs%2F&amp;title=Writing%20a%20Wordpress%20Function%3A%20breadcrumbs%28%29" title="del.icio.us"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fwriting-a-wordpress-function-breadcrumbs%2F&amp;title=Writing%20a%20Wordpress%20Function%3A%20breadcrumbs%28%29" title="Ping.fm"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/ping.gif" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fwriting-a-wordpress-function-breadcrumbs%2F&amp;title=Writing%20a%20Wordpress%20Function%3A%20breadcrumbs%28%29" title="Reddit"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>
<p><a href="http://feedads.g.doubleclick.net/~a/nyzx27_rRTLDii5pgeIOFXdmoUE/0/da"><img src="http://feedads.g.doubleclick.net/~a/nyzx27_rRTLDii5pgeIOFXdmoUE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/nyzx27_rRTLDii5pgeIOFXdmoUE/1/da"><img src="http://feedads.g.doubleclick.net/~a/nyzx27_rRTLDii5pgeIOFXdmoUE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstractions?a=k3_7H8Oxk3k:8SWqMizt5rM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=k3_7H8Oxk3k:8SWqMizt5rM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=k3_7H8Oxk3k:8SWqMizt5rM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstractions?i=k3_7H8Oxk3k:8SWqMizt5rM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=k3_7H8Oxk3k:8SWqMizt5rM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstractions?i=k3_7H8Oxk3k:8SWqMizt5rM:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstractions/~4/k3_7H8Oxk3k" height="1" width="1"/>]]></content:encoded><description>Let's write a function for breadcrumbs that can be easily added to your Wordpress themes. Wordpress functions are preferable over the hundreds of plugins that are available -- to me anyway.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://webstractions.com/wordpress/writing-a-wordpress-function-breadcrumbs/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><feedburner:origLink>http://webstractions.com/wordpress/writing-a-wordpress-function-breadcrumbs/</feedburner:origLink></item><item><title>Formatting Sample Code Snippets in Wordpress</title><link>http://feedproxy.google.com/~r/webstractions/~3/gPcGoEnnmLI/</link><category>Wordpress</category><category>sample code formatting</category><category>wordpress plugins</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronnie T. Dodger</dc:creator><pubDate>Sat, 28 Feb 2009 10:34:49 PST</pubDate><guid isPermaLink="false">http://webstractions.com/?p=74</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Displaying code snippets in Wordpress can be a chore. Fortunately there are several plugins to choose from that will help you maintain the original formatting. </p>
<p>My plugin of choice right now is Scott Reilly&#8217;s <a href="http://coffee2code.com/wp-plugins/preserve-code-formatting/">Preserve Code Formatting</a>. Scott&#8217;s plugin prevents modification by WordPress and other plugins while retaining original whitespace and characters.</p>
<p>I looked at other plugins that included syntax highlighting, but quickly dismissed them. Syntax highlighting produces a ton of inline style spans wrapping the code fragments, and frankly, my choice of styling choices may not agree with your choices. </p>
<p>Now I can just paste code into <kbd>&lt;code&gt;</kbd>, <kbd>&lt;pre&gt;</kbd>, and/or other tags I can additionally specify and this plugin will:</p>
<ul>
<li>Prevent WordPress from HTML-encoding text (i.e. single- and double-quotes will not become curly; <code>--</code> and <code>---</code> will not become en dash and em dash, respectively; <code>...</code> will not become a horizontal ellipsis, etc)</li>
<li>Prevent most other plugins from modifying preserved code</li>
<li>Optionally preserve whitespace (in a variety of methods)</li>
<li>Optionally preserve code added in comments</li>
</ul>
<p>One caveat with the plugin is that you turn of the Visual Editor in your Wordpress settings. No biggy, I do this anyway. </p>
<p>Another quirk to the plugin is that it appears that the code block seems to get double wrapped with the <kbd>&lt;pre&gt;</kbd> tag. Why it does this, I do not know. But I took advantage of the quirk in my style sheet to apply a border effect.</p>
<p><pre><pre>
&nbsp;&nbsp; &lt;pre&gt;&nbsp;&nbsp;&nbsp;&nbsp; /* additional &lt;pre&gt; element added to Html output */
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;pre&gt;&nbsp;&nbsp;/* start of my post&#039;s code snippet */
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... my code snippet sample here
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</pre></pre>
   </pre>
</pre>
<p>The option to preserve code in comments (on by default) was left on. This will come in handy for any commenters who wish to leave sample code snippets if they wish. So give it a try, that will be kewl to do.</p>
<p>Leave a comment if you are using this plugin and tell me about it. Or another plugin that you are using. Will be interested in seeing some samples in action.</p>



Share with the world!


	<a rel="nofollow" target="_blank" href="mailto:?subject=Formatting%20Sample%20Code%20Snippets%20in%20Wordpress&amp;body=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fformatting-sample-code-snippets-in-wordpress%2F" title="E-mail this story to a friend!"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fformatting-sample-code-snippets-in-wordpress%2F" title="TwitThis"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/twitter_boxed_48.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fformatting-sample-code-snippets-in-wordpress%2F&amp;title=Formatting%20Sample%20Code%20Snippets%20in%20Wordpress" title="Digg"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fformatting-sample-code-snippets-in-wordpress%2F&amp;title=Formatting%20Sample%20Code%20Snippets%20in%20Wordpress" title="StumbleUpon"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fformatting-sample-code-snippets-in-wordpress%2F&amp;title=Formatting%20Sample%20Code%20Snippets%20in%20Wordpress" title="del.icio.us"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fformatting-sample-code-snippets-in-wordpress%2F&amp;title=Formatting%20Sample%20Code%20Snippets%20in%20Wordpress" title="Ping.fm"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/ping.gif" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fformatting-sample-code-snippets-in-wordpress%2F&amp;title=Formatting%20Sample%20Code%20Snippets%20in%20Wordpress" title="Reddit"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>
<p><a href="http://feedads.g.doubleclick.net/~a/f7naC_hglZnZSNCoAAnKuO6kctM/0/da"><img src="http://feedads.g.doubleclick.net/~a/f7naC_hglZnZSNCoAAnKuO6kctM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/f7naC_hglZnZSNCoAAnKuO6kctM/1/da"><img src="http://feedads.g.doubleclick.net/~a/f7naC_hglZnZSNCoAAnKuO6kctM/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstractions?a=gPcGoEnnmLI:guyui_gbWXw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=gPcGoEnnmLI:guyui_gbWXw:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=gPcGoEnnmLI:guyui_gbWXw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstractions?i=gPcGoEnnmLI:guyui_gbWXw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=gPcGoEnnmLI:guyui_gbWXw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstractions?i=gPcGoEnnmLI:guyui_gbWXw:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstractions/~4/gPcGoEnnmLI" height="1" width="1"/>]]></content:encoded><description>Displaying code snippets in Wordpress can be a chore. Fortunately there are several plugins to choose from. My plugin of choice is Scott Reilly's &lt;b&gt;Preserve Code Formatting&lt;/b&gt; which prevents modification by WordPress and other plugins while retaining original whitespace and characters.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://webstractions.com/wordpress/formatting-sample-code-snippets-in-wordpress/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">8</slash:comments><feedburner:origLink>http://webstractions.com/wordpress/formatting-sample-code-snippets-in-wordpress/</feedburner:origLink></item><item><title>Stupid YouTube Comments</title><link>http://feedproxy.google.com/~r/webstractions/~3/GiwttUV2dvE/</link><category>Social Networking</category><category>comments</category><category>youtube</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronnie T. Dodger</dc:creator><pubDate>Fri, 27 Feb 2009 09:55:21 PST</pubDate><guid isPermaLink="false">http://webstractions.com/?p=54</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>This about sums up how I see comments on YouTube.</p>
<p><a href="http://xkcd.com/202/"><img alt="" src="http://imgs.xkcd.com/comics/youtube.png" title="YouTube Comments" class="alignnone" width="450" height="860" /></a><br />
Via <a href='http://xkcd.com/'>xkcd &#8211; A Webcomic</a>. Hat tip to <a href="http://weierophinney.net/matthew/">Matthew</a>.</p>



Share with the world!


	<a rel="nofollow" target="_blank" href="mailto:?subject=Stupid%20YouTube%20Comments&amp;body=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Fstupid-youtube-comments%2F" title="E-mail this story to a friend!"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Fstupid-youtube-comments%2F" title="TwitThis"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/twitter_boxed_48.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Fstupid-youtube-comments%2F&amp;title=Stupid%20YouTube%20Comments" title="Digg"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Fstupid-youtube-comments%2F&amp;title=Stupid%20YouTube%20Comments" title="StumbleUpon"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Fstupid-youtube-comments%2F&amp;title=Stupid%20YouTube%20Comments" title="del.icio.us"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Fstupid-youtube-comments%2F&amp;title=Stupid%20YouTube%20Comments" title="Ping.fm"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/ping.gif" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fsocial-networking%2Fstupid-youtube-comments%2F&amp;title=Stupid%20YouTube%20Comments" title="Reddit"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>
<p><a href="http://feedads.g.doubleclick.net/~a/ih7xin7TPfCeRrWR0q-J__b_sLA/0/da"><img src="http://feedads.g.doubleclick.net/~a/ih7xin7TPfCeRrWR0q-J__b_sLA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ih7xin7TPfCeRrWR0q-J__b_sLA/1/da"><img src="http://feedads.g.doubleclick.net/~a/ih7xin7TPfCeRrWR0q-J__b_sLA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstractions?a=GiwttUV2dvE:0-oJ7MMZid0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=GiwttUV2dvE:0-oJ7MMZid0:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=GiwttUV2dvE:0-oJ7MMZid0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstractions?i=GiwttUV2dvE:0-oJ7MMZid0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=GiwttUV2dvE:0-oJ7MMZid0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstractions?i=GiwttUV2dvE:0-oJ7MMZid0:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstractions/~4/GiwttUV2dvE" height="1" width="1"/>]]></content:encoded><description>The Internet has always had loud dumb people, but I've never seen anything quite as bad as the people who comment on YouTube videos.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://webstractions.com/social-networking/stupid-youtube-comments/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">7</slash:comments><feedburner:origLink>http://webstractions.com/social-networking/stupid-youtube-comments/</feedburner:origLink></item><item><title>Undocumented Wordpress Query Function: wp_reset_query()</title><link>http://feedproxy.google.com/~r/webstractions/~3/Gkw--QmtkGs/</link><category>Wordpress</category><category>code</category><category>is_front_page()</category><category>is_home</category><category>query_posts()</category><category>recent entries</category><category>sidebar</category><category>widgets</category><category>wordpress functions</category><category>wordpress theme</category><category>wp_reset_query()</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronnie T. Dodger</dc:creator><pubDate>Thu, 26 Feb 2009 10:07:12 PST</pubDate><guid isPermaLink="false">http://webstractions.com/?p=23</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Working with Wordpress and coding themes is fairly easy to me. However, as is with every project, there comes a time in the process where you eventually pull your hair out. Such was the case when developing some simple<em> if logic</em> for the sidebar.</p>
<p>My goal was simple &mdash; suppress the Blogroll and Meta sections in the sidebar for any page except the Home Page. Logically, I thought, just surround the sections with the conditional tag is_home() should accomplish this simple feat. The Wordpress Codex even has a <a href="http://codex.wordpress.org/Conditional_Tags#Variable_Sidebar_Content">dynamic sidebar example</a> for the use, pretty straight forward. </p>
<p>Take the following snippet of sidebar code for example. I am displaying a list of recent posts, immediately followed by the conditional blogroll.</p>
<p><pre><pre>
&lt;ul class=&quot;sidebar_list&quot;&gt;
&nbsp;&nbsp; &lt;li class=&quot;widget&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;Latest Blog Entries&lt;/h3&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php query_posts(&#039;showposts=10&#039;); ?&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title() ?&gt;&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php endwhile; endif; ?&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
&nbsp;&nbsp; &lt;/li&gt;
&nbsp;&nbsp; &lt;?php if(is_home() &amp;&amp; !is_paged()): ?&gt;
&nbsp;&nbsp; &lt;li class=&quot;widget&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;Blogroll&lt;/h3&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php&nbsp;&nbsp;wp_list_bookmarks(&#039;title_li=&amp;categorize=0&#039;); ?&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
&nbsp;&nbsp; &lt;/li&gt;
&nbsp;&nbsp; &lt;?php endif; ?&gt;
&lt;/ul&gt;&nbsp;&nbsp;
</pre></pre></p>
<p>The above code returns true for <kbd>is_home()</kbd> on each and every non-home page or post. Why is that? This is where I lost quite a bit of hair, mostly from the left side of my head and therefore most of the insulation to the thinking part of the brain. Good thing the heat works around here.</p>
<p>It took quite a lot of searching. This is not an easy thing to Google for, but eventually came across some answers.</p>
<p>The culprit in the code was the use of <kbd>query_posts()</kbd> in the recent posts widget. If I swapped the positions of the two widgets, <kbd>is_home()</kbd> functioned correctly. The query_posts() function has an obscure little bug if you do not destroy it properly with a call to <kbd>wp_reset_query()</kbd>.</p>
<p>There isn&#8217;t any documentation on <kbd>wp_reset_query()</kbd> in the Codex, so I will cite the comment heading from the Wordpress core file, query.php, which this function is from:</p>
<p><cite>wp_reset_query() destroys the previous query and setup a new query. This should be used after  query_posts() and before another query_posts(). This will remove obscure bugs that occur when the previous wp_query object is not destroyed properly before another is setup.</cite></p>
<p>So I added that function immediately following the endwhile in the recent comments widget, and bam, everything was right in the universe again.</p>
<p><pre><pre>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;....
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php query_posts(&#039;showposts=10&#039;); ?&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title() ?&gt;&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php endwhile; endif; ?&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php wp_reset_query(); ?&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;....
</pre></pre></p>
<p>Searching for references to <kbd>wp_reset_query()</kbd> in the Wordpress core files reveals only one instance of usage. That instance, oddly enough, is in the widget.php function for displaying the recent entries widget. Imagine that!</p>
<p>Reviewing the code, however, I made another discovery. Instead of using <kbd>query_posts()</kbd>, they create a new <a href="http://codex.wordpress.org/Function_Reference/WP_Query">WP_query object</a> to cycle through the posts and generate the recent entry list items. They use the new object in order to preserve the original query in the <em>main</em> loop, <a href="http://codex.wordpress.org/The_Loop">the loop</a> that displays your posts on page.  More importantly, the new object preserves the values of is_home() and other conditional tags &mdash; the use of wp_reset_query is really not needed here. Seems to be a left over from a previous version and not edited out of the core code.</p>
<p>In order to do this the <em>wordpress-ian</em> way, I recoded my sidebar widget for recent posts (<em>sans wp_reset_query</em>):</p>
<p><pre><pre>
&lt;li class=&quot;widget&quot;&gt;
&nbsp;&nbsp; &lt;h3&gt;Latest Blog Entries&lt;/h3&gt;
&nbsp;&nbsp; &lt;ul&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php $r = new WP_Query(array(&#039;showposts&#039; =&gt; &#039;10&#039;, &#039;what_to_show&#039; =&gt; &#039;posts&#039;, 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#039;nopaging&#039; =&gt; 0, &#039;post_status&#039; =&gt; &#039;publish&#039;, &#039;caller_get_posts&#039; =&gt; 1)); ?&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php if ($r-&gt;have_posts()) : while ($r-&gt;have_posts()) : $r-&gt;the_post(); ?&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title() ?&gt;&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php endwhile; endif; ?&gt;
&nbsp;&nbsp; &lt;/ul&gt;
&lt;/li&gt;
</pre></pre></p>
<p>If you follow my logic in tracking down this little bugger, you will notice that my first resource to check was the conditional tag documentation in the Codex. Sadly, there is no mention of the consequences you will encounter by using query_posts() which alters the original page loop. </p>
<p>The WP support forum is filled with questions of &#8216;why is this not working&#8217;. Some go unanswered, some they fix and leave no reason how, some get the &#8216;review the conditonal tags documentation&#8217; buddy, and so on. It took a lot of searching to get a whiff of what I needed to do to correct the situation.</p>
<p>My suggestion is to at least insert a caveat into the documentation for conditional tags warning of what will happen to those tags if another query_posts() is called. This is the first place people will actually look for help after all. And it would probably save a lot of people&#8217;s time in the long run, not only the people seeking it, but the people offering a solution as well.</p>
<p><strong>UPDATE: </strong> The discussion for the creation of wp_reset_query() function can be found at <a href="http://trac.wordpress.org/ticket/4741">http://trac.wordpress.org/ticket/4741</a> if you are interested. Thanks to Stephen&#8217;s post <a href="http://striderweb.com/nerdaphernalia/2008/01/automated-indexes-and-wp_reset_query/">Automated Indexes and wp_reset_query()</a> at  Nerdaphernalia for pointing this out. </p>



Share with the world!


	<a rel="nofollow" target="_blank" href="mailto:?subject=Undocumented%20Wordpress%20Query%20Function%3A%20wp_reset_query%28%29&amp;body=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fundocumented-wordpress-query-function-wp_reset_query%2F" title="E-mail this story to a friend!"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fundocumented-wordpress-query-function-wp_reset_query%2F" title="TwitThis"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/twitter_boxed_48.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fundocumented-wordpress-query-function-wp_reset_query%2F&amp;title=Undocumented%20Wordpress%20Query%20Function%3A%20wp_reset_query%28%29" title="Digg"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fundocumented-wordpress-query-function-wp_reset_query%2F&amp;title=Undocumented%20Wordpress%20Query%20Function%3A%20wp_reset_query%28%29" title="StumbleUpon"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fundocumented-wordpress-query-function-wp_reset_query%2F&amp;title=Undocumented%20Wordpress%20Query%20Function%3A%20wp_reset_query%28%29" title="del.icio.us"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fundocumented-wordpress-query-function-wp_reset_query%2F&amp;title=Undocumented%20Wordpress%20Query%20Function%3A%20wp_reset_query%28%29" title="Ping.fm"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/ping.gif" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fundocumented-wordpress-query-function-wp_reset_query%2F&amp;title=Undocumented%20Wordpress%20Query%20Function%3A%20wp_reset_query%28%29" title="Reddit"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>
<p><a href="http://feedads.g.doubleclick.net/~a/_JIe3nZ_DY1ZTlK6Hxhmg-CAzeo/0/da"><img src="http://feedads.g.doubleclick.net/~a/_JIe3nZ_DY1ZTlK6Hxhmg-CAzeo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/_JIe3nZ_DY1ZTlK6Hxhmg-CAzeo/1/da"><img src="http://feedads.g.doubleclick.net/~a/_JIe3nZ_DY1ZTlK6Hxhmg-CAzeo/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstractions?a=Gkw--QmtkGs:W9y5DYZtFSA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=Gkw--QmtkGs:W9y5DYZtFSA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=Gkw--QmtkGs:W9y5DYZtFSA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstractions?i=Gkw--QmtkGs:W9y5DYZtFSA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=Gkw--QmtkGs:W9y5DYZtFSA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstractions?i=Gkw--QmtkGs:W9y5DYZtFSA:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstractions/~4/Gkw--QmtkGs" height="1" width="1"/>]]></content:encoded><description>Creating a conditional sidebar widget in Wordpress turned into an odyssey of discovery. How an obscure usage of query_posts will bork your is_home() conditional tags.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://webstractions.com/wordpress/undocumented-wordpress-query-function-wp_reset_query/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">6</slash:comments><feedburner:origLink>http://webstractions.com/wordpress/undocumented-wordpress-query-function-wp_reset_query/</feedburner:origLink></item><item><title>The Building of a Blog</title><link>http://feedproxy.google.com/~r/webstractions/~3/bhq6RDWBd00/</link><category>Wordpress</category><category>webstractive theme</category><category>wordpress plugins</category><category>wordpress settings</category><category>wordpress theme</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronnie T. Dodger</dc:creator><pubDate>Tue, 24 Feb 2009 05:40:19 PST</pubDate><guid isPermaLink="false">http://webstractions.com/?p=5</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>While I am not totally new to Wordpress as a blogging platform, this is the first time I have used it for my personal website. The previous version of this site, I had used Blogger which was FTP-ed to my server. With a few Php enhancements and a phpBB backend, I have managed to create a rather unique blogging atmosphere.</p>
<p>I am now starting from scratch with  Wordpress 2.7 — this is the first time I have used this later version. The backend Admin area was totally rearranged. I rather like it though, especially the way Posts are laid out. It felt more comfortable to use to me.</p>
<p>What follows is an abstract for some of the high-points during the creation of this blog. More for documentation purposes, and in the future will be updated to include links to newer posts in which I can go into more detail.</p>
<h3>Wordpress Settings</h3>
<p>Moved Wordpress to the root domain per <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">Codex article</a>.</p>
<p>Turned off the Visual Editor in profile settings. </p>
<p>Custom structure for Permalinks <kbd>/%category%/%postname%/</kbd></p>
<h3>Wordpress Plugins</h3>
<p>Akismet, of course.</p>
<p>That is about it. Pretty much lean and mean.</p>
<h3>Wordpress Theme (Webstractive)</h3>
<p><div id="attachment_6" class="wp-caption alignright" style="width: 196px"><a href="http://webstractions.com/blog/wp-content/uploads/2009/02/01-13.jpg"><img src="http://webstractions.com/blog/wp-content/uploads/2009/02/01-13-186x300.jpg" alt="Early stages of theme development" title="01-13" width="186" height="300" class="size-medium wp-image-6" /></a><p class="wp-caption-text">Early stages of theme development</p></div>The new Wordpress theme, dubbed <em>Webstractive</em>, is inspired by <a href="http://dmiracle.com/general/working-out-the-bugs/">Dawud Miracle&#8217;s new layout</a> that he launched in April of 2008. I liked the simple brown color schemes — it had an earthy quality to it.<br />
<br />
As a baseline, I am using the old <a href="http://www.pearsonified.com/theme/copyblogger/">Copyblogger theme</a>. Albeit, it is a heavily modified version that I use for new blogs and even a website that I developed with <a href="http://framework.zend.com">Zend Framework</a>. I got a lot of mileage out of this puppy!<br />
<br />
All graphics are created using Photoshop Elements, and an old version to boot. I am too set in my ways and this baby has served me well for a number of years. I am not too graphically talented, so why load up something that I never intend to use to its fullest.<br />
<br />
Use of <kbd>&lt;?php the_excerpt(); ?&gt;</kbd> on index, category and archive pages. This did not take too much thought. It is a little more work to create those little teasers, but I think it adds character and a touch of professionalism to a blog.</p>
<h3>Future Work</h3>
<p>Will update this post as needed, add in screenshots, document procedures, etc. yada, yada. As mentioned in my inaugural post, there is an undocumented &#8217;snafu&#8217; with the is_home() and is_front() functions in the WP core &#8211; more on that later too.</p>



Share with the world!


	<a rel="nofollow" target="_blank" href="mailto:?subject=The%20Building%20of%20a%20Blog&amp;body=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fthe-building-of-a-blog%2F" title="E-mail this story to a friend!"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fthe-building-of-a-blog%2F" title="TwitThis"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/twitter_boxed_48.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fthe-building-of-a-blog%2F&amp;title=The%20Building%20of%20a%20Blog" title="Digg"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fthe-building-of-a-blog%2F&amp;title=The%20Building%20of%20a%20Blog" title="StumbleUpon"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fthe-building-of-a-blog%2F&amp;title=The%20Building%20of%20a%20Blog" title="del.icio.us"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fthe-building-of-a-blog%2F&amp;title=The%20Building%20of%20a%20Blog" title="Ping.fm"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/ping.gif" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwebstractions.com%2Fwordpress%2Fthe-building-of-a-blog%2F&amp;title=The%20Building%20of%20a%20Blog" title="Reddit"><img src="http://webstractions.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>


<br/><br/>
<p><a href="http://feedads.g.doubleclick.net/~a/5ko5OMxYNUbgRoF9RrnE9X2YqHU/0/da"><img src="http://feedads.g.doubleclick.net/~a/5ko5OMxYNUbgRoF9RrnE9X2YqHU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5ko5OMxYNUbgRoF9RrnE9X2YqHU/1/da"><img src="http://feedads.g.doubleclick.net/~a/5ko5OMxYNUbgRoF9RrnE9X2YqHU/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstractions?a=bhq6RDWBd00:PlF00PTVe-I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=bhq6RDWBd00:PlF00PTVe-I:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstractions?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=bhq6RDWBd00:PlF00PTVe-I:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstractions?i=bhq6RDWBd00:PlF00PTVe-I:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstractions?a=bhq6RDWBd00:PlF00PTVe-I:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstractions?i=bhq6RDWBd00:PlF00PTVe-I:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstractions/~4/bhq6RDWBd00" height="1" width="1"/>]]></content:encoded><description>Travel with me through the inner workings of Wordpress during my installation and theme creation. What I did or did not do, and why. From Wordpress plugins to settings, it is all here.</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://webstractions.com/wordpress/the-building-of-a-blog/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://webstractions.com/wordpress/the-building-of-a-blog/</feedburner:origLink></item></channel></rss>
