<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>beer planet &#187; Wordpress</title> <atom:link href="http://beerpla.net/tag/wordpress/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Fri, 06 Jan 2012 08:50:59 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/> <item><title>How To: Disable/Block External HTTP Requests In WordPress</title><link>http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/</link> <comments>http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/#comments</comments> <pubDate>Wed, 16 Nov 2011 18:57:43 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[block]]></category> <category><![CDATA[disable]]></category> <category><![CDATA[external]]></category> <category><![CDATA[http]]></category> <category><![CDATA[request]]></category> <category><![CDATA[WP_ACCESSIBLE_HOSTS]]></category> <category><![CDATA[WP_HTTP_BLOCK_EXTERNAL]]></category> <guid
isPermaLink="false">http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/</guid> <description><![CDATA[<p>One thing that&#039;s been continuously annoying me when doing WordPress development on the go is when something somewhere inside WordPress decides to send requests to external urls when I don&#039;t even have Internet connection or it&#039;s slow and flaky (tethering, slow Wi-Fi, etc). This results in random lag when loading pages, especially if I haven&#039;t opened my dev WordPress instance for a long time.</p><p>Turns out there&#039;s an easy and undocumented (other than in code) solution. To block external HTTP requests right in WordPress&#039;s core itself, open up wp-config.php and add <strong><em>WP_HTTP_BLOCK_EXTERNAL</em></strong> like so:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>define('WP_HTTP_BLOCK_EXTERNAL', true);</pre></td></tr></table></div><p>Whenever this variable is present, external requests will be ignored, unless you specify your own comma-separated whitelist of domains using <strong><em>WP_ACCESSIBLE_HOSTS</em></strong> like...<div
class=clear></div> <a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>One thing that&#039;s been continuously annoying me when doing WordPress development on the go is when something somewhere inside WordPress decides to send requests to external urls when I don&#039;t even have Internet connection or it&#039;s slow and flaky (tethering, slow Wi-Fi, etc). This results in random lag when loading pages, especially if I haven&#039;t opened my dev WordPress instance for a long time.</p><p>Turns out there&#039;s an easy and undocumented (other than in code) solution. To block external HTTP requests right in WordPress&#039;s core itself, open up wp-config.php and add <strong><em>WP_HTTP_BLOCK_EXTERNAL</em></strong> like so:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>define('WP_HTTP_BLOCK_EXTERNAL', true);</pre></td></tr></table></div><p>Whenever this variable is present, external requests will be ignored, unless you specify your own comma-separated whitelist of domains using <strong><em>WP_ACCESSIBLE_HOSTS</em></strong> like so:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>define('WP_ACCESSIBLE_HOSTS', 'site1.com, site2.com');</pre></td></tr></table></div><pre></pre><p>You can examine relevant core code <a
href="http://svn.automattic.com/wordpress/trunk/wp-includes/class-http.php">here</a> and the relevant bug reports <a
href="http://core.trac.wordpress.org/ticket/8927">here</a> and <a
href="http://core.trac.wordpress.org/ticket/14636">here</a>.</p><p>Happy developing!</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To%3A+Disable%2FBlock+External+HTTP+Requests+In+Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%3A%20Disable%2FBlock%20External%20HTTP%20Requests%20In%20Wordpress&amp;link=http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/&amp;notes=One%20thing%20that%27s%20been%20continuously%20annoying%20me%20when%20doing%20Wordpress%20development%20on%20the%20go%20is%20when%20something%20somewhere%20inside%20Wordpress%20decides%20to%20send%20requests%20to%20external%20urls%20when%20I%20don%27t%20even%20have%20Internet%20connection%20or%20it%27s%20slow%20and%20flaky%20%28tethering%2C%20slow%20Wi-Fi%2C%20etc%29.%20This%20results%20in%20random%20lag%20&amp;short_link=http://bit.ly/sxcL9M&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/" rel="bookmark" title="January 18, 2010">WordPress Developers &#8211; How Do You Make A Living [Poll + Discussion]?</a></li><li><a
href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" rel="bookmark" title="June 20, 2009">How To Properly Set SVN svn:externals Property In SVN Command Line</a></li><li><a
href="http://beerpla.net/2010/06/10/how-to-display-just-the-http-response-code-in-cli-curl/" rel="bookmark" title="June 10, 2010">How To Display Just The HTTP Response Code In Command Line Curl</a></li><li><a
href="http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/" rel="bookmark" title="June 11, 2009">Proof That God Does Exist &#8211; You Can Finally Block Those Insanely Annoying Facebook Quizzes For Good</a></li><li><a
href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" rel="bookmark" title="March 29, 2008">Beer Planet Upgraded To WordPress 2.5</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2011%2F11%2F16%2Fhow-to-disableblock-external-http-requests-in-wordpress%2F&amp;title=How%20To%3A%20Disable%2FBlock%20External%20HTTP%20Requests%20In%20WordPress" id="wpa2a_2"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How To Add Shortcode Support To WordPress Comments And Sidebar Widgets</title><link>http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/</link> <comments>http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/#comments</comments> <pubDate>Sat, 16 Oct 2010 03:20:26 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[action]]></category> <category><![CDATA[add]]></category> <category><![CDATA[comment]]></category> <category><![CDATA[filter]]></category> <category><![CDATA[shortcode]]></category> <category><![CDATA[sidebar]]></category> <category><![CDATA[support]]></category> <category><![CDATA[trigger]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/</guid> <description><![CDATA[<p>WordPress has a great way of letting you use simple text tags called shortcodes to provide a whole bunch of functionality, including custom PHP code. In this article, I&#039;m assuming that you already know what shortcodes do and how they operate (if you don&#039;t, head over here: <a
href="http://codex.wordpress.org/Shortcode_API">Shortcode_API</a>).</p><p>One glaring omission in the way shortcodes are set up by default is that they only get triggered in the content of your post, leaving the sidebar and comments out. I&#039;m sure this is done for security, so that your readers can&#039;t screw something up by posting shortcodes they&#039;re not supposed to &#8211; after all, shortcodes are PHP snippets on the backend.</p><p>However, let&#039;s assume you really know what you&#039;re doing...<div
class=clear></div> <a
href="http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>WordPress has a great way of letting you use simple text tags called shortcodes to provide a whole bunch of functionality, including custom PHP code. In this article, I&#039;m assuming that you already know what shortcodes do and how they operate (if you don&#039;t, head over here: <a
href="http://codex.wordpress.org/Shortcode_API">Shortcode_API</a>).</p><p>One glaring omission in the way shortcodes are set up by default is that they only get triggered in the content of your post, leaving the sidebar and comments out. I&#039;m sure this is done for security, so that your readers can&#039;t screw something up by posting shortcodes they&#039;re not supposed to &#8211; after all, shortcodes are PHP snippets on the backend.</p><p>However, let&#039;s assume you really know what you&#039;re doing and you want, for example, to allow certain shortcodes in the comments and all shortcodes in the sidebar. It&#039;s your site and you should be able to do whatever you want with it. For instance, I wanted to provide a way to include QR codes using a <a
href="http://www.androidpolice.com/2010/09/15/new-androidpolice-com-feature-instant-qr-magic-hover-on-any-link-in-any-post-to-get-the-corresponding-qr-code-poll/">[qr] shortcode syntax that I&#039;d written</a> both in the sidebar and in the comments, except in the comments that was the only shortcode I wanted to allow my readers to use.</p><p>Since these cases can get complicated, let&#039;s start simple and then progressively get deeper.</p><h2>Allow all shortcodes in the sidebar</h2><p>Assuming you want to enable shortcodes in the <a
href="http://wordpress.org/extend/plugins/php-code-widget/">PHP Code Widget</a> widgets (I believe this is the most common way to add PHP support to the sidebar), use this code:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>add_filter('widget_execphp', 'do_shortcode');</pre></td></tr></table></div><p>If you have some other widgets in mind, you have to find out the right filter and use it just like above.</p><h2>Allow only whitelisted shortcodes in the comments</h2><p>Since I don&#039;t want <em>all</em> shortcodes to fire here, things get slightly trickier.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td
class="code"><pre>function init_common_shortcodes() {
  add_shortcode('qr', 'my_shortcode_qr');
}
&nbsp;
function init_comment_shortcodes() {
  remove_all_shortcodes();
  init_common_shortcodes();
  add_filter('comment_text', 'do_shortcode');
}
&nbsp;
init_common_shortcodes();
add_filter('comments_template', 'init_comment_shortcodes');</pre></td></tr></table></div><p>The code above will remove all shortcodes when it gets to comments and reinitialize only the whitelisted one called &quot;<strong>[</strong>qr<strong>]</strong>&quot;, which is exactly what I wanted.</p><p><div
class="note"><div
class="noteclassic"><strong>Note</strong>: If your code somehow uses shortcodes after the comments (such as a sidebar or a custom post query), you will need the trick in the next section.</div></div></p><h2>Allow all shortcodes in the sidebar AND only whitelisted ones in the comments</h2><p>At this point, things get slightly tricky because if I combine the previous 2 solutions into 1, by the time WordPress gets to the sidebar, it&#039;ll be left without any shortcodes at all &#8211; they&#039;ve been removed by the code dealing with comments. Therefore, I need to save the shortcodes before dealing with comments and then restore them after the comments and before the sidebar.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td
class="code"><pre>function my_remove_all_shortcodes() {
  global $shortcode_tags;
  global $temp_shortcode_tags;
  $temp_shortcode_tags = $shortcode_tags;
  remove_all_shortcodes();
}
&nbsp;
function my_restore_all_shortcodes() {
  global $shortcode_tags;
  global $temp_shortcode_tags;
  if(!empty($temp_shortcode_tags)) {
    $shortcode_tags = $temp_shortcode_tags;
  }
}
&nbsp;
function init_common_shortcodes() {
  add_shortcode('qr', 'my_shortcode_qr');
}
&nbsp;
function init_comment_shortcodes() {
  my_remove_all_shortcodes();
  init_common_shortcodes();
  add_filter('comment_text', 'do_shortcode');
}
&nbsp;
add_filter('comments_template', 'init_comment_shortcodes');
add_filter('dynamic_sidebar', 'my_restore_all_shortcodes');
add_filter('widget_execphp', 'do_shortcode');
init_common_shortcodes();</pre></td></tr></table></div><p>Here is what the code does:</p><ol><li>Initialize custom shortcodes that I want to add all over the place.</li><li>When WP gets to the comment block, it removes all shortcodes (again, for security) and re-initializes only the ones I want, but this time remembers them so that they can be restored later.</li><li>After the comments, when WP gets to the dynamic sidebar, it restores all the shortcodes and applies them to each <a
href="http://wordpress.org/extend/plugins/php-code-widget/">PHP Code Widget</a>.</li></ol><p>And there you have it. Of course, the code may need tweaking for your own scenario but the ideas are all there. If you spot an error or know of an easier/better way, please let me know.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Add+Shortcode+Support+To+Wordpress+Comments+And+Sidebar+Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Add%20Shortcode%20Support%20To%20Wordpress%20Comments%20And%20Sidebar%20Widgets&amp;link=http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/&amp;notes=Wordpress%20has%20a%20great%20way%20of%20letting%20you%20use%20simple%20text%20tags%20called%20shortcodes%20to%20provide%20a%20whole%20bunch%20of%20functionality%2C%20including%20custom%20PHP%20code.%20In%20this%20article%2C%20I%27m%20assuming%20that%20you%20already%20know%20what%20shortcodes%20do%20and%20how%20they%20operate%20%28if%20you%20don%27t%2C%20head%20over%20here%3A%20Shortcode_API%29.%0D%0AOne%20glarin&amp;short_link=http://bit.ly/am7MRr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" rel="bookmark" title="January 31, 2010">How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</a></li><li><a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" rel="bookmark" title="January 13, 2010">[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a></li><li><a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" rel="bookmark" title="March 21, 2010">How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</a></li><li><a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" rel="bookmark" title="November 16, 2011">How To: Disable/Block External HTTP Requests In WordPress</a></li><li><a
href="http://beerpla.net/2008/04/15/mysql-conference-liveblogging-disaster-is-inevitable-are-you-prepared-tuesday-425pm/" rel="bookmark" title="April 15, 2008">MySQL Conference Liveblogging: Disaster Is Inevitable &#8211; Are You Prepared? (Tuesday 4:25PM)</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F10%2F15%2Fhow-to-add-shortcode-support-to-wordpress-comments-and-sidebars%2F&amp;title=How%20To%20Add%20Shortcode%20Support%20To%20WordPress%20Comments%20And%20Sidebar%20Widgets" id="wpa2a_4"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</title><link>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/</link> <comments>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/#comments</comments> <pubDate>Sun, 21 Mar 2010 10:42:10 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[broken]]></category> <category><![CDATA[comment]]></category> <category><![CDATA[count]]></category> <category><![CDATA[database]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[incorrect]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[query]]></category> <category><![CDATA[sql]]></category> <category><![CDATA[wp_comments]]></category> <category><![CDATA[wp_posts]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/</guid> <description><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/517e9e45d3fa_2C92/image.png" width="222" height="189" /></p><h2>Introduction</h2><p>If your WordPress comment counts got messed up, whether because of a plugin (I&#039;m talking about you, DISQUS) or you messed with your database manually and did something wrong (yup, that&#039;s what I just did), fear not &#8211; I have a solution for you.</p><p>But first, a little background.</p><h2>Comment Counts In WordPress</h2><p>Here&#039;s how comment counts work in WP:</p><ul><li>Posts live in a table called <strong><em>wp_posts</em></strong> and each has an ID.</li><li>Comments reside in a table called <strong><em>wp_comments</em></strong>, each referring to an ID in wp_posts.</li><li>However, to make queries faster, the comment count is also cached in the wp_posts table, rather than getting calculated on every page load. <br
/>If this count ever gets out of</li></ul><p>...<div
class=clear></div> <a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/517e9e45d3fa_2C92/image.png" width="222" height="189" /></p><h2>Introduction</h2><p>If your WordPress comment counts got messed up, whether because of a plugin (I&#039;m talking about you, DISQUS) or you messed with your database manually and did something wrong (yup, that&#039;s what I just did), fear not &#8211; I have a solution for you.</p><p>But first, a little background.</p><h2>Comment Counts In WordPress</h2><p>Here&#039;s how comment counts work in WP:</p><ul><li>Posts live in a table called <strong><em>wp_posts</em></strong> and each has an ID.</li><li>Comments reside in a table called <strong><em>wp_comments</em></strong>, each referring to an ID in wp_posts.</li><li>However, to make queries faster, the comment count is also cached in the wp_posts table, rather than getting calculated on every page load. <br
/>If this count ever gets out of sync with the actual number of comments for some reason, WordPress, while still displaying all comments properly, will simply show the wrong count.</li></ul><h2>How To Find Out Which Posts Are Out Of Sync</h2><p>Fire up a MySQL shell or your favorite MySQL software (mine is <a
href="http://www.navicat.com" rel="nofollow">Navicat</a>) and run this query.</p><p>It assumes your database is called <strong><em>wordpress</em></strong> and the prefix is <strong><em>wp_</em></strong>, so adjust those accordingly.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre>SELECT wpp.id, wpp.post_title, wpp.comment_count, wpc.cnt
FROM wordpress.wp_posts wpp
LEFT JOIN
(SELECT comment_post_id AS c_post_id, count(*) AS cnt FROM wordpress.wp_comments
 WHERE comment_approved = 1 GROUP BY comment_post_id) wpc
ON wpp.id=wpc.c_post_id
WHERE wpp.post_type IN ('post', 'page')
      AND (wpp.comment_count!=wpc.cnt OR (wpp.comment_count != 0 AND wpc.cnt IS NULL));</pre></td></tr></table></div></p><p>The result of this query is a list of posts whose comment_counts differ from the actual number of comments associated with each of them.</p><p>The left count is the cached number, while the right one is the right one.</p><h2>How To Fix The Counts Automatically</h2><p><div
class="note"><div
class="notewarning">Please make a backup of your database before performing any altering queries such as the one below (I recommend mysqldump or the <a
href="http://lesterchan.net/wordpress/readme/wp-dbmanager.html" rel="nofollow">WP-DBManager plugin</a>).</div></div></p><p>The following query will recalculate and fix the comment counts for all posts that are out of sync (ones we just queried for above):</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre>UPDATE wordpress.wp_posts wpp
LEFT JOIN
(SELECT comment_post_id AS c_post_id, count(*) AS cnt FROM wordpress.wp_comments
 WHERE comment_approved = 1 GROUP BY comment_post_id) wpc
ON wpp.id=wpc.c_post_id
SET wpp.comment_count=wpc.cnt
WHERE wpp.post_type IN ('post', 'page')
      AND (wpp.comment_count!=wpc.cnt OR (wpp.comment_count != 0 AND wpc.cnt IS NULL));</pre></td></tr></table></div><p>I tested this approach on a few test cases but if you experience any problems, please do alert me in the comments and desribe your problem.</p><p>Happy WP hacking!</p><div
class='post_blob_1'>Online <a
href="http://www.test-king.com/exams/642-892.htm">642-892</a> training is the quickest way to pass <a
href="http://www.test-king.com/exams/642-642.htm">642-642</a> as well as <a
href="http://www.test-king.com/exams/640-863.htm">640-863</a> exams.</div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Diagnose%20And%20Fix%20Incorrect%20Post%20Comment%20Counts%20In%20Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/" rel="bookmark" title="January 5, 2010">How To Fix Intermittent MySQL Errcode 13 Errors On Windows</a></li><li><a
href="http://beerpla.net/2008/04/16/mysql-conference-liveblogging-mysql-performance-under-a-microscope-the-tobias-and-jay-show-wednesday-200pm/" rel="bookmark" title="April 16, 2008">MySQL Conference Liveblogging: MySQL Performance Under A Microscope: The Tobias And Jay Show (Wednesday 2:00PM)</a></li><li><a
href="http://beerpla.net/2008/04/15/mysql-conference-liveblogging-explain-demystified-tuesday-200p/" rel="bookmark" title="April 15, 2008">MySQL Conference Liveblogging: EXPLAIN Demystified (Tuesday 2:00PM)</a></li><li><a
href="http://beerpla.net/2009/05/11/mysql-deletingupdating-rows-common-to-2-tables-speed-and-slave-lag-considerations/" rel="bookmark" title="May 11, 2009">[MySQL] Deleting/Updating Rows Common To 2 Tables &#8211; Speed And Slave Lag Considerations</a></li><li><a
href="http://beerpla.net/2008/03/25/navicat-for-mysql-bugs-filed/" rel="bookmark" title="March 25, 2008">Navicat For MySQL Bugs Filed</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F03%2F21%2Fhow-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress%2F&amp;title=How%20To%20Diagnose%20And%20Fix%20Incorrect%20Post%20Comment%20Counts%20In%20WordPress" id="wpa2a_6"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/feed/</wfw:commentRss> <slash:comments>22</slash:comments> </item> <item><title>How To View A Specific SVN Revision In Your Browser</title><link>http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/</link> <comments>http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/#comments</comments> <pubDate>Sun, 21 Feb 2010 06:04:17 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[SVN]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[bc]]></category> <category><![CDATA[browser]]></category> <category><![CDATA[chrome]]></category> <category><![CDATA[directory]]></category> <category><![CDATA[file]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[internet explorer]]></category> <category><![CDATA[revision]]></category> <category><![CDATA[specific]]></category> <category><![CDATA[subversion]]></category> <category><![CDATA[trunk]]></category> <category><![CDATA[update]]></category> <category><![CDATA[view]]></category> <category><![CDATA[Wordpress]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/</guid> <description><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/2010/04/image.png" width="150" height="150" /> This is a quick recipe that I found pretty interesting and relatively unknown.</p><p>Everyone who uses SVN knows that most repositories are set up to allow viewing of their contents via a web browser. For example, here&#039;s the trunk of WP Plugins SVN: <a
title="http://plugins.svn.wordpress.org/" href="http://plugins.svn.wordpress.org/" rel="nofollow">http://plugins.svn.wordpress.org/</a> and here is the current trunk version of a specific file, let&#039;s say <a
title="http://plugins.svn.wordpress.org/stats/trunk/readme.txt" href="http://plugins.svn.wordpress.org/stats/trunk/readme.txt" rel="nofollow">http://plugins.svn.wordpress.org/stats/trunk/readme.txt</a>.</p><h2>The Problem</h2><p>However, what if you wanted to view a <strong><em>specific revision</em></strong> of a file or directory <strong><em>in your browser</em></strong>?</p><p>Let&#039;s say I wanted revision 100,000 of <a
href="http://plugins.svn.wordpress.org/stats/trunk/readme.txt" rel="nofollow">http://plugins.svn.wordpress.org/stats/trunk/readme.txt</a></p><p>Normally, on a command line, you&#039;d do something like</p><div
class="wp_syntax"><div
class="code"><pre>svn co http://plugins.svn.wordpress.org/stats/trunk/readme.txt stats
cd stats;
svn up -r100000 readme.txt</pre></div></div><p>or simply</p><div
class="wp_syntax"><div
class="code"><pre>svn export</pre></div></div><p>...<div
class=clear></div> <a
href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/2010/04/image.png" width="150" height="150" /> This is a quick recipe that I found pretty interesting and relatively unknown.</p><p>Everyone who uses SVN knows that most repositories are set up to allow viewing of their contents via a web browser. For example, here&#039;s the trunk of WP Plugins SVN: <a
title="http://plugins.svn.wordpress.org/" href="http://plugins.svn.wordpress.org/" rel="nofollow">http://plugins.svn.wordpress.org/</a> and here is the current trunk version of a specific file, let&#039;s say <a
title="http://plugins.svn.wordpress.org/stats/trunk/readme.txt" href="http://plugins.svn.wordpress.org/stats/trunk/readme.txt" rel="nofollow">http://plugins.svn.wordpress.org/stats/trunk/readme.txt</a>.</p><h2>The Problem</h2><p>However, what if you wanted to view a <strong><em>specific revision</em></strong> of a file or directory <strong><em>in your browser</em></strong>?</p><p>Let&#039;s say I wanted revision 100,000 of <a
href="http://plugins.svn.wordpress.org/stats/trunk/readme.txt" rel="nofollow">http://plugins.svn.wordpress.org/stats/trunk/readme.txt</a></p><p>Normally, on a command line, you&#039;d do something like</p><div
class="wp_syntax"><div
class="code"><pre>svn co http://plugins.svn.wordpress.org/stats/trunk/readme.txt stats
cd stats;
svn up -r100000 readme.txt</pre></div></div><p>or simply</p><div
class="wp_syntax"><div
class="code"><pre>svn export -r100000 http://plugins.svn.wordpress.org/stats/trunk/readme.txt</pre></div></div><p>However, how would you do this in your browser? Trying something like ?r=100000 or ?revision=100000 parameters doesn&#039;t work.</p><h2>The Solution</h2><p>Here is the syntax to get a specific revision of a file or directory:</p><ol><li>Take the root of the repository (in our case, <a
href="http://plugins.svn.wordpress.org" rel="nofollow">http://plugins.svn.wordpress.org</a>)</li><li>Append this string <strong><em>!svn/bc/REVISION_NUMBER</em></strong> right after the repository root and before the directory or file path.</li></ol><p>Going back to our example:</p><ul><li><a
href="http://plugins.svn.wordpress.org/!svn/bc/100000/stats/" rel="nofollow">http://plugins.svn.wordpress.org/!svn/bc/100000/stats/</a><p>shows the stats directory exactly as it was at revision 100,000 and</p></li><li><a
title="http://plugins.svn.wordpress.org/!svn/bc/100000/stats/trunk/readme.txt" href="http://plugins.svn.wordpress.org/!svn/bc/100000/stats/trunk/readme.txt" rel="nofollow">http://plugins.svn.wordpress.org/!svn/bc/100000/stats/trunk/readme.txt</a><p>shows our readme.txt at 100,000.</p></li></ul><p>And that&#039;s how you do it, folks. Happy revisioning!</p><p><strong>Update</strong>: this post is now sponsored by <a
href="http://www.wirefly.com/learn/">Wirefly Learn</a> where you can find cell phone news and reviews, as well as comparisons and videos.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+View+A+Specific+SVN+Revision+In+Your+Browser&amp;link=http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/&amp;notes=%20This%20is%20a%20quick%20recipe%20that%20I%20found%20pretty%20interesting%20and%20relatively%20unknown.%20%20Everyone%20who%20uses%20SVN%20knows%20that%20most%20repositories%20are%20set%20up%20to%20allow%20viewing%20of%20their%20contents%20via%20a%20web%20browser.%20For%20example%2C%20here%27s%20the%20trunk%20of%20WP%20Plugins%20SVN%3A%20http%3A%2F%2Fplugins.svn.wordpress.org%2F%20and%20here%20is%20the%20curr&amp;short_link=http://bit.ly/cFiWmr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+View+A+Specific+SVN+Revision+In+Your+Browser&amp;link=http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/&amp;notes=%20This%20is%20a%20quick%20recipe%20that%20I%20found%20pretty%20interesting%20and%20relatively%20unknown.%20%20Everyone%20who%20uses%20SVN%20knows%20that%20most%20repositories%20are%20set%20up%20to%20allow%20viewing%20of%20their%20contents%20via%20a%20web%20browser.%20For%20example%2C%20here%27s%20the%20trunk%20of%20WP%20Plugins%20SVN%3A%20http%3A%2F%2Fplugins.svn.wordpress.org%2F%20and%20here%20is%20the%20curr&amp;short_link=http://bit.ly/cFiWmr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+View+A+Specific+SVN+Revision+In+Your+Browser&amp;link=http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/&amp;notes=%20This%20is%20a%20quick%20recipe%20that%20I%20found%20pretty%20interesting%20and%20relatively%20unknown.%20%20Everyone%20who%20uses%20SVN%20knows%20that%20most%20repositories%20are%20set%20up%20to%20allow%20viewing%20of%20their%20contents%20via%20a%20web%20browser.%20For%20example%2C%20here%27s%20the%20trunk%20of%20WP%20Plugins%20SVN%3A%20http%3A%2F%2Fplugins.svn.wordpress.org%2F%20and%20here%20is%20the%20curr&amp;short_link=http://bit.ly/cFiWmr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+View+A+Specific+SVN+Revision+In+Your+Browser&amp;link=http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/&amp;notes=%20This%20is%20a%20quick%20recipe%20that%20I%20found%20pretty%20interesting%20and%20relatively%20unknown.%20%20Everyone%20who%20uses%20SVN%20knows%20that%20most%20repositories%20are%20set%20up%20to%20allow%20viewing%20of%20their%20contents%20via%20a%20web%20browser.%20For%20example%2C%20here%27s%20the%20trunk%20of%20WP%20Plugins%20SVN%3A%20http%3A%2F%2Fplugins.svn.wordpress.org%2F%20and%20here%20is%20the%20curr&amp;short_link=http://bit.ly/cFiWmr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+View+A+Specific+SVN+Revision+In+Your+Browser&amp;link=http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/&amp;notes=%20This%20is%20a%20quick%20recipe%20that%20I%20found%20pretty%20interesting%20and%20relatively%20unknown.%20%20Everyone%20who%20uses%20SVN%20knows%20that%20most%20repositories%20are%20set%20up%20to%20allow%20viewing%20of%20their%20contents%20via%20a%20web%20browser.%20For%20example%2C%20here%27s%20the%20trunk%20of%20WP%20Plugins%20SVN%3A%20http%3A%2F%2Fplugins.svn.wordpress.org%2F%20and%20here%20is%20the%20curr&amp;short_link=http://bit.ly/cFiWmr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+View+A+Specific+SVN+Revision+In+Your+Browser&amp;link=http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/&amp;notes=%20This%20is%20a%20quick%20recipe%20that%20I%20found%20pretty%20interesting%20and%20relatively%20unknown.%20%20Everyone%20who%20uses%20SVN%20knows%20that%20most%20repositories%20are%20set%20up%20to%20allow%20viewing%20of%20their%20contents%20via%20a%20web%20browser.%20For%20example%2C%20here%27s%20the%20trunk%20of%20WP%20Plugins%20SVN%3A%20http%3A%2F%2Fplugins.svn.wordpress.org%2F%20and%20here%20is%20the%20curr&amp;short_link=http://bit.ly/cFiWmr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+View+A+Specific+SVN+Revision+In+Your+Browser&amp;link=http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/&amp;notes=%20This%20is%20a%20quick%20recipe%20that%20I%20found%20pretty%20interesting%20and%20relatively%20unknown.%20%20Everyone%20who%20uses%20SVN%20knows%20that%20most%20repositories%20are%20set%20up%20to%20allow%20viewing%20of%20their%20contents%20via%20a%20web%20browser.%20For%20example%2C%20here%27s%20the%20trunk%20of%20WP%20Plugins%20SVN%3A%20http%3A%2F%2Fplugins.svn.wordpress.org%2F%20and%20here%20is%20the%20curr&amp;short_link=http://bit.ly/cFiWmr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20View%20A%20Specific%20SVN%20Revision%20In%20Your%20Browser&amp;link=http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/&amp;notes=%20This%20is%20a%20quick%20recipe%20that%20I%20found%20pretty%20interesting%20and%20relatively%20unknown.%20%20Everyone%20who%20uses%20SVN%20knows%20that%20most%20repositories%20are%20set%20up%20to%20allow%20viewing%20of%20their%20contents%20via%20a%20web%20browser.%20For%20example%2C%20here%27s%20the%20trunk%20of%20WP%20Plugins%20SVN%3A%20http%3A%2F%2Fplugins.svn.wordpress.org%2F%20and%20here%20is%20the%20curr&amp;short_link=http://bit.ly/cFiWmr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" rel="bookmark" title="June 20, 2009">How To Properly Set SVN svn:externals Property In SVN Command Line</a></li><li><a
href="http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/" rel="bookmark" title="June 16, 2008">How To SVN Update All Your WordPress Plugins In One Go</a></li><li><a
href="http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/" rel="bookmark" title="July 23, 2008">How To Check If The Local SVN Revision Is Up-To-Date</a></li><li><a
href="http://beerpla.net/2006/07/15/converting-from-cvs-to-svn-developers-notes-and-why-svn-is-better/" rel="bookmark" title="July 15, 2006">Converting from CVS to SVN: Developer&#039;s Notes And Why SVN Is Better</a></li><li><a
href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" rel="bookmark" title="March 29, 2008">Beer Planet Upgraded To WordPress 2.5</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F02%2F20%2Fhow-to-view-a-specific-svn-revision-in-your-browser%2F&amp;title=How%20To%20View%20A%20Specific%20SVN%20Revision%20In%20Your%20Browser" id="wpa2a_8"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</title><link>http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/</link> <comments>http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/#comments</comments> <pubDate>Sun, 31 Jan 2010 09:45:15 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Tips]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[add_action]]></category> <category><![CDATA[comments]]></category> <category><![CDATA[functions]]></category> <category><![CDATA[functions.php]]></category> <category><![CDATA[hardcoded]]></category> <category><![CDATA[inline]]></category> <category><![CDATA[recent]]></category> <category><![CDATA[recent_comments_style]]></category> <category><![CDATA[remove]]></category> <category><![CDATA[remove_action]]></category> <category><![CDATA[sidebar]]></category> <category><![CDATA[theme]]></category> <category><![CDATA[widget]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/</guid> <description><![CDATA[<h2>The Problem</h2><p>If you use the Recent Comments sidebar widget in your WordPress installation, it&#039;s possible that you want to customize this widget&#039;s style.</p><p>You will quickly find, however, that as soon as you add the widget to your sidebar, it injects the following inline, hardcoded CSS into the containing page (using !important to make things worse):&#160;</p><div
class="wp_syntax"><div
class="code"><pre>&#60;style type=&#34;text/css&#34;&#62;.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}&#60;/style&#62;</pre></div></div><p>The code above comes from <strong><em>recent_comments_style()</em></strong> (found in wp-includes/default-widgets.php), which is in turn called by <strong><em>WP_Widget_Recent_Comments()</em></strong> in the same file (this is just an old-style PHP4 constructor &#8211; same as PHP5&#039;s __construct()), which is triggered when the Recent Comments widget is used:</p><div
class="wp_syntax"><div
class="code"><pre>add_action( 'wp_head', array(&#38;$this, 'recent_comments_style') );</pre></div></div><p>This leaves a bad taste in my...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>The Problem</h2><p>If you use the Recent Comments sidebar widget in your WordPress installation, it&#039;s possible that you want to customize this widget&#039;s style.</p><p>You will quickly find, however, that as soon as you add the widget to your sidebar, it injects the following inline, hardcoded CSS into the containing page (using !important to make things worse):&#160;</p><div
class="wp_syntax"><div
class="code"><pre>&lt;style type=&quot;text/css&quot;&gt;.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}&lt;/style&gt;</pre></div></div><p>The code above comes from <strong><em>recent_comments_style()</em></strong> (found in wp-includes/default-widgets.php), which is in turn called by <strong><em>WP_Widget_Recent_Comments()</em></strong> in the same file (this is just an old-style PHP4 constructor &#8211; same as PHP5&#039;s __construct()), which is triggered when the Recent Comments widget is used:</p><div
class="wp_syntax"><div
class="code"><pre>add_action( 'wp_head', array(&amp;$this, 'recent_comments_style') );</pre></div></div><p>This leaves a bad taste in my mouth because:</p><ul><li>the style is automatically forced into any page that embeds the widget</li><li>it uses !important to override any existing styles</li><li>it cannot be configured from the widget</li><li>this is a core WordPress widget and not some widget added by a random plugin. WordPress should not contain such bad practices.</li></ul><p>After seeing this, I raised a new <a
href="http://core.trac.wordpress.org/ticket/11928" rel="nofollow">issue #11928</a> in the WordPress bug tracker but in the meantime, of course, I could go and hack the default-widgets.php core file to solve this problem. That, of course, would be a horrible thing to do &#8211; the next upgrade could wipe my changes or result in a conflict (if upgrading via svn). In general, one should never need to modify core files.</p><h2>The Solution</h2><p>Fortunately, there is a solution that doesn&#039;t involve modifying core files. Remember that we are talking about WordPress here, which gained its popularity due to the ease of customization.</p><p>Normally, we would just need to remove the <strong><em>recent_comments_style</em></strong> hook, which would prevent it from ever firing and injecting the CSS. In fact, <a
href="http://webstractions.com/wordpress/remove-recent-comments-inline-styl/" rel="nofollow">somebody over at webstractions.com</a> already took a crack at this approach with the following code, which may have worked for a while but doesn&#039;t anymore:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td
class="code"><pre>function remove_wp_widget_recent_comments_style() {
   if ( has_filter('wp_head', 'wp_widget_recent_comments_style') ) {
      remove_filter('wp_head', 'wp_widget_recent_comments_style' );
   }
}
add_filter( 'wp_head', 'remove_wp_widget_recent_comments_style', 1 );</pre></td></tr></table></div><p>This code doesn&#039;t work in the current version of WordPress because <strong><em>recent_comments_style()</em></strong> belongs to the <strong><em>WP_Widget_Recent_Comments</em></strong> class, and we need a tiny bit more effort to get through to the object of that class.</p><p>The following snippet, suggested by <a
href="http://twitter.com/nacin" rel="nofollow">Andrew Nacin</a> in a comment to the bug I opened up, does the job and works in WordPress 2.9.1:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
</pre></td><td
class="code"><pre>add_action('widgets_init', 'my_remove_recent_comments_style');
function my_remove_recent_comments_style() {
	global $wp_widget_factory;
	remove_action('wp_head', array($wp_widget_factory-&gt;widgets['WP_Widget_Recent_Comments'], 'recent_comments_style'));
}</pre></td></tr></table></div><p>This code first gets access to the right object and then passes it to the <strong><em>remove_action()</em></strong> function, along with the right function name <strong><em>recent_comments_style</em></strong>. Stick it intoyour functions.php and it should do the trick.</p><p>And there you have it.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Remove+Inline+Hardcoded+Recent+Comments+Sidebar+Widget+Style+From+Your+WordPress+Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Remove%20Inline%20Hardcoded%20Recent%20Comments%20Sidebar%20Widget%20Style%20From%20Your%20WordPress%20Theme&amp;link=http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/&amp;notes=The%20Problem%20%20If%20you%20use%20the%20Recent%20Comments%20sidebar%20widget%20in%20your%20Wordpress%20installation%2C%20it%27s%20possible%20that%20you%20want%20to%20customize%20this%20widget%27s%20style.%20%20You%20will%20quickly%20find%2C%20however%2C%20that%20as%20soon%20as%20you%20add%20the%20widget%20to%20your%20sidebar%2C%20it%20injects%20the%20following%20inline%2C%20hardcoded%20CSS%20into%20the%20contai&amp;short_link=http://bit.ly/aafYTI&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/10/15/how-to-add-shortcode-support-to-wordpress-comments-and-sidebars/" rel="bookmark" title="October 15, 2010">How To Add Shortcode Support To WordPress Comments And Sidebar Widgets</a></li><li><a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" rel="bookmark" title="January 13, 2010">[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a></li><li><a
href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" rel="bookmark" title="March 29, 2008">Beer Planet Upgraded To WordPress 2.5</a></li><li><a
href="http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/" rel="bookmark" title="November 6, 2010">How To Dynamically Increase Memory Limits When Interfacing With WordPress Using XML-RPC (Windows Live Writer, Etc)</a></li><li><a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" rel="bookmark" title="November 16, 2011">How To: Disable/Block External HTTP Requests In WordPress</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F31%2Fhow-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme%2F&amp;title=How%20To%20Remove%20Inline%20Hardcoded%20Recent%20Comments%20Sidebar%20Widget%20Style%20From%20Your%20WordPress%20Theme" id="wpa2a_10"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>WordPress Developers &#8211; How Do You Make A Living [Poll + Discussion]?</title><link>http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/</link> <comments>http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/#comments</comments> <pubDate>Tue, 19 Jan 2010 01:33:45 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[automattic]]></category> <category><![CDATA[core]]></category> <category><![CDATA[cost]]></category> <category><![CDATA[developer]]></category> <category><![CDATA[living]]></category> <category><![CDATA[money]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[poll]]></category> <category><![CDATA[salary]]></category> <category><![CDATA[theme]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/</guid> <description><![CDATA[<h2>The Question</h2><p>I&#039;d like to pose this question to all WordPress developers &#8211; plugin, theme, as well as core ones:</p><blockquote><div
class="quote_left"></div><p>How do you make your living?</p></blockquote><p>And, for clarification, by this I mean: &#34;what are your primary sources of income?&#34;</p><h2>Open Source</h2><p>Open source is a beautiful concept but it often comes with a price tag or, rather, the inverse price tag: most of the time you are not being paid for your time (of course, there are exceptions, such as companies hiring dedicated open source developers and keeping them on their direct payroll).</p><p>Everyone has to make a living, however, and everyone has their ways.</p><p>Developers can benefit from such income sources as:</p><ul><li><strong><em>advertising</em></strong> on their</li></ul><p>...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>The Question</h2><p>I&#039;d like to pose this question to all WordPress developers &#8211; plugin, theme, as well as core ones:</p><blockquote><div
class="quote_left"></div><p>How do you make your living?</p></blockquote><p>And, for clarification, by this I mean: &quot;what are your primary sources of income?&quot;</p><h2>Open Source</h2><p>Open source is a beautiful concept but it often comes with a price tag or, rather, the inverse price tag: most of the time you are not being paid for your time (of course, there are exceptions, such as companies hiring dedicated open source developers and keeping them on their direct payroll).</p><p>Everyone has to make a living, however, and everyone has their ways.</p><p>Developers can benefit from such income sources as:</p><ul><li><strong><em>advertising</em></strong> on their sites, fueled by boosted Alexa and Google PR ratings</li><li><strong><em>freelancing</em></strong> and <strong><em>consulting</em></strong> work directly related to their open source project</li><li><strong><em>presenting</em></strong> at developer conferences</li><li><strong><em>creating products</em></strong> based on the open source projects they&#039;re involved with, as the technologies should be very familiar to them</li></ul><h2>WordPress</h2><p>Since <a
href="http://wordpress.org/support/profile/276841" rel="nofollow">I&#039;ve always been interested in WordPress development</a>, I feel connected to the WordPress community and would like to get some insight into the lives of WordPress developers.</p><p>Therefore, in addition to the main question, I have some follow-up questions:</p><ul><li>does Automattic pay WordPress core developers <strong><em>salary</em></strong>?</li><li>are there many WordPress core developers working for Automattic <strong><em>full time</em></strong>, besides Matt?</li><li>how about you, <strong><em>plugin</em></strong> and <strong><em>theme</em></strong> developers &#8211; are any of you successful enough that you can <strong><em>make a living off your plugins or themes</em></strong>?</li><li>what are your <strong><em>secrets</em></strong>?</li></ul><p>So in your responses, please state whether you&#039;re a <strong><em>core</em></strong> or <strong><em>plugin/theme</em></strong> developer, and answer the questions above that you can.</p><p>Of course, it goes without saying that any extra bits of advice would be welcomed as well.</p> Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.<p><strong>Update</strong>: this post is now sponsored by <a
href="http://www.wirefly.com/learn/">Wirefly Learn</a>, where you can find a ton of cell phone tutorials, comparisons, and videos.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress+Developers+-+How+Do+You+Make+A+Living+%5BPoll+%2B+Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Wordpress%20Developers%20-%20How%20Do%20You%20Make%20A%20Living%20%5BPoll%20%2B%20Discussion%5D%3F&amp;link=http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/&amp;notes=The%20Question%20%20I%27d%20like%20to%20pose%20this%20question%20to%20all%20Wordpress%20developers%20-%20plugin%2C%20theme%2C%20as%20well%20as%20core%20ones%3A%20%20%20%20%20%20%20%20%20How%20do%20you%20make%20your%20living%3F%20%20%20And%2C%20for%20clarification%2C%20by%20this%20I%20mean%3A%20%26quot%3Bwhat%20are%20your%20primary%20sources%20of%20income%3F%26quot%3B%20%20Open%20Source%20%20Open%20source%20is%20a%20beautiful%20concept%20but%20it%20&amp;short_link=http://bit.ly/6O9U3u&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" rel="bookmark" title="March 29, 2008">Beer Planet Upgraded To WordPress 2.5</a></li><li><a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" rel="bookmark" title="November 16, 2011">How To: Disable/Block External HTTP Requests In WordPress</a></li><li><a
href="http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/" rel="bookmark" title="March 5, 2009">IntenseDebate Introduces Plugins</a></li><li><a
href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" rel="bookmark" title="June 20, 2009">How To Properly Set SVN svn:externals Property In SVN Command Line</a></li><li><a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" rel="bookmark" title="January 31, 2010">How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F18%2Fwordpress-developers-how-do-you-make-a-living-poll-discussion%2F&amp;title=WordPress%20Developers%20%26%238211%3B%20How%20Do%20You%20Make%20A%20Living%20%5BPoll%20%2B%20Discussion%5D%3F" id="wpa2a_12"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/feed/</wfw:commentRss> <slash:comments>20</slash:comments> </item> <item><title>Follow-up To Loading CSS And JS Conditionally</title><link>http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/</link> <comments>http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/#comments</comments> <pubDate>Fri, 15 Jan 2010 20:07:40 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[action]]></category> <category><![CDATA[admin_print_scripts]]></category> <category><![CDATA[admin_print_styles]]></category> <category><![CDATA[conditional]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[enqueue]]></category> <category><![CDATA[hook]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[js]]></category> <category><![CDATA[load]]></category> <category><![CDATA[ob_flush]]></category> <category><![CDATA[ob_start]]></category> <category><![CDATA[optimization]]></category> <category><![CDATA[output buffer]]></category> <category><![CDATA[Performance]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[script]]></category> <category><![CDATA[style]]></category> <category><![CDATA[time]]></category> <category><![CDATA[wp_enqueue_script]]></category> <category><![CDATA[wp_enqueue_style]]></category> <category><![CDATA[wp_print_scripts]]></category> <category><![CDATA[wp_print_styles]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/</guid> <description><![CDATA[<p>First of all, I&#039;d like to thank everyone who read and gave their 2 cents about the <a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/">[Wordpress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a> post. The article was well received and will hopefully spark some optimizations around loading styles and scripts.</p><p>Here are some discussions and mentions around the web:</p><ul><li><a
href="http://weblogtoolscollection.com/archives/2010/01/15/how-to-include-css-and-javascript-conditionally/" rel="nofollow">an article</a> on Weblog Tools Collection</li><li><a
href="http://www.wptavern.com/forum/resources/1213-including-javascript-css-conditionally.html" rel="nofollow">a forum post</a> on WP Tavern</li><li><a
href="http://topsy.com/tb/ping.fm/DIM0S" rel="nofollow">twitter</a> retweets</li></ul><p>Sure, there are drawbacks to this method and it does require some more processing on the backend and it&#039;s not for everyone, which is why we should always strive for an even better solution.</p><p>I stand by my point of...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>First of all, I&#039;d like to thank everyone who read and gave their 2 cents about the <a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/">[Wordpress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a> post. The article was well received and will hopefully spark some optimizations around loading styles and scripts.</p><p>Here are some discussions and mentions around the web:</p><ul><li><a
href="http://weblogtoolscollection.com/archives/2010/01/15/how-to-include-css-and-javascript-conditionally/" rel="nofollow">an article</a> on Weblog Tools Collection</li><li><a
href="http://www.wptavern.com/forum/resources/1213-including-javascript-css-conditionally.html" rel="nofollow">a forum post</a> on WP Tavern</li><li><a
href="http://topsy.com/tb/ping.fm/DIM0S" rel="nofollow">twitter</a> retweets</li></ul><p>Sure, there are drawbacks to this method and it does require some more processing on the backend and it&#039;s not for everyone, which is why we should always strive for an even better solution.</p><p>I stand by my point of view that, for instance, my dedicated gallery shouldn&#039;t load for people who will never even go see my photos.</p><p>I think an ideal solution would be for WP core developers, who had a lot of experience designing WordPress&#039; internals and who know what can work and what can&#039;t, perhaps <a
href="http://www.ma.tt" rel="nofollow">Matt</a> included, to get together and think about a better solution really hard.</p><p>Conditional loading similar to the one discussed here is already possible in the admin area, which creates dynamic hooks by appending page ids to <strong><em>&#039;admin_print_styles&#039;</em></strong> and <strong><em>&#039;admin_print_scripts&#039;</em></strong>. It is, however, still not good enough to be used more generically because those hooks rely on the page you are on, rather than the content of that page.</p><p>Another possibility is using a PHP technique called <strong><em>output buffering</em></strong> (<a
href="http://php.net/manual/en/function.ob-start.php" rel="nofollow"><strong><em>ob_start()</em></strong></a>, <a
href="http://www.php.net/manual/en/function.ob-flush.php" rel="nofollow"><strong><em>ob_flush()</em></strong></a>, etc) that grants second chances to data that had already been echoed. It intercepts all echo and print calls and redirects them into a memory buffer, so instead of printing data to the page right away, you can now modify the header even if it had already been processed. It&#039;s like giving it a second chance.</p><p>Would it work for WordPress? I am not sure but I sure could use your feedback, devs.</p><p><div
class="note"><div
class="notetip"><strong>Update: </strong>Scribu, a WordPress master, <a
href="http://scribu.net/wordpress/optimal-script-loading.html" rel="nofollow">came up with the approach</a> that would at least handle loading JS, as it would put it in the footer, which can be done after the posts have been parsed.</p><p>His approach doesn&#039;t handle CSS which is why I decided to seek another solution but it doesn&#039;t require an extra pass through the posts and it benefits from using the shortcode API instead of stripos() or some hacky regex you&#039;d need to come up with.</p><p>It&#039;s a great compromise for developers who do not want to take the approach I outlined in the article linked at the top of this page.</div></div></p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up%20To%20Loading%20CSS%20And%20JS%20Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" rel="bookmark" title="January 13, 2010">[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a></li><li><a
href="http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/" rel="bookmark" title="February 17, 2009">Swapping Column Values in MySQL</a></li><li><a
href="http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/" rel="bookmark" title="November 6, 2010">How To Dynamically Increase Memory Limits When Interfacing With WordPress Using XML-RPC (Windows Live Writer, Etc)</a></li><li><a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" rel="bookmark" title="January 31, 2010">How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</a></li><li><a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" rel="bookmark" title="March 21, 2010">How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F15%2Ffollow-up-to-loading-css-and-js-conditionally%2F&amp;title=Follow-up%20To%20Loading%20CSS%20And%20JS%20Conditionally" id="wpa2a_14"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>20 Inspirational And Original Comment Form Designs For Your Blog</title><link>http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/</link> <comments>http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/#comments</comments> <pubDate>Fri, 15 Jan 2010 17:00:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Inspiration]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Web Design]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[blog]]></category> <category><![CDATA[button]]></category> <category><![CDATA[comment]]></category> <category><![CDATA[design]]></category> <category><![CDATA[form]]></category> <category><![CDATA[grungy]]></category> <category><![CDATA[js]]></category> <category><![CDATA[original]]></category> <category><![CDATA[style]]></category> <category><![CDATA[stylesheet]]></category> <category><![CDATA[submit]]></category> <category><![CDATA[webdev]]></category> <guid
isPermaLink="false">http://beerpla.net/?p=1375</guid> <description><![CDATA[<h2><img
style="margin: 0px 10px 10px 0px; display: inline" title="thumbnail" alt="thumbnail" align="left" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_34.png" width="150" height="150" /> Introduction</h2><p>If you follow web design at all, you probably see 5 billion top NN posts on a daily basis mentioning site and blog designs, fonts, icons, etc.</p><p>However, nobody seems to be paying attention to these little but important guys: comment forms.</p><p>If you have an appealing comment box, you are more likely to receive comments (this is based on days of scientific research that I imagined I did in my head) and your content is more likely to be re-shared, voted up, and saved.</p><p>I really do feel that way when I visit blogs, especially when an otherwise aesthetically pleasing site has a plain vanilla comment box.</p><h2>Let&#039;s Go</h2><p>So here we go. I have looked through...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2><img
style="margin: 0px 10px 10px 0px; display: inline" title="thumbnail" alt="thumbnail" align="left" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_34.png" width="150" height="150" /> Introduction</h2><p>If you follow web design at all, you probably see 5 billion top NN posts on a daily basis mentioning site and blog designs, fonts, icons, etc.</p><p>However, nobody seems to be paying attention to these little but important guys: comment forms.</p><p>If you have an appealing comment box, you are more likely to receive comments (this is based on days of scientific research that I imagined I did in my head) and your content is more likely to be re-shared, voted up, and saved.</p><p>I really do feel that way when I visit blogs, especially when an otherwise aesthetically pleasing site has a plain vanilla comment box.</p><h2>Let&#039;s Go</h2><p>So here we go. I have looked through hundreds of sites to make this collection, go ahead and let me know if you like it (yeah, I know, my comment box is not as spiffy as theirs).</p><p>I&#039;ve also included my notes with the parts that I liked.</p><h3>1. <a
href="http://www.blog.spoongraphics.co.uk">blog.spoongraphics.co.uk</a>&#160;</h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image.png" class="lightview" rel="gallery['1375']" title="http://www.blog.spoongraphics.co.uk"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.blog.spoongraphics.co.uk" alt="http://www.blog.spoongraphics.co.uk" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb.png" width="650" height="271" /></a>&#160;</p><ul><li>interesting submit button</li><li>fun background</li><li>great font</li><li>grungy</li><li>border glow</li><li>normal:</li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="normal" alt="normal" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_3.png" width="304" height="56" /></p><ul><li>focused:</li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="focused" alt="focused" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_4.png" width="302" height="58" /></p><p>&#160;</p><h3>2. <a
title="http://www.springydevelopment.co.uk" href="http://www.springydevelopment.co.uk">springydevelopment.co.uk</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_5.png" class="lightview" rel="gallery['1375']" title="http://www.springydevelopment.co.uk"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.springydevelopment.co.uk" alt="http://www.springydevelopment.co.uk" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_3.png" width="656" height="265" /></a></p><ul><li>2 column</li><li>wide submit button</li></ul><p>&#160;</p><h3>3. <a
title="http://css-tricks.com" href="http://css-tricks.com">css-tricks.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_6.png" class="lightview" rel="gallery['1375']" title="http://css-tricks.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://css-tricks.com" alt="http://css-tricks.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_4.png" width="589" height="313" /></a></p><ul><li>Chris Coyier doesn&#039;t mess around with crappy designs &#8211; his website is superb in general</li><li>normal<a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_7.png" class="lightview" rel="gallery['1375']">:</a></li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="normal" alt="normal" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_5.png" width="185" height="39" /></p><ul><li>focused:</li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="focused" alt="focused" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_8.png" width="185" height="41" /></p><ul><li>internal disappearing labels</li><li>dimming labels</li><li>interesting submit button</li><li>custom images</li></ul><p>&#160;</p><h3>4. <a
title="http://net.tutsplus.com" href="http://net.tutsplus.com">net.tutsplus.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_9.png" class="lightview" rel="gallery['1375']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_6.png" width="633" height="399" /></a></p><ul><li>tongue:</li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="tongue" alt="tongue" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_10.png" width="153" height="147" /></p><ul><li>internal disappearing labels</li><li>appealing default avatar</li></ul><p>&#160;</p><h3>5. <a
title="http://www.smashingmagazine.com" href="http://www.smashingmagazine.com">smashingmagazine.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_11.png" class="lightview" rel="gallery['1375']" title="http://www.smashingmagazine.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.smashingmagazine.com" alt="http://www.smashingmagazine.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_7.png" width="650" height="536" /></a></p><ul><li>simplistic</li><li>appealing submit button</li><li>absence of author website &#8211; less spam</li></ul><p>&#160;</p><h3>6. <a
title="http://www.branded07.com" href="http://www.branded07.com">branded07.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_12.png" class="lightview" rel="gallery['1375']" title="http://www.branded07.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.branded07.com" alt="http://www.branded07.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_8.png" width="639" height="585" /></a></p><ul><li>fading</li><li>interesting background</li></ul><p>&#160;</p><h3>7. <a
title="http://www.depcore.com" href="http://www.depcore.com">depcore.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_13.png" class="lightview" rel="gallery['1375']" title="http://www.depcore.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.depcore.com" alt="http://www.depcore.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_9.png" width="578" height="349" /></a></p><ul><li>simplistic</li><li>unconventional &#8211; looks like a pad of paper or a letter</li><li>contains an anti-spam measure</li></ul><p>&#160;</p><h3>8. <a
title="http://www.marcofolio.net" href="http://www.marcofolio.net">marcofolio.net</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_14.png" class="lightview" rel="gallery['1375']" title="http://www.marcofolio.net"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.marcofolio.net" alt="http://www.marcofolio.net" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_10.png" width="560" height="518" /></a></p><ul><li>notify/don&#039;t notify option (for the first time the design is cohesive &#8211; not some random checkbox under the submit button)</li><li>lots of formatting buttons</li><li>smilies</li></ul><p>&#160;</p><h3>9. <a
title="http://www.jankoatwarpspeed.com" href="http://www.jankoatwarpspeed.com">jankoatwarpspeed.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_15.png" class="lightview" rel="gallery['1375']" title="http://www.jankoatwarpspeed.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.jankoatwarpspeed.com" alt="http://www.jankoatwarpspeed.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_11.png" width="625" height="566" /></a></p><ul><li>handy and appealing formatting buttons</li><li>flag next to the country &#8211; it then shows up next to each commenter, kind of cool:</li></ul><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_16.png" class="lightview" rel="gallery['1375']" title="http://www.jankoatwarpspeed.com flags"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.jankoatwarpspeed.com flags" alt="http://www.jankoatwarpspeed.com flags" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_12.png" width="238" height="180" /></a>&#160;</p><h3>10. <a
title="http://www.dezinerfolio.com" href="http://www.dezinerfolio.com">dezinerfolio.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_17.png" class="lightview" rel="gallery['1375']" title="http://www.dezinerfolio.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.dezinerfolio.com" alt="http://www.dezinerfolio.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_13.png" width="650" height="543" /></a></p><ul><li>highlight the field with focus &#8211; concentrate attention on one spot</li><li>large padding</li><li>by the way, they have an amazing header. I couldn&#039;t resist:</li></ul><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_18.png" class="lightview" rel="gallery['1375']" title="http://www.dezinerfolio.com header"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.dezinerfolio.com header" alt="http://www.dezinerfolio.com header" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_14.png" width="650" height="267" /></a></p><p>&#160;</p><h3>11. <a
title="http://www.sohtanaka.com" href="http://www.sohtanaka.com">sohtanaka.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_19.png" class="lightview" rel="gallery['1375']" title="http://www.sohtanaka.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.sohtanaka.com" alt="http://www.sohtanaka.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_15.png" width="650" height="431" /></a></p><ul><li>I love it</li><li>custom submit button</li><li>hovering quote</li><li>very polished look</li></ul><p>&#160;</p><h3>12. <a
title="http://www.productivedreams.com" href="http://www.productivedreams.com">productivedreams.com</a></h3><h3><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_20.png" class="lightview" rel="gallery['1375']" title="http://www.productivedreams.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.productivedreams.com" alt="http://www.productivedreams.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_16.png" width="596" height="264" /></a></h3><ul><li>the comment box actually sits *above* the comments &#8211; a radical, yet interesting approach</li><li>custom icons</li><li>really nice custom highlight on hover effect:</li></ul><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.productivedreams.com hover" alt="http://www.productivedreams.com hover" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_21.png" width="233" height="117" /></p><ul><li>usability and UX at their best</li></ul><p>&#160;</p><h3>13. <a
title="http://www.kevadamson.com" href="http://www.kevadamson.com">kevadamson.com</a></h3><h3><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_22.png" class="lightview" rel="gallery['1375']" title="http://www.kevadamson.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.kevadamson.com" alt="http://www.kevadamson.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_17.png" width="454" height="639" /></a></h3><ul><li>grungy, sloppy &#8211; looks great!</li></ul><p>&#160;</p><h3>14. <a
title="http://line25.com" href="http://line25.com">line25.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_23.png" class="lightview" rel="gallery['1375']" title="http://line25.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://line25.com" alt="http://line25.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_18.png" width="504" height="253" /></a></p><ul><li>clean</li><li>side by side</li><li>symmetrical, exact</li><li>I love it</li></ul><p>&#160;</p><h3>15. <a
title="http://www.markforrester.co.za" href="http://www.markforrester.co.za">markforrester.co.za</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_24.png" class="lightview" rel="gallery['1375']" title="http://www.markforrester.co.za"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.markforrester.co.za" alt="http://www.markforrester.co.za" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_19.png" width="650" height="456" /></a></p><ul><li>colorful, crayon-like (though it looks better on the site itself &#8211; you need to see it in its natural habitat)</li><li>internal disappearing labels</li></ul><p>&#160;</p><h3>16. <a
href="http://www.jrvelasco.com">jrvelasco.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_25.png" class="lightview" rel="gallery['1375']" title="http://www.jrvelasco.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.jrvelasco.com" alt="http://www.jrvelasco.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_20.png" width="507" height="652" /></a></p><ul><li>simple, and yet sophisticated</li></ul><p>&#160;</p><h3>17. <a
title="http://gizmodo.com" href="http://gizmodo.com">gizmodo.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_26.png" class="lightview" rel="gallery['1375']" title="http://gizmodo.com 1"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://gizmodo.com 1" alt="http://gizmodo.com 1" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_21.png" width="515" height="80" /></a></p><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_27.png" class="lightview" rel="gallery['1375']" title="http://gizmodo.com 2"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://gizmodo.com 2" alt="http://gizmodo.com 2" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_22.png" width="515" height="171" /></a></p><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_28.png" class="lightview" rel="gallery['1375']" title="http://gizmodo.com 3"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://gizmodo.com 3" alt="http://gizmodo.com 3" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_23.png" width="515" height="338" /></a></p><ul><li>very simple from the UX perspective:<ul><li>single line box, without the need to login first</li><li>expands on focus</li><li>no need to login even then, unless you want to &#8211; just enter your email</li></ul></li></ul><p>&#160;</p><h3>18. <a
title="http://www.instantshift.com" href="http://www.instantshift.com">instantshift.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_29.png" class="lightview" rel="gallery['1375']" title="http://www.instantshift.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.instantshift.com" alt="http://www.instantshift.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_24.png" width="650" height="589" /></a></p><ul><li>this is one of my favorites</li><li>I love, love, love the way the comments look, especially the way the author ones stand out:</li></ul><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_30.png" class="lightview" rel="gallery['1375']" title="http://www.instantshift.com comments"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.instantshift.com comments" alt="http://www.instantshift.com comments" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_25.png" width="627" height="436" /></a></p><p>&#160;</p><h3>19. <a
title="http://www.koodoz.com.au" href="http://www.koodoz.com.au">koodoz.com.au</a></h3><h3><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_31.png" class="lightview" rel="gallery['1375']" title="http://www.koodoz.com.au"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.koodoz.com.au" alt="http://www.koodoz.com.au" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_26.png" width="475" height="446" /></a></h3><ul><li>internal disappearing labels</li><li>the design itself, while seemingly not too special, mashes with comment list very well. Check it out &#8211; I think the curvy lines are very creative:</li></ul><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_32.png" class="lightview" rel="gallery['1375']" title="http://www.koodoz.com.au comments"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://www.koodoz.com.au comments" alt="http://www.koodoz.com.au comments" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_27.png" width="584" height="327" /></a></p><p>&#160;</p><h3>20. <a
href="http://elliotjaystocks.com">elliotjaystocks.com</a></h3><p><a
href="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_33.png" class="lightview" rel="gallery['1375']" title="http://elliotjaystocks.com"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="http://elliotjaystocks.com" alt="http://elliotjaystocks.com" src="http://beerpla.net/wp-content/uploads/64b6eeb98e37_14BE3/image_thumb_28.png" width="650" height="509" /></a></p><ul><li>click the image &#8211; it&#039;s bigger than it looks</li><li>if you can&#039;t tell (), the elements are MASSIVE, which makes this comment box pretty unique</li></ul><p>&#160;</p><h2>Conclusion</h2><p>If you liked this post, you might also enjoy</p><ul><li>BlogDesignBlog with <a
href="http://www.blogdesignblog.com/blog-design/37-ways-to-design-the-comments-form" rel="nofollow">37 more comment form designs</a> (though they&#039;re not as exciting).</li><li>1stwebdesigner with <a
href="http://www.1stwebdesigner.com/inspiration/77-inspiring-blog-comment-form-designs-good-examples/" rel="nofollow">77 comment form designs</a>.</li><li>Queness with <a
href="http://www.queness.com/post/1581/20-absolutely-stylish-web-form-design-showcase" rel="nofollow">20 stylish web form designs</a>.</li></ul><p>So, what did you think? The comment box you&#039;re looking for is at the bottom of the page.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=20+Inspirational+And+Original+Comment+Form+Designs+For+Your+Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=20%20Inspirational%20And%20Original%20Comment%20Form%20Designs%20For%20Your%20Blog&amp;link=http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/&amp;notes=%20Introduction%20%20If%20you%20follow%20web%20design%20at%20all%2C%20you%20probably%20see%205%20billion%20top%20NN%20posts%20on%20a%20daily%20basis%20mentioning%20site%20and%20blog%20designs%2C%20fonts%2C%20icons%2C%20etc.%20%20However%2C%20nobody%20seems%20to%20be%20paying%20attention%20to%20these%20little%20but%20important%20guys%3A%20comment%20forms.%20%20If%20you%20have%20an%20appealing%20comment%20box%2C%20you%20ar&amp;short_link=http://bit.ly/6L55UJ&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2008/09/03/thoughts-on-google-chrome/" rel="bookmark" title="September 3, 2008">Thoughts on Google Chrome</a></li><li><a
href="http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/" rel="bookmark" title="December 20, 2009">Enable A Twitter Retweet (RT) Button That Lets You Add Comments Before Retweeting</a></li><li><a
href="http://beerpla.net/2010/02/03/how-not-to-implement-a-web-application-that-handles-external-authentication-using-betwittered-com-as-an-example/" rel="bookmark" title="February 3, 2010">How *Not* To Implement A Web Application That Handles External Authentication, Using BeTwittered.com As An Example</a></li><li><a
href="http://beerpla.net/2009/02/12/how-to-fight-clickjacking-using-the-recent-twitter-hijacking-as-an-example/" rel="bookmark" title="February 12, 2009">How To Fight Clickjacking (Using The Recent Twitter Hijacking As An Example)</a></li><li><a
href="http://beerpla.net/2011/06/13/goodbye-outlook-i-dont-need-you-anymore-gmail-now-lets-you-paste-images-directly-from-clipboard/" rel="bookmark" title="June 13, 2011">[Updated x3] Goodbye Outlook, I Don&#039;t Need You Anymore &#8211; Gmail Now Lets You Paste Images Directly From Clipboard</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F15%2F20-inspirational-and-original-comment-form-designs-for-your-blog%2F&amp;title=20%20Inspirational%20And%20Original%20Comment%20Form%20Designs%20For%20Your%20Blog" id="wpa2a_16"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/15/20-inspirational-and-original-comment-form-designs-for-your-blog/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</title><link>http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/</link> <comments>http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/#comments</comments> <pubDate>Wed, 13 Jan 2010 17:15:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Tips]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[action]]></category> <category><![CDATA[admin_print_scripts]]></category> <category><![CDATA[admin_print_styles]]></category> <category><![CDATA[conditional]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[enqueue]]></category> <category><![CDATA[hook]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[js]]></category> <category><![CDATA[load]]></category> <category><![CDATA[optimization]]></category> <category><![CDATA[Performance]]></category> <category><![CDATA[script]]></category> <category><![CDATA[style]]></category> <category><![CDATA[time]]></category> <category><![CDATA[wp_enqueue_script]]></category> <category><![CDATA[wp_enqueue_style]]></category> <category><![CDATA[wp_print_scripts]]></category> <category><![CDATA[wp_print_styles]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/</guid> <description><![CDATA[<h2>Introduction</h2><p><img
style="margin: 0px 10px 10px 0px; display: inline" title="wordpress logo" alt="wordpress logo" align="left" src="http://beerpla.net/wp-content/uploads/WordpressPluginWritersTakeNoteHowToInclu_863C/image_3.png" width="150" height="150" /> In this tutorial, I am going to introduce a WordPress technique that I believe was unpublished until I <a
href="http://wordpress.org/support/topic/350167" rel="nofollow">raised the question</a> a few days ago on the WordPress forums.</p><p>In short, the problem I was trying to solve was <strong><em>plugins unnecessarily loading their JavaScript and CSS on *every* page of the blog, even when doing so would achieve absolutely nothing and the plugin wouldn&#039;t do any work</em></strong>.</p><p><div
class="note"><div
class="notetip"><strong>Update #1:</strong> I have posted a <a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/">follow-up</a> in response to some comments received around the web.</div></div></p><p><div
class="note"><div
class="notetip"><strong>Update #2:</strong> There is a solution that can be considered a compromise as it works well for loading JavaScript but doesn&#039;t handle CSS.</div></div></p><p>I briefly mentioned this approach here but but Scribu...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>Introduction</h2><p><img
style="margin: 0px 10px 10px 0px; display: inline" title="wordpress logo" alt="wordpress logo" align="left" src="http://beerpla.net/wp-content/uploads/WordpressPluginWritersTakeNoteHowToInclu_863C/image_3.png" width="150" height="150" /> In this tutorial, I am going to introduce a WordPress technique that I believe was unpublished until I <a
href="http://wordpress.org/support/topic/350167" rel="nofollow">raised the question</a> a few days ago on the WordPress forums.</p><p>In short, the problem I was trying to solve was <strong><em>plugins unnecessarily loading their JavaScript and CSS on *every* page of the blog, even when doing so would achieve absolutely nothing and the plugin wouldn&#039;t do any work</em></strong>.</p><p><div
class="note"><div
class="notetip"><strong>Update #1:</strong> I have posted a <a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/">follow-up</a> in response to some comments received around the web.</div></div></p><p><div
class="note"><div
class="notetip"><strong>Update #2:</strong> There is a solution that can be considered a compromise as it works well for loading JavaScript but doesn&#039;t handle CSS.</p><p>I briefly mentioned this approach here but but Scribu decided to expand on it by providing a nice Jedi-themed tutorial. It is available <a
href="http://scribu.net/wordpress/optimal-script-loading.html" rel="nofollow">here</a>.</div></div></p><p>Let me explain using this example:</p><ul><li>a code formatter plugin only does something useful when it sees a [code] shortcode in any post on the page.</li><li>most of your posts do not contain the [code] shortcode as you don't include code snippets that often or you only started using this particular plugin recently.</li><li>the plugin, however, loads the CSS and JS (which are most likely <a
href="http://qbnz.com/highlighter/" rel="nofollow">GeSHi</a> and take up loads of space) on every page.</li><li>these CSS and JS do absolutely nothing on most page loads.</li><li>bandwidth is wasted, extra DNS and HTTP requests are processed, the browser is slowed down, and for what? For no good reason, other than the plugin author didn't know how to achieve this conditional loading.</li></ul><p>If you think about it, there are many plugins that only do something once in a blue moon. Table of contents, text manipulators, galleries, sliders, etc, etc. If only they loaded their frontend code strictly when necessary, most page loads would suddenly become much lighter.</p><p>So what can we do to solve this? Let's look at a few techniques.</p><h2>Loading CSS And JS In Place?</h2><p>Here's one, albeit pretty bad, solution - only print the CSS and JS includes if and when you determine somewhere in the middle of loading the posts that the scripts and styles are indeed needed, then set a flag to avoid printing them again. In our example, that would be when the plugin detects the [code] shortcode.</p><p>This, however, is a mediocre solution because, while it's not a bad idea to load Javascript in the footer, <a
href="http://developer.yahoo.com/performance/rules.html" rel="nofollow">CSS should be loaded in the header</a>, otherwise the page might look unformatted until the CSS is reached.</p><p>Additionally, it's not the cleanest and most robust solution because you shouldn't be writing &lt;script&gt; and &lt;style&gt; tags manually but rather using <a
href="http://codex.wordpress.org/Function_Reference/wp_enqueue_style" rel="nofollow">wp_enqueue_style()</a> and <a
href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script" rel="nofollow">wp_enqueue_script()</a> functions.</p><h2>What's This About wp_enqueue_FOO?</h2><p>Now, you might say: &quot;What's this about <strong><em>wp_enqueue_style()</em></strong>, <strong><em>wp_enqueue_script()</em></strong>, and then hooking into <strong><em>'wp_print_scripts'</em></strong>, <strong><em>'wp_print_styles'</em></strong>, <strong><em>'admin_print_scripts'</em></strong>, and <strong><em>'admin_print_styles'</em></strong> hooks&quot;? You know about these, right? Right??</p><p>Allow me to explain this, in my opinion, greatest and most underused WordPress paradigm in a short refresher:</p><p><div
class="note"><div
class="noteclassic">WordPress has a great system of queuing up the scripts and styles your script will need to use and printing them all in one go, rather than hooking into wp_head and printing &lt;style&gt; and &lt;script&gt; tags manually.</p><p>This queuing system achieves 2 main goals:</p><ul><li>the <strong><em>same scripts are not loaded multiple times</em></strong>, such as <a
href="http://jquery.com/" rel="nofollow">jQuery</a>, <a
href="http://script.aculo.us/" rel="nofollow">scriptaculous</a>, or any other custom script or style your plugins may share between each other or even other plugins.</li><li>it introduces support for establishing <strong><em>dependencies</em></strong>. You can specify that your script or style depends on another script or style, and WordPress will take care of loading them in the right order. Guaranteed.</li><li>oh what the hell, here's a 3rd one: <strong><em>elegance</em></strong>.</li></ul><p>Here is the way this usually works:</p><ul><li>in the beginning of your plugin you attach to <strong><em>wp_print_scripts</em></strong> and/or <strong><em>wp_print_styles</em></strong> hooks. For example:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>add_action( 'wp_print_scripts', 'enqueue_my_scripts' );
add_action( 'wp_print_styles', 'enqueue_my_styles' );</pre></td></tr></table></div><p>What this will do is call the functions in the 2nd parameter when it's time to execute any functions associated with the hooks in the 1st parameter. It is the main principle behind the WordPress plugin architecture.</li><li>looking at the script example, in the <strong><em>enqueue_my_scripts()</em></strong> function, you can do something like:<div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>wp_enqueue_script( 'my_awesome_script', '/script.js', array( 'jquery' ));</pre></td></tr></table></div><p>which would queue up your script to be printed later but only after jQuery.</p><p>If you or some other plugin calls <strong><em>wp_enqueue_script()</em></strong> with the same first parameter (unique handle), it will just be ignored, rather than printed to the page twice.</li><li>styles are exactly the same, except you use <strong><em>wp_enqueue_style()</em></strong></li></ul><p>There is a variation of this functionality for the admin styles and scripts - all you have to do is change the hooks to <strong><em>admin_print_styles</em></strong> and <strong><em>admin_print_scripts</em></strong>. Ozh made a nice post on this topic <a
href="http://planetozh.com/blog/2008/04/how-to-load-javascript-with-your-wordpress-plugin/" rel="nofollow">here</a> - check it out.</p><p></div></div></p><h2>Enqueuing Alone Is Not Enough</h2><p>Enqueuing is great for loading your JS and CSS but using it alone doesn't achieve the conditional behavior that we are looking for here.</p><p>This is a classic case of Chicken or the Egg, because WordPress makes only one pass through all of the content.</p><p>You see, since the header needs to be printed before the content, <strong><em>wp_print_scripts</em></strong> and <strong><em>wp_print_styles</em></strong> hooks are triggered before you even get to the posts. If you enqueue a script or style from within the 'the_content' hook, for example, the queued up scripts and styles will never get printed. It's too late to print them then anyway, as you're already in the middle of printing the posts.</p><h2>The Solution</h2><p>What we need to do is take a step back, before even printing the header, and then peek ahead.</p><p>Sure, this adds an extra pass over some data, but since no filters are applied during this process and if you avoid regular expressions (using stripos(), for example), this extra pass should be quite negligible.</p><p><div
class="note"><div
class="notewarning">A word of warning though: I'd rather see false positives (enqueuing when it's not needed) than false negatives (miss enqueuing when it's needed), so please do your matching wisely and test well.</div></div></p><p>The upside, however, can be potentially very substantial.</p><p>Credit goes to <a
href="http://twitter.com/white_shadow" rel="nofollow">@white_shadow</a> for the idea.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td
class="code"><pre>add_filter('the_posts', 'conditionally_add_scripts_and_styles'); // the_posts gets triggered before wp_head
function conditionally_add_scripts_and_styles($posts){
	if (empty($posts)) return $posts;
&nbsp;
	$shortcode_found = false; // use this flag to see if styles and scripts need to be enqueued
	foreach ($posts as $post) {
		if (stripos($post-&gt;post_content, '[code]') !== false) {
			$shortcode_found = true; // bingo!
			break;
		}
	}
&nbsp;
	if ($shortcode_found) {
		// enqueue here
		wp_enqueue_style('my-style', '/style.css');
		wp_enqueue_script('my-script', '/script.js');
	}
&nbsp;
	return $posts;
}</pre></td></tr></table></div><p>This simple function fires before the header gets printed, as it's attached to the 'the_posts' hook. However, this time it has full access to the posts' content.</p><p>I have tested this method and it works really well - if you have heavy scripts in your plugin, please do us, users, a favor and incorporate this logic into it.</p><h2>Conclusion</h2><p>In this tutorial, you have seen a method of loading scripts and styles for you plugin conditionally. This technique allows for less bloated pages and faster page loads.</p><p>Plugin developers, what is your take on this solution? Do you use another method? Please share in the comments.</p><div
class='post_blob_1'>Our <a
href="http://www.test-king.com/exams/HP0-D07.htm">HP0-D07</a> study guides will help you to pass your <a
href="http://www.test-king.com/exams/642-436.htm">642-436</a> and <a
href="http://www.test-king.com/exams/640-816.htm">640-816</a> exam on first attempt guaranteed.</div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/" rel="bookmark" title="January 15, 2010">Follow-up To Loading CSS And JS Conditionally</a></li><li><a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" rel="bookmark" title="January 31, 2010">How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</a></li><li><a
href="http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/" rel="bookmark" title="November 6, 2010">How To Dynamically Increase Memory Limits When Interfacing With WordPress Using XML-RPC (Windows Live Writer, Etc)</a></li><li><a
href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" rel="bookmark" title="February 20, 2010">How To View A Specific SVN Revision In Your Browser</a></li><li><a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" rel="bookmark" title="March 21, 2010">How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F13%2Fwordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts%2F&amp;title=%5BWordPress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts" id="wpa2a_18"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/feed/</wfw:commentRss> <slash:comments>68</slash:comments> </item> <item><title>How To Fix Intermittent MySQL Errcode 13 Errors On Windows</title><link>http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/</link> <comments>http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/#comments</comments> <pubDate>Tue, 05 Jan 2010 10:49:33 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Databases]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[13]]></category> <category><![CDATA[errcode]]></category> <category><![CDATA[errcode 13]]></category> <category><![CDATA[error]]></category> <category><![CDATA[mcafee]]></category> <category><![CDATA[microsoft security essentials]]></category> <category><![CDATA[myd]]></category> <category><![CDATA[myi]]></category> <category><![CDATA[myisam]]></category> <category><![CDATA[windows]]></category> <category><![CDATA[Wordpress]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/</guid> <description><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="13" alt="13" align="left" src="http://beerpla.net/wp-content/uploads/HowToFixIntermittentMySQLErrcode13Errors_1A77/image.png" width="150" height="150" /></p><h2>The Problem</h2><p>I&#039;ve had MySQL on my Windows 7 laptop for a bit (as part of <a
href="http://www.wampserver.com/en/" rel="nofollow">wampserver</a>), mostly for local offline WordPress development.</p><p>However, even though MySQL is relatively stable, I&#039;ve been observing a vast quantity of intermittent MySQL errors, as reported by WordPress in the PHP error log (C:\wamp\logs\php_error.log). Here are some examples:</p><div
class="wp_syntax"><div
class="code"><pre>[05-Jan-2010 09:47:51] WordPress database error Error on delete of
'C:\Windows\TEMP\#sql17e0_1a2_6.MYD' (Errcode: 13) for query SELECT t.*, tt.*
FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id
INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id =
tt.term_taxonomy_id WHERE tt.taxonomy IN ('category') AND tr.object_id IN (3)
ORDER BY t.name ASC made by require, require_once, include, get_footer,
locate_template, load_template, require_once, dynamic_sidebar,</pre></div></div><p>...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="13" alt="13" align="left" src="http://beerpla.net/wp-content/uploads/HowToFixIntermittentMySQLErrcode13Errors_1A77/image.png" width="150" height="150" /></p><h2>The Problem</h2><p>I&#039;ve had MySQL on my Windows 7 laptop for a bit (as part of <a
href="http://www.wampserver.com/en/" rel="nofollow">wampserver</a>), mostly for local offline WordPress development.</p><p>However, even though MySQL is relatively stable, I&#039;ve been observing a vast quantity of intermittent MySQL errors, as reported by WordPress in the PHP error log (C:\wamp\logs\php_error.log). Here are some examples:</p><div
class="wp_syntax"><div
class="code"><pre>[05-Jan-2010 09:47:51] WordPress database error Error on delete of
'C:\Windows\TEMP\#sql17e0_1a2_6.MYD' (Errcode: 13) for query SELECT t.*, tt.*
FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id
INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id =
tt.term_taxonomy_id WHERE tt.taxonomy IN ('category') AND tr.object_id IN (3)
ORDER BY t.name ASC made by require, require_once, include, get_footer,
locate_template, load_template, require_once, dynamic_sidebar,
call_user_func_array, widget_rrm_recent_posts, RecentPosts-&amp;gt;execute,
ppl_expand_template, otf_categorylinks, get_the_category, wp_get_object_terms
&nbsp;
[05-Jan-2010 09:50:42] WordPress database error Error on delete of
'C:\Windows\TEMP\#sql17e0_1b0_0.MYD' (Errcode: 13) for query  SELECT
SQL_CALC_FOUND_ROWS  wp_posts.* FROM wp_posts  INNER JOIN wp_term_relationships
ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_term_taxonomy ON
(wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id)
WHERE 1=1  AND wp_term_taxonomy.taxonomy = 'category' AND
wp_term_taxonomy.term_id IN ('3') AND wp_posts.post_type = 'post' AND
(wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') GROUP BY
wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10 made by require, wp,
WP-&amp;gt;main, WP-&amp;gt;query_posts, WP_Query-&amp;gt;query, WP_Query-&amp;gt;get_posts</pre></div></div><p>The important part here is &quot;Errcode: 13&quot;, which is a file access error. The MySQL daemon process (mysqld.exe) randomly cannot access temporary tables it itself creates, which causes these errors and failed queries.</p><h2>Digging Around</h2><p>After looking around and finding nothing obvious, I tracked down a few forum posts mentioning the same issue.</p><p>Here is the gist &#8211; the problem is caused by an anti-virus program that is clearly not working properly.</p><p>The one mentioned on the forums is McAfee (big surprise, right? McAfee is a piece of junk &#8211; probably the worst anti-virus I&#039;ve ever tried). In my case, however, it was the recently installed freeware security program from Microsoft called <a
href="http://www.microsoft.com/Security_Essentials/" rel="nofollow">Microsoft Security Essentials</a>, highly praised but problematic in this case nonetheless.</p><p>After thinking about it, I am confident that these security programs don&#039;t actually purposely prohibit access to the files MySQL creates. Instead, they lock these files for the duration of the check, so that the system doesn&#039;t get infected before they are approved. If you notice, the problems are related to temporary tables, created by MySQL on the fly. MySQL probably has a very short access timeout for these files, for performance reasons, and because it doesn&#039;t get this access fast enough, it considers it a failure (file deletions are failing, as you can see in the log).</p><h2>The Solution</h2><p>Now onto fixing the problem. The solution is to have Microsoft Security Essentials, in my case, or whatever your security program may be ignore these files.</p><p>You can block the whole Temp directory from being checked. It is not a good idea, as viruses can trickle down to that location and bypass your anti-virus:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToFixIntermittentMySQLErrcode13Errors_1A77/image_3.png" class="lightview" rel="gallery['1313']" title="Ignore Windows Temp dir in Microsoft Security Essentials"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="Ignore Windows Temp dir in Microsoft Security Essentials" alt="Ignore Windows Temp dir in Microsoft Security Essentials" src="http://beerpla.net/wp-content/uploads/HowToFixIntermittentMySQLErrcode13Errors_1A77/image_thumb.png" width="700" height="545" /></a></p><p>Instead, you should just ignore by file extension: *.MYI and *.MYD. MySQL uses files with these extensions for its MyISAM table types. Using this approach is obviously safer as it doesn&#039;t single out a directory and instead targets specific files:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToFixIntermittentMySQLErrcode13Errors_1A77/image_4.png" class="lightview" rel="gallery['1313']" title="Ignore *.MYI and *.MYD in Microsoft Security Essentials"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="Ignore *.MYI and *.MYD in Microsoft Security Essentials" alt="Ignore *.MYI and *.MYD in Microsoft Security Essentials" src="http://beerpla.net/wp-content/uploads/HowToFixIntermittentMySQLErrcode13Errors_1A77/image_thumb_3.png" width="700" height="545" /></a></p><p>After I applied either of these exclusions, all MySQL Error 13 problems went away immediately.</p><h2>Conclusion</h2><p>The intermittent Error 13 problem on Windows is caused by 2 otherwise legitimate processes which, when mixed together, end up breaking MySQL.</p><p>Is this entirely the fault of the antivirus programs? Inadvertently, perhaps so.</p><p>Could MySQL be a bit smarter in this scenario? Perhaps so as well.</p><p>What do you, MySQL pros, think?</p><div
class='post_blob_1'>We offer guaranteed success in <a
href="http://www.test-king.com/exams/646-671.htm">646-671</a> as well as <a
href="http://www.test-king.com/exams/646-985.htm">646-985</a> exam using world’s best quality <a
href="http://www.test-king.com/exams/E20-340.htm">E20-340</a> training resources.</div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Intermittent+MySQL+Errcode+13+Errors+On+Windows&amp;link=http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/&amp;notes=%20%0D%0AThe%20Problem%0D%0AI%27ve%20had%20MySQL%20on%20my%20Windows%207%20laptop%20for%20a%20bit%20%28as%20part%20of%20wampserver%29%2C%20mostly%20for%20local%20offline%20Wordpress%20development.%0D%0AHowever%2C%20even%20though%20MySQL%20is%20relatively%20stable%2C%20I%27ve%20been%20observing%20a%20vast%20quantity%20of%20intermittent%20MySQL%20errors%2C%20as%20reported%20by%20Wordpress%20in%20the%20PHP%20error%20log%20%28&amp;short_link=http://bit.ly/cJxOPu&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Intermittent+MySQL+Errcode+13+Errors+On+Windows&amp;link=http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/&amp;notes=%20%0D%0AThe%20Problem%0D%0AI%27ve%20had%20MySQL%20on%20my%20Windows%207%20laptop%20for%20a%20bit%20%28as%20part%20of%20wampserver%29%2C%20mostly%20for%20local%20offline%20Wordpress%20development.%0D%0AHowever%2C%20even%20though%20MySQL%20is%20relatively%20stable%2C%20I%27ve%20been%20observing%20a%20vast%20quantity%20of%20intermittent%20MySQL%20errors%2C%20as%20reported%20by%20Wordpress%20in%20the%20PHP%20error%20log%20%28&amp;short_link=http://bit.ly/cJxOPu&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Intermittent+MySQL+Errcode+13+Errors+On+Windows&amp;link=http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/&amp;notes=%20%0D%0AThe%20Problem%0D%0AI%27ve%20had%20MySQL%20on%20my%20Windows%207%20laptop%20for%20a%20bit%20%28as%20part%20of%20wampserver%29%2C%20mostly%20for%20local%20offline%20Wordpress%20development.%0D%0AHowever%2C%20even%20though%20MySQL%20is%20relatively%20stable%2C%20I%27ve%20been%20observing%20a%20vast%20quantity%20of%20intermittent%20MySQL%20errors%2C%20as%20reported%20by%20Wordpress%20in%20the%20PHP%20error%20log%20%28&amp;short_link=http://bit.ly/cJxOPu&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Intermittent+MySQL+Errcode+13+Errors+On+Windows&amp;link=http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/&amp;notes=%20%0D%0AThe%20Problem%0D%0AI%27ve%20had%20MySQL%20on%20my%20Windows%207%20laptop%20for%20a%20bit%20%28as%20part%20of%20wampserver%29%2C%20mostly%20for%20local%20offline%20Wordpress%20development.%0D%0AHowever%2C%20even%20though%20MySQL%20is%20relatively%20stable%2C%20I%27ve%20been%20observing%20a%20vast%20quantity%20of%20intermittent%20MySQL%20errors%2C%20as%20reported%20by%20Wordpress%20in%20the%20PHP%20error%20log%20%28&amp;short_link=http://bit.ly/cJxOPu&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Intermittent+MySQL+Errcode+13+Errors+On+Windows&amp;link=http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/&amp;notes=%20%0D%0AThe%20Problem%0D%0AI%27ve%20had%20MySQL%20on%20my%20Windows%207%20laptop%20for%20a%20bit%20%28as%20part%20of%20wampserver%29%2C%20mostly%20for%20local%20offline%20Wordpress%20development.%0D%0AHowever%2C%20even%20though%20MySQL%20is%20relatively%20stable%2C%20I%27ve%20been%20observing%20a%20vast%20quantity%20of%20intermittent%20MySQL%20errors%2C%20as%20reported%20by%20Wordpress%20in%20the%20PHP%20error%20log%20%28&amp;short_link=http://bit.ly/cJxOPu&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Intermittent+MySQL+Errcode+13+Errors+On+Windows&amp;link=http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/&amp;notes=%20%0D%0AThe%20Problem%0D%0AI%27ve%20had%20MySQL%20on%20my%20Windows%207%20laptop%20for%20a%20bit%20%28as%20part%20of%20wampserver%29%2C%20mostly%20for%20local%20offline%20Wordpress%20development.%0D%0AHowever%2C%20even%20though%20MySQL%20is%20relatively%20stable%2C%20I%27ve%20been%20observing%20a%20vast%20quantity%20of%20intermittent%20MySQL%20errors%2C%20as%20reported%20by%20Wordpress%20in%20the%20PHP%20error%20log%20%28&amp;short_link=http://bit.ly/cJxOPu&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Intermittent+MySQL+Errcode+13+Errors+On+Windows&amp;link=http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/&amp;notes=%20%0D%0AThe%20Problem%0D%0AI%27ve%20had%20MySQL%20on%20my%20Windows%207%20laptop%20for%20a%20bit%20%28as%20part%20of%20wampserver%29%2C%20mostly%20for%20local%20offline%20Wordpress%20development.%0D%0AHowever%2C%20even%20though%20MySQL%20is%20relatively%20stable%2C%20I%27ve%20been%20observing%20a%20vast%20quantity%20of%20intermittent%20MySQL%20errors%2C%20as%20reported%20by%20Wordpress%20in%20the%20PHP%20error%20log%20%28&amp;short_link=http://bit.ly/cJxOPu&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Fix%20Intermittent%20MySQL%20Errcode%2013%20Errors%20On%20Windows&amp;link=http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/&amp;notes=%20%0D%0AThe%20Problem%0D%0AI%27ve%20had%20MySQL%20on%20my%20Windows%207%20laptop%20for%20a%20bit%20%28as%20part%20of%20wampserver%29%2C%20mostly%20for%20local%20offline%20Wordpress%20development.%0D%0AHowever%2C%20even%20though%20MySQL%20is%20relatively%20stable%2C%20I%27ve%20been%20observing%20a%20vast%20quantity%20of%20intermittent%20MySQL%20errors%2C%20as%20reported%20by%20Wordpress%20in%20the%20PHP%20error%20log%20%28&amp;short_link=http://bit.ly/cJxOPu&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" rel="bookmark" title="March 21, 2010">How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</a></li><li><a
href="http://beerpla.net/2008/04/15/mysql-conference-liveblogging-explain-demystified-tuesday-200p/" rel="bookmark" title="April 15, 2008">MySQL Conference Liveblogging: EXPLAIN Demystified (Tuesday 2:00PM)</a></li><li><a
href="http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/" rel="bookmark" title="February 17, 2009">Swapping Column Values in MySQL</a></li><li><a
href="http://beerpla.net/2009/05/11/mysql-deletingupdating-rows-common-to-2-tables-speed-and-slave-lag-considerations/" rel="bookmark" title="May 11, 2009">[MySQL] Deleting/Updating Rows Common To 2 Tables &#8211; Speed And Slave Lag Considerations</a></li><li><a
href="http://beerpla.net/2008/04/16/mysql-conference-liveblogging-benchmarking-tools-wednesday-425pm/" rel="bookmark" title="April 16, 2008">MySQL Conference Liveblogging: Benchmarking Tools (Wednesday 4:25PM)</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F05%2Fhow-to-fix-intermittent-mysql-errcode-13-errors-on-windows%2F&amp;title=How%20To%20Fix%20Intermittent%20MySQL%20Errcode%2013%20Errors%20On%20Windows" id="wpa2a_20"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>How To Make Your Site Lightning Fast* By Compressing (deflate/gzip) Your HTML, Javascript, CSS, XML, etc In Apache</title><link>http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/</link> <comments>http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/#comments</comments> <pubDate>Tue, 09 Jun 2009 17:02:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[compress]]></category> <category><![CDATA[compression]]></category> <category><![CDATA[deflate]]></category> <category><![CDATA[fast]]></category> <category><![CDATA[faster]]></category> <category><![CDATA[gzip]]></category> <category><![CDATA[html]]></category> <category><![CDATA[js]]></category> <category><![CDATA[minify]]></category> <category><![CDATA[mod_deflate]]></category> <category><![CDATA[smaller]]></category> <category><![CDATA[text]]></category> <category><![CDATA[xml]]></category> <guid
isPermaLink="false">http://beerpla.net/?p=982</guid> <description><![CDATA[<p><span
style="font-size: xx-small">* Lightning Fast is a blatant exaggeration. Got you to look though, didn&#039;t it?</span></p><h2>Introduction</h2><p>Whether you are a web developer or a self-hosting business owner, the only excuse for not activating compression capabilities of your web server can be that you didn&#039;t know about it. And now that you are reading this, there is no excuse left at all.</p><p>Here is how big a single page of this blog was before compression was enabled on CSS and Javascript files (computed by <a
href="http://developer.yahoo.com/yslow/" rel="nofollow">YSlow</a>):</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_3.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: inline; margin-left: 0px; margin-right: 0px" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_3.png" width="132" height="24" /></a></p><p>And here it is after compression:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_4.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: inline; margin-left: 0px; margin-right: 0px" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_4.png" width="136" height="28" /></a></p><p>As you see, the difference is quite substantial &#8211; almost 30% savings.</p><p>Compressing your HTML, XML, Javascript, CSS, etc pages will mean less data transferred between the...<div
class=clear></div> <a
href="http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><span
style="font-size: xx-small">* Lightning Fast is a blatant exaggeration. Got you to look though, didn&#039;t it?</span></p><h2>Introduction</h2><p>Whether you are a web developer or a self-hosting business owner, the only excuse for not activating compression capabilities of your web server can be that you didn&#039;t know about it. And now that you are reading this, there is no excuse left at all.</p><p>Here is how big a single page of this blog was before compression was enabled on CSS and Javascript files (computed by <a
href="http://developer.yahoo.com/yslow/" rel="nofollow">YSlow</a>):</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_3.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: inline; margin-left: 0px; margin-right: 0px" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_3.png" width="132" height="24" /></a></p><p>And here it is after compression:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_4.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: inline; margin-left: 0px; margin-right: 0px" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_4.png" width="136" height="28" /></a></p><p>As you see, the difference is quite substantial &#8211; almost 30% savings.</p><p>Compressing your HTML, XML, Javascript, CSS, etc pages will mean less data transferred between the server and the client which:</p><ul><li>reduces the bandwidth usage.</li><li>provides faster page rendering which in turn leads to less user frustration, higher conversion rates, lower bounce rate, etc etc etc.</li></ul><p>Compression is especially important for users with slow connections as every kilobyte of your code is that much more painful to them.</p><p>Compression can be very effective &#8211; you can easily shrink your text, code (HTML, XML, Javascript, CSS, etc) to 10% of the original size (of course, your mileage may vary). 100KB page that needs only 10KB to transfer? Sign me up!</p><p>So, before I talk about the solution, let me describe what exactly happens when compression is turned on and how it affects older browsers that don&#039;t support it.</p><p><div
class="note"><div
class="notetip"></p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_17.png" class="lightview" rel="gallery['982']" title="image"><img
style="margin: 0px auto 10px; display: block; float: none" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_17.png" width="292" height="177" /></a> <strong>Are you using jQuery?</strong></p><p>Did you know that a minified jQuery file is <strong>55KB</strong>? In order to achieve the advertised <strong>19KB</strong>, you would still need to compress the .js file using the methods listed here.</div></div></p><h2>Compression Mechanism Explained</h2><p>In order for compression to work in the first place, the web server (Apache in my example) needs to support it. This is achieved by enabling one of Apache modules called mod_deflate. The server will then be able to compress the data to the DEFLATE standard using either the zlib (also known as deflate) or gzip implementations. Yeah, DEFLATE is both the standard the one of its implementations, for those confused. I know I was. This is best described in <a
href="http://en.wikipedia.org/wiki/Gzip#Other_uses" rel="nofollow">this Wikipedia article</a>.</p><p>The following mechanism is used:</p><ul><li>the server with a compression extension enabled is able to serve either compressed (smaller) or uncompressed (larger) pages, depending on what the client supports.</li><li>the client (that is, your browser) sends a special header called &quot;Accept-Encoding&quot; listing the DEFLATE implementations it&#039;s capable of decompressing. For example &quot;gzip,deflate&quot;.</li><li>the server picks the best compression supported by the client (if any), compresses the files, and sends them over to the client.</li><li>the client receives the compressed files and decompresses them.</li></ul><p><div
class="note"><div
class="notetip"><strong>Are you using a load blancer?</strong></p><p>If you are using a load balancer, it may already be configured to compress pages that pass through it. In that case, there is no need to separately configure compression on your web servers. In fact, it should be off to save CPU.</div></div></p><h2>Are Your Pages Already Compressed? Test Them!</h2><p>If you are not sure whether you are already serving compressed pages or not, test them! My favorite way is by using <a
href="http://www.charlesproxy.com/" rel="nofollow">Charles HTTP Debugger</a>. Another option is by downloading <a
href="http://getfirebug.com/" rel="nofollow">Firebug</a> for Firefox and installing Yahoo&#039;s <a
href="http://developer.yahoo.com/yslow/" rel="nofollow">YSlow</a> or Google&#039;s <a
href="http://code.google.com/speed/page-speed/" rel="nofollow">Page Speed</a>. Just look at the response headers to see if compression is on (look for the Content-Encoding header). Here are some before and after examples:</p><h3>Theme CSS</h3><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_5.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_5.png" width="427" height="36" /></a></p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_6.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_6.png" width="266" height="136" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_7.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_7.png" width="267" height="161" /></a></p><h3>jQuery</h3><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_8.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_8.png" width="469" height="39" /></a></p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_9.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_9.png" width="263" height="132" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_10.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_10.png" width="273" height="168" /></a></p><h2>Solution</h2><p>Create a .htaccess file in the top directory of your site with the following contents:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre># DEFLATE by type - html, text, css, xml
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml
&nbsp;
# DEFLATE by type - javascript
AddOutputFilterByType DEFLATE application/x-javascript application/javascript text/javascript text/x-js text/x-javascript
&nbsp;
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml</pre></td></tr></table></div><p>Alternatively, you could put these lines into your Apache config within the Directory directive.</p><p>The <a
href="http://httpd.apache.org/docs/2.2/mod/core.html#addoutputfilterbytype" rel="nofollow">AddOutputFilterByType</a> directive adds DEFLATE filters to certain MIME types. I tried to assemble some of the common ones but feel free to add more, as each server may be configured differently and give out MIME types different from mine.</p><p><div
class="note"><div
class="notetip">You can find your own server&#039;s MIME type definitions in the file that the TypesConfig directive is pointing to (mine is /etc/mime.types).</div></div></p><p>The <a
href="http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addoutputfilter" rel="nofollow">AddOutputFilter</a> directive binds the DEFLATE filter to specific file extensions, just in case they are not served with a proper MIME type. Feel free to add to this list as well.</p><h2>Caveats</h2><p>1. In order to use this whole compression/deflate/gzip business, your Apache server must first have mod_deflate enabled. Without it, you will get the HTTP 500 error (Internal Server error). You can check which mods you already have enabled by checking with the output of phpinfo() function.</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_13.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_13.png" width="606" height="97" /></a></p><p>In order to enable mod_deflate, uncomment the line with &quot;deflate_module&quot; in your Apache config file. The location of this config file is highly dependant on your system. Some examples include</p><ul><li>/etc/apache2/httpd.conf</li><li>/etc/httpd/conf/httpd.conf</li><li>c:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf</li><li>some other place where your system stores Apache config files (read the special note below for OpenSUSE).</li></ul><p>Here&#039;s what you should have:</p><div
class="wp_syntax"><div
class="code"><pre>LoadModule deflate_module modules/mod_deflate.so</pre></div></div><p>On OpenSUSE, you actually enable modules a bit differently. Go to /etc/sysconfig/apache2 and look for APACHE_MODULES=. Then add &quot;deflate&quot; to the list, if it&#039;s not already there.</p><p>Now, restart Apache and check the output of phpinfo() again.</p><p>2. Adding AddOutputFilter and AddOutputFilterByType to .htaccess requires such overrides to be authorized by the main Apache configuration for that directory, otherwise it will return error 500 as well. The option you are looking for is called &quot;AllowOverride&quot; and mine was set to &quot;AllowOverride AuthConfig&quot; which wasn&#039;t enough. Changing it to</p><div
class="wp_syntax"><div
class="code"><pre>AllowOverride AuthConfig FileInfo</pre></div></div><p>or just</p><div
class="wp_syntax"><div
class="code"><pre>AllowOverride All</pre></div></div><p>fixes the problem. You can find more info about AllowOverride <a
href="http://httpd.apache.org/docs/1.3/mod/core.html#allowoverride" rel="nofollow">here</a>.</p><p>3. In WordPress, if you are using Google Gears (<a
href="http://en.blog.wordpress.com/2008/07/02/gears/" rel="nofollow">Turbo mode</a>) for caching some core WordPress files, they will not show up compressed. That is because they&#039;re not served by the remote server but rather reside locally (think of it as permanent cache). I was very confused at first when I didn&#039;t see jQuery.js in the HTTP log and YSlow reported it uncompressed.</p><h2>Are you a WordPress user?</h2><p>If you are a WordPress user, don&#039;t assume WordPress is going to automatically compress your pages. In fact, as you install more and more plugins, the payload becomes larger and larger with those additional CSS and Javascript files.</p><p>You owe it to yourself and to your users to immediately enable compression on your blog.</p><p>Here is what happened after I enabled compression on this blog.</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_11.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_11.png" width="676" height="418" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_12.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_12.png" width="440" height="115" /></a></p><h2>Bonus &#8211; WP Minify</h2><p>For even better results, I suggest you have a look at my good friend and talented WordPress master Thaya&#039;s plugin called <a
href="http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/">WP Minify</a>. It preprocesses and aggregates all or most of your CSS and Javascript into just 2 files, thus saving on the number of HTTP requests. It also minifies content to achieve smaller size.</p><p>My blog before WP Minify:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_14.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_14.png" width="413" height="62" /></a></p><p>After WP Minify:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_15.png" class="lightview" rel="gallery['982']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/HowToCompressdeflategzipYourPagesJavascr_11A9F/image_thumb_15.png" width="408" height="59" /></a></p><p>&#160;</p><p>That&#039;s all folks. Let me know if something was unclear and I&#039;ll be glad to clarify it.</p><p>A few references that pointed me in the right direction and allowed me to provide a more complete solution:</p><ul><li><a
title="http://brightscape.net/compress-jquery-even-further/" href="http://brightscape.net/compress-jquery-even-further/">http://brightscape.net/compress-jquery-even-further/</a></li><li><a
title="http://brightscape.net/compress-your-web-pages-with-mod_deflate/" href="http://brightscape.net/compress-your-web-pages-with-mod_deflate/">http://brightscape.net/compress-your-web-pages-with-mod_deflate/</a></li></ul><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Make+Your+Site+Lightning+Fast%2A+By+Compressing+%28deflate%2Fgzip%29+Your+HTML%2C+Javascript%2C+CSS%2C+XML%2C+etc+In+Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Make%20Your%20Site%20Lightning%20Fast%2A%20By%20Compressing%20%28deflate%2Fgzip%29%20Your%20HTML%2C%20Javascript%2C%20CSS%2C%20XML%2C%20etc%20In%20Apache&amp;link=http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/&amp;notes=%2A%20Lightning%20Fast%20is%20a%20blatant%20exaggeration.%20Got%20you%20to%20look%20though%2C%20didn%27t%20it%3F%20%20Introduction%20%20Whether%20you%20are%20a%20web%20developer%20or%20a%20self-hosting%20business%20owner%2C%20the%20only%20excuse%20for%20not%20activating%20compression%20capabilities%20of%20your%20web%20server%20can%20be%20that%20you%20didn%27t%20know%20about%20it.%20And%20now%20that%20you%20are%20re&amp;short_link=http://bit.ly/c6Upm4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" rel="bookmark" title="March 29, 2008">Beer Planet Upgraded To WordPress 2.5</a></li><li><a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" rel="bookmark" title="January 13, 2010">[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a></li><li><a
href="http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/" rel="bookmark" title="June 21, 2009">Hidden Features Of Perl, PHP, Javascript, C, C++, C#, Java, Ruby, Python, And Others [Collection Of Incredibly Useful Lists]</a></li><li><a
href="http://beerpla.net/2006/06/12/rendr-a-live-awesome-csshtml-rendering-tool/" rel="bookmark" title="June 12, 2006">Rendr &#8211; a Live Awesome CSS/HTML Rendering Tool</a></li><li><a
href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" rel="bookmark" title="February 20, 2010">How To View A Specific SVN Revision In Your Browser</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F06%2F09%2Fhow-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache%2F&amp;title=How%20To%20Make%20Your%20Site%20Lightning%20Fast%2A%20By%20Compressing%20%28deflate%2Fgzip%29%20Your%20HTML%2C%20Javascript%2C%20CSS%2C%20XML%2C%20etc%20In%20Apache" id="wpa2a_22"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/feed/</wfw:commentRss> <slash:comments>20</slash:comments> </item> <item><title>IntenseDebate Introduces Plugins</title><link>http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/</link> <comments>http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/#comments</comments> <pubDate>Thu, 05 Mar 2009 19:22:33 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[announcement]]></category> <category><![CDATA[automattic]]></category> <category><![CDATA[intense debate]]></category> <category><![CDATA[intensedebate]]></category> <category><![CDATA[plugin]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/</guid> <description><![CDATA[<p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: inline; margin: 0px 10px 10px 0px" height="66" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb.png" width="93" align="left" /></a> <a
href="http://www.intensedebate.com/" rel="nofollow">IntenseDebate</a>, a popular WordPress comment enhancer <a
href="http://www.google.com/url?sa=t&#38;source=web&#38;ct=res&#38;cd=1&#38;url=http%3A%2F%2Fblog.intensedebate.com%2F2008%2F09%2F23%2Fautomattic-acquires-intensedebate%2F&#38;ei=WiGwSYIGgdqwA_yp5I4B&#38;usg=AFQjCNFvjJMWRkAgB9BvDfD9shtjtmMFBA&#38;sig2=jQFHbJJU0I6YEeY9MK9tZQ" rel="nofollow">recently acquired by Automattic</a> (the creator of WP), just <a
href="http://blog.intensedebate.com/2009/03/05/introducing-intensedebate-plugins-add-the-features-you-want/" rel="nofollow">announced</a> plugin support. It’s a nice touch to the already useful commenting system that allows threading, easier comment moderation, reputation, voting, etc.</p><p>Let’s have a look at some of the announced plugins. Here’s what the comment block looks like with plugins enabled:</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_3.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="164" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_3.png" width="428" /></a></p><h3>PollDaddy</h3><p>This plugins allows you to add a poll to your comment. By the way, <a
href="http://www.polldaddy.com/" rel="nofollow">PollDaddy</a> is also an Automattic brand.</p><h2><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_4.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="437" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_4.png" width="321" /></a><strong></strong></h2><h3>Seesmic</h3><p>Seesmic enables video comments that you can record right off your webcam.</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_5.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="144" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_5.png" width="174" /></a>&#160;</p><h3><strong>YouTube</strong></h3><p>I think this one is self-explanatory – you can easily insert youtube videos into your...<div
class=clear></div> <a
href="http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: inline; margin: 0px 10px 10px 0px" height="66" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb.png" width="93" align="left" /></a> <a
href="http://www.intensedebate.com/" rel="nofollow">IntenseDebate</a>, a popular WordPress comment enhancer <a
href="http://www.google.com/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fblog.intensedebate.com%2F2008%2F09%2F23%2Fautomattic-acquires-intensedebate%2F&amp;ei=WiGwSYIGgdqwA_yp5I4B&amp;usg=AFQjCNFvjJMWRkAgB9BvDfD9shtjtmMFBA&amp;sig2=jQFHbJJU0I6YEeY9MK9tZQ" rel="nofollow">recently acquired by Automattic</a> (the creator of WP), just <a
href="http://blog.intensedebate.com/2009/03/05/introducing-intensedebate-plugins-add-the-features-you-want/" rel="nofollow">announced</a> plugin support. It’s a nice touch to the already useful commenting system that allows threading, easier comment moderation, reputation, voting, etc.</p><p>Let’s have a look at some of the announced plugins. Here’s what the comment block looks like with plugins enabled:</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_3.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="164" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_3.png" width="428" /></a></p><h3>PollDaddy</h3><p>This plugins allows you to add a poll to your comment. By the way, <a
href="http://www.polldaddy.com/" rel="nofollow">PollDaddy</a> is also an Automattic brand.</p><h2><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_4.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="437" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_4.png" width="321" /></a><strong></strong></h2><h3>Seesmic</h3><p>Seesmic enables video comments that you can record right off your webcam.</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_5.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="144" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_5.png" width="174" /></a>&#160;</p><h3><strong>YouTube</strong></h3><p>I think this one is self-explanatory – you can easily insert youtube videos into your comments.</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_6.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="186" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_6.png" width="214" /></a></p><h3>Smileys</h3><p>Adds smiley support.</p><p><a
href="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_3.png" class="lightview" rel="gallery['828']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="164" alt="image" src="http://beerpla.net/wp-content/uploads/IntenseDebateIntroducesPlugins_991E/image_thumb_3.png" width="428" /></a></p></p><p>You can activate the plugins by going to the IntenseDebate dashboard and clicking <a
href="http://intensedebate.com/plugins" rel="nofollow">the new Plugins tab</a>.</p><p>In conclusion, here’s a nice WP hosted video that explains the new features:</p><p
align="center"><embed
src="http://v.wordpress.com/Pk6aHQhX" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true"></embed></p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate+Introduces+Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=IntenseDebate%20Introduces%20Plugins&amp;link=http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/&amp;notes=%20IntenseDebate%2C%20a%20popular%20Wordpress%20comment%20enhancer%20recently%20acquired%20by%20Automattic%20%28the%20creator%20of%20WP%29%2C%20just%20announced%20plugin%20support.%20It%E2%80%99s%20a%20nice%20touch%20to%20the%20already%20useful%20commenting%20system%20that%20allows%20threading%2C%20easier%20comment%20moderation%2C%20reputation%2C%20voting%2C%20etc.%20%20Let%E2%80%99s%20have%20a%20look%20at%20some&amp;short_link=http://bit.ly/9bcbVW&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2006/10/03/youtube-custom-rss-search-results/" rel="bookmark" title="October 3, 2006">Youtube Custom RSS Search Results</a></li><li><a
href="http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/" rel="bookmark" title="January 18, 2010">WordPress Developers &#8211; How Do You Make A Living [Poll + Discussion]?</a></li><li><a
href="http://beerpla.net/2008/08/14/how-to-find-out-the-number-of-videos-on-youtube/" rel="bookmark" title="August 14, 2008">How To Find Out The Number Of Videos On Youtube</a></li><li><a
href="http://beerpla.net/2007/03/24/beer-planet-hosting-moved-away-from-dreamhost-thank-god-finally/" rel="bookmark" title="March 24, 2007">Beer Planet Hosting Moved Away From Dreamhost (Thank God, Finally!)</a></li><li><a
href="http://beerpla.net/2009/03/18/mysql-indexing-considerations-of-implementing-a-priority-field-in-your-application/" rel="bookmark" title="March 18, 2009">MySQL Indexing Considerations Of Implementing A Priority Field In Your Application</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F03%2F05%2Fintensedebate-introduces-plugins%2F&amp;title=IntenseDebate%20Introduces%20Plugins" id="wpa2a_24"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/03/05/intensedebate-introduces-plugins/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How To SVN Update All Your WordPress Plugins In One Go</title><link>http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/</link> <comments>http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/#comments</comments> <pubDate>Mon, 16 Jun 2008 08:34:37 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Beer Planet]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[all]]></category> <category><![CDATA[mass]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[SVN]]></category> <category><![CDATA[update]]></category> <guid
isPermaLink="false">http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/</guid> <description><![CDATA[<p>If you&#039;re like me, most of your WordPress plugins are checked out into your plugins directory from <a
href="http://svn.wp-plugins.org">the official WordPress SVN repository</a> or some other one. I haven&#039;t updated any of mine for about a month and wanted to sync up everything quickly (including SVN externals). Here&#039;s a short command I ran to achieve that:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>cd YOUR_BLOG_ROOT/wp-content/plugins;
find . -maxdepth 1 -type d -exec svn up {} \;</pre></td></tr></table></div><p>What this command does is finds the top level directories in your WordPress plugins directory, then applies the &#34;svn update&#34; command to each, one by one.</p><p>The result is something like</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16</pre></td></tr></table></div><p>...<div
class=clear></div> <a
href="http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>If you&#039;re like me, most of your WordPress plugins are checked out into your plugins directory from <a
href="http://svn.wp-plugins.org">the official WordPress SVN repository</a> or some other one. I haven&#039;t updated any of mine for about a month and wanted to sync up everything quickly (including SVN externals). Here&#039;s a short command I ran to achieve that:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>cd YOUR_BLOG_ROOT/wp-content/plugins;
find . -maxdepth 1 -type d -exec svn up {} \;</pre></td></tr></table></div><p>What this command does is finds the top level directories in your WordPress plugins directory, then applies the &quot;svn update&quot; command to each, one by one.</p><p>The result is something like</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td
class="code"><pre>Fetching external item into 'akismet'
A    akismet/readme.txt
Updated external to revision 50666.
&nbsp;
Updated to revision 8094.
At revision 8094.
U    share-this/sharethis.php
Updated to revision 50666.
D    wp-postratings/postratings-admin-js.php
D    wp-postratings/postratings-usage.php
D    wp-postratings/postratings-js.php
A    wp-postratings/postratings-js-packed.js
U    wp-postratings/wp-postratings.php
A    wp-postratings/postratings-admin-js.js
U    wp-postratings/postratings-css.css
U    wp-postratings/postratings-options.php
A    wp-postratings/postratings-templates.php
U    wp-postratings/postratings-stats.php
U    wp-postratings/readme.html
A    wp-postratings/postratings-js.js
U    wp-postratings/wp-postratings.pot
U    wp-postratings/wp-postratings-widget.php
U    wp-postratings/postratings-uninstall.php
U    wp-postratings/postratings-admin-ajax.php
U    wp-postratings/wp-postratings.mo
U    wp-postratings/readme.txt
U    wp-postratings/postratings-manager.php
A    wp-postratings/postratings-admin-js-packed.js
Updated to revision 50666.
At revision 8094.
...</pre></td></tr></table></div><p>With such mass updating, of course, an incompatibility in one of the updates can break the whole blog. In my case, it happened to be the latest version of wp-sticky. I identified it by disabling wp-super-cache first, then disabling each updated plugin one by one. Once identified, I did the following:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>cd wp-sticky
svn log | head</pre></td></tr></table></div><p>That showed me the latest commits by the author as well as the SVN revision numbers. I then used this information to revert one revision back by doing:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>svn up -r 50489</pre></td></tr></table></div><p>The following command showed a diff of what exactly changed in that revision and broke everything:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>svn diff -r50489:50490</pre></td></tr></table></div><p>Once everything was stable, I emailed the plugin author to tell him about the bug (heya, Lester). Be careful not to run &#039;svn up&#039; on this directory again until the bug is fixed as it&#039;ll persistently update to the latest version.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+SVN+Update+All+Your+Wordpress+Plugins+In+One+Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20SVN%20Update%20All%20Your%20Wordpress%20Plugins%20In%20One%20Go&amp;link=http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/&amp;notes=If%20you%27re%20like%20me%2C%20most%20of%20your%20Wordpress%20plugins%20are%20checked%20out%20into%20your%20plugins%20directory%20from%20the%20official%20Wordpress%20SVN%20repository%20or%20some%20other%20one.%20I%20haven%27t%20updated%20any%20of%20mine%20for%20about%20a%20month%20and%20wanted%20to%20sync%20up%20everything%20quickly%20%28including%20SVN%20externals%29.%20Here%27s%20a%20short%20command%20I%20ran&amp;short_link=http://bit.ly/bj9fqO&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" rel="bookmark" title="June 20, 2009">How To Properly Set SVN svn:externals Property In SVN Command Line</a></li><li><a
href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" rel="bookmark" title="February 20, 2010">How To View A Specific SVN Revision In Your Browser</a></li><li><a
href="http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/" rel="bookmark" title="July 23, 2008">How To Check If The Local SVN Revision Is Up-To-Date</a></li><li><a
href="http://beerpla.net/2011/11/16/how-to-disableblock-external-http-requests-in-wordpress/" rel="bookmark" title="November 16, 2011">How To: Disable/Block External HTTP Requests In WordPress</a></li><li><a
href="http://beerpla.net/2010/03/06/how-to-show-hiddeninvisible-files-in-total-commander-both-locally-and-on-an-ftp-server/" rel="bookmark" title="March 6, 2010">How To Show Hidden/Invisible Files In Total Commander, Both Locally And On An FTP Server</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2008%2F06%2F16%2Fhow-to-svn-update-all-your-wordpress-plugins-in-one-go%2F&amp;title=How%20To%20SVN%20Update%20All%20Your%20WordPress%20Plugins%20In%20One%20Go" id="wpa2a_26"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> </channel> </rss>
